Useful Linux Commands (find)

  • To search a folder among all sub-directory under current directory. The second part also returns their size on Disk.
    find -type d -name '.git' | xargs du -sh
  • Search files within given date range.
    find -newerct "1 Sep 2022" ! -newerct "18 Sep 2022" -ls