Showing posts with label command chaining. Show all posts
Showing posts with label command chaining. Show all posts

Friday, March 23, 2012

Linking/Chaining Commands in Linux

To add to your productivity and save time, chaining and linking linux commands is a fine way to go.
There are various chaining and linking commands present in Linux, but many Linux users are not aware of it.
  • To send a process to the background, append your command with '&' at the end. 
Eg. -
$ping -c1 yahoo.com &
$ping -c1 yahoo.com & rm -f  *.flv &   

Monday, December 13, 2010

Linux Amazing Keypresses & Commands : Set 5

  • Finding the top 20 processing in consuming the RAM.
$ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20
This command will list the top 20 process in decreasing order of their RAM consumption. It will be more helpful if you add a alias this command. Another solution for it is htop.
Install htop. For Fedora/RedHat users.
$yum install htop
For Ubuntu users.
$sudo apt-get install htop
For sorting the processes run htop & type
M for RAM
P for CPU
T for TIME
To invert the processes type I.