I present to you a compilation of the most useful Linux commands for File Search and its content
Search Files
Search for files and directories by name throughout the system
Search for files and directories by name in the filesystem.
find * -name name
Search for files and directories by name within a directory
Perform the search for files and directories within a specific directory.
find directory -name name
Search for files and directories belonging to a user within a directory
Find files and directories that belong to a specific user.
find directory -user user
Search for files and directories by type within a directory
Search for files and directories of a specific type (d: directory, f: regular file, l: symbolic link).
find directory -type f
Search for files and execute a command
Execute a command on the found files.
find directory -name name -exec command {} \;
Search for files with .ps extension
Use locate
to find files with a specific extension.
locate \*.ps
Show the full path of an executable
Find the location of an executable in the system.
which executable
Show the location of a binary, help, or source file
Use whereis
to get information about the executable file.
whereis executable
Show files that contain a specific name
Search for files that contain a specific part in their name.
find directory -iname "*part_name*"