Archive for October, 2015
Search for string in file system in Linux
By technese - Last updated: Thursday, October 22, 2015
Search for the string ‘root’ in the entire filesystem Source: http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string
Shrink qemu qcow2 files
By technese - Last updated: Thursday, October 22, 2015
Excerpt from source: Windows Guest 1.Delete all unnecessary files, empty recycle bin 2.Defragment drive (you might need to do this several times, until you see it “compacted” well) 3.Use sdelete to zero free disk space. Please note that this operation will cause that all drive free space will be filled by zero, so the virtual […]
Find files larger than 50 megabytes in Linux
By technese - Last updated: Thursday, October 22, 2015
Find files larger than 50 megabytes $ find . -type f -size +50000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’ Reference: http://www.cyberciti.biz/faq/find-large-files-linux