• To find the file size of a folder cd to the folder you want then run this command:
    • du -h
      • It will go through each folder and file showing the size then at the end it will have a total
  • To Delete a folder and all files inside recursively
    • rm -f -r foldername
  • Here is the command to rename all the files in the current folder from .log to .png
    • rename “s/.log$/.png/” *.log
  • I have not tested this but to rename all files recursively here is the command
    • Find /path/to/root/folder -type f -name ‘*.abc’ -print0 | xargs -0 rename ‘s/.abc$/.edefg/’
  • Show owner and security on the files in a folder
    • ls -l