Some useful commands

sed ‘s/.tar.gz//’ abcd ===> to cut .tar.gz in a file abcd

ls -d */ ===> only folder in a cwd

cat folder | cut -d”/” -f1 ===> to remove last charcter “/”

awk ‘!x[$0]++’ new > new1 =====> to avoid repeat words

cat /etc/redhat-release =====> To know the OS

grep -irl (what u need to search) ./ =====> Search in particular folder

/usr/local/cpanel/bin/dcpumonview =====> memory usage of user

sar -q  ========> hourly load



Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s