How to query files in Linux?
The most powerful search command under Linux is "find". Its format is "find
Recommended: "Linux Tutorial"
Use locate to search for files in the linux system, which is better than the find command quick. Because it queries the database (/var/lib/locatedb), the database contains all local file information. Use the locate command to search for interfaces files in the root directory. The command is "locate interfaces"
Use the "whereis" command to search for all executable files, that is, binary files in the Linux system. . The command to search grep binary files using the whereis command is "whereis grep".
#Use the which command to check whether the system command exists and return to the location of the system command. Use the which command to check whether the grep command exists and the existing directory is "which grep".
#Use the type command to check whether a command in the system is a command that comes with the system. Use the type command to check whether the cd command is a built-in command of the system; check whether grep is a built-in command of the system.
The above is the detailed content of How to query files in linux. For more information, please follow other related articles on the PHP Chinese website!