How to query files in linux

藏色散人
Release: 2019-11-12 09:31:03
Original
2533 people have browsed it

How to query files in linux

How to query files in Linux?

The most powerful search command under Linux is "find". Its format is "find "; for example, use the find command to search for the location of all interfaces files in the root directory, and the command format is "find / -name 'interfaces'"

Recommended: "Linux Tutorial"

How to query files in linux

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"

How to query files in linux

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".

How to query files in linux

#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".

How to query files in linux

#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.

How to query files in linux

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template