Answer : To find big files and directories you have to use 3 commands is 1 line du sort and head du : Estimate file space usage sort : Sort lines of text files or given input data head : Output the first part of files i.e. to display first 10 largest file Full Article…
Viewing 1 to 3 of 3 items
find all files
I am trying to find all files ending in a particular file extension, ie all files ending with .pdf find / -name “*.pdf” this way you will only find files not directories and what not. find / -name -type f “*.pdf” find / -print | grep -i pdf
exclude directories in recursive grep without -exclude-dir
I’m trying to do a recursive grep on a directory while excluding all the .svn folders. How can I do this? This works: grep -iR “string” * | grep -v “.svn”