25 Best Linux Commands For 2011

terminalHere at blog.urfix.com we are kicking off the new year with a new server. Our last server got HN’D. Our poor plug computer could not take the load from being in the front page of Hacker News and finally melted. taking our chances again here are the 25 Best Linux commands for 2011

1) send a circular

echo “dear admin, please ban johnlame” | wall

Broadcast Message from root@urfix.com
(/dev/pts/2) at 20:32 …

dear admin, please ban johnlame

2) Find usb device

diff <(lsusb) <(sleep 3s && lsusb)

I often use it to find recently added or removed device, or using find in /dev, or anything similar.

Just run the command, plug the device, and wait to see him and only him

3) Use file(1) to view device information

file -s /dev/sd*
file(1) can print details about certain devices in the /dev/ directory

(block devices in this example).

This helped me to know at a glance the location and revision of my bootloader, UUIDs,

filesystem status,

which partitions were primaries / logicals, etc.. without running several commands.
See also
file -s /dev/dm-* file -s /dev/cciss/*
etc..

Complete Story

About News