find
find is a Linux command in the Search & Find category, rated intermediate difficulty. Searches for files and directories in a directory hierarchy. The syntax is find [path] [expression]. Key options and parameters: path, expression — search path, search criteria. It returns list of matching files. A practical example: find . -name "*.txt" # Find by name find / -size +100M # Files larger than 100MB find . -mtime -7 # Modified in last 7 days find . -type f -exec ls -la {} \; # Execute command on results A close relative is locate, which finds files by name using a prebuilt database. Faster than find. A close relative is updatedb, which updates the database used by locate. Run as root periodically. A close relative is which, which shows the full path of a command executable. More about this category: Linux search commands — find, locate, which, whereis, and more. Find files and commands on the system.