一、commands
#sudo su - ---------to switch to the super rights
# ls -l * |grep "^-"|wc -l ---- to count files
# ls -l * |grep "^d"|wc -l ----- to count dir
#du -sk ./log : display units -sum kB --------to sum the size of the folder "./log" (use the unit of kB )
#du -sh ./log : directly give the size (k,m,G)
#ps -ef |grep java -----------to list all java related file and info
#ll ------------to list the detailed info of all file in the current folder
#ll -f ----------to list the files by the modify time, the last one is the newest
#stat filename --------------to look at the detailed info of the file
#vim
esc
:q -----------just exit
:q! -----------exit without save
:wq -----------exit and save
二、websites
find the related linux commands :
http://linux.about.com/library/cmd/blcmdl1_diff.htm