[Linux] File search


Note how to search for files on Linux

Environmental information

File search

Search by file name

find [search directory]-type f -name [file name]

Search for files that contain a specific string

grep [The character string you want to search] -rl [Search directory]

File search at high speed

Update the locate database

sudo updatedb
* Run as superuser
locate -b [Search keyword]

Recommended Posts

[Linux] File search
[Linux] Search command
Linux command [File operation]
Hack Linux file descriptors
Linux file and directory permissions
Linux study session 2nd: File operation
[Linux] Frequently used Linux commands (file operation)
[Linux] File and directory operation commands
Efficient use of Linux file system
[NFS] File sharing between Linux hosts
Linux file server construction (Ubuntu & Samba)
Linux study session 3rd: File deletion prohibition setting and search function
linux memorandum
Linux command # 4
Linux commands
Linux commands
Linux command # 3
Linux overview
django search
Linux basics
File matching
Organize Linux
Linux practice
Ubuntu Linux 20.04
Linux Summary
(Note) Template file search order in Django
Linux process
Rename based on file modification time (Linux)
Linux permissions
About Linux
Linux basics
Forgot linux
Ping-t (subject 104) device, Linux file system, FSH
Django search
About Linux
File creation
Linux commands
Linux commands
Read file
About Linux
File operations
About Linux
About Linux ①
Linux redirect
[Linux] Zip file compression and decompression commands [Vim]
[Samba] File sharing between Linux and Windows machines
Adjust file permissions with the Linux command chmod
Recursively search the specified directory to see the file
I want to log file I / O on Linux