Really Handy Terminal Commands

On January 27, 2010, in General, by dipinkrishna
Here’s a list of several terminal commands that are perhaps unfamiliar to many new-to-Linux users but could be really handy when used properly.
Kill a running application by its name
killall [app_name]
 
Display disk space usage:
df –h

Locate the installation directories of a program:

whereis [app]

Mount an .iso file:

mount /path/to/file.iso /mnt/cdrom –oloop
 

Record or capture a video of your desktop:

ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg

Find out the Universally Unique Identifier (UUID) of your partitions:

ls /dev/disk/by-uuid/ -alh
 

Show the top ten running processes (sorted by memory usage):

ps aux | sort -nrk 4 | head

Make an audible alarm when an IP address goes online:

ping -i 60 -a IP_address

Run the last command as root:

sudo !!

Make a whole directory tree with one command:

mkdir -p tmp/a/b/c

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

Related Posts:

Tagged with:  

Leave a Reply

*

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...