How to use shell commands for daily administration tasks

List Directory Contents with permissions

[ahmed@Linux ~] $ ll
[ahmed@Linux ~] $ ls –al

List Directory contents with their estimated space usage in human readable format

[ahmed@Linux ~] $ du -ach --mac-depth=1 /home/oracle

Clear Shell Screen

[ahmed@Linux ~] $ clear

Top memory process

[ahmed@Linux ~] $ top
(Press shift + m by sorting memory descending)

Continue reading

Advertisements

Reseting a lost password with MYSQL

if you forget the root password for MYSQL, and you need to access it to edit database, follow the steps below.

# /etc/init.d/mysqld stop 
# killall mysqld 
# mysqld --skip-grant-tables --user=root & 
# mysql mysql> use mysql;
mysql> update user set password=password("newpass") where user = "root";
mysql> flush privileges;
mysql> exit;
# killall mysqld 
# /etc/init.d/mysqld start

Continue reading

Why do you need email etiquette?

A company needs to implement etiquette rules for the following three reasons:

  • Professionalism: by using proper email language your company will convey a professional image.
  • Efficiency: emails that get to the point are much more effective than poorly worded emails.
  • Protection from liability: employee awareness of email risks will protect your company from costly law suits.

What are the etiquette rules?

There are many etiquette guides and many different etiquette rules. Some rules will differ according to the nature of your business and the corporate culture. Below we list what we consider as the 32 most important email etiquette rules that apply to nearly all companies. Continue reading