[CLUE-Tech] Some CLI examples for new people

greg at knaddison.com greg at knaddison.com
Thu Nov 6 07:55:32 MST 2003


Quoting Kevin Cullis <kevincu at orci.com>:
> 
> 1. About 2-4 commands "piped" to show a result
> 2. Simple administration examples, like finding, sorting or grepping for
> a number of files and copying them to a specific directory


I'd recommend you buy (or go to your local bookstore and peruse, or use the
O'Reilly Safari for an online copy) "Linux Server Hacks" which is full of stuff
like what you ask for.

One possible idea for items 1 and 2 above is to find the largest 10 directories
within a given folder:

$du -cks * | sort -rn | head -11

So if you know that your /home/ is full, you can find out which BOFH has filled it.

Greg



More information about the clue-tech mailing list