2.12 Flashcards
Searches through all files based on the file system by name, file size, time created, and other options.
find
locates a file or directory by name in a specific path
-name
finds files owned by a specific user.
-user
finds files of a specific size
-size
finds files last modified before or after a specified number of days ago
-mtime
specifies whether to find files or directories.
-type
specifies how many levels down to search.
-maxdepth
finds filenames with spaces.
-print0
Specifies the or parameter when searching with multiple criteria.
-o
searches for files in a system
locate
Displays the path to a command and determines whether a package is installed.
which
Displays the path to a Linux command’s binary files, manual pages, and source code (if sources are installed)
whereis
Displays a command’s type
type
Searches through files for a specified character string
grep
Uses regular expressions in the search strings.
egrep