Remove directory without prompting
rm -Rf file
rm -r - for directory
Change permissions
chown -R user file/folder
chgrp -R user file/folder
chmod ug+rwx file/folder
Memory Settings
cat /proc/meminfo
ps -e -orss=,args= | sort -b -k1,1n
vmstat -s
Clear Cached Memory
sync; echo 3 > /proc/sys/vm/drop_caches
Find files with string
find . | xargs grep 'string' -sl
Find files with name like
find ./ -name filename*.ext -print
Directory size
du -sh /home/*

By admin