Archive for October, 2015
Search for string in file system in Linux
Search for the string ‘root’ in the entire filesystem # grep -H -R root ./* | cut -d: -f1 Source: http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string
Shrink qemu qcow2 files
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 large files in Linux
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