Linux Commands - Interspike Codex

Linux Commands

Disk Usage: du Display directory listing showing directory size:

du -h --max-depth=1

To change run level at boot edit:

/etc/inittab

Find usage: find

find . -name "rc.conf" -print 

Useful command line tools:

grep
find
cut
sort
uniq
less
head
tail
xargs

Sort by numbers, see man sort:

sort -n 

To tail a log file but you want to exclude certain lines:

tail -fn100 /var/logs/somefile.log | grep -v ignored

See also: http://www.athabascau.ca/html/depts/compserv/webunit/HOWTO/find.htm