Archive for January, 2014

find

January 25th, 2014 by usage | 0

How to find files larger than 25MB in linux find / -type f -size +25000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’ Credit: http://www.cyberciti.biz/faq/find-large-files-linux/ http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/  

zip

January 19th, 2014 by usage | 0

How to create a zip archive zip -r9 content.zip folder_to_zip/ -r is for recursive -9 is for maximum compression

gzip

January 19th, 2014 by usage | 0

How to gz compress a file without deleting the original. gzip < file > file.gz credit: http://unix.stackexchange.com/questions/46786/how-to-tell-gzip-to-keep-original-file