• Add colors to the bash: see link

Add the following lines in your ~/.bashrc, or ~/.profile
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
alias ls='ls -G'

Kill process in Linux or terminate a process in UNIX or Linux systems

Instructions on killall here

Kill all processes with the same reg-exp in 1 line


Commands of typical use:


du -sh * displayes directory by directory their sizes
(link linux) and (link mac os x) for now use these links

More in detail:

1] How many files do I have?
>> find path/to/directory/ -type f | wc -l

2] How much space is taken in each directory?
 >> du -shx

3] Find the files that are larger than 1M?
>> find path/to/directory/ -type f -size 1000k

4] Find the files that are older than 1 year:
>> find path/to/directory/ -type f -mtime +365