Explain find command in Linux 2023

By XiaoXin
A Bit Randomly

ExampleFile cannot be used with other modifiersThe type that file can modifyFile non-decorable typeFile can have one or more classes with the same nameSummarizeC# 11 adds a file-scoped type feature: a new file modifier tha... Read The Keyword `file` Of C#11 New Features

Main Contents

Explain find command in Linux

1: find / -name "filename" Searches for files in the directory structure and performs the specified operation.


3: local file name--- this is another way of writing 'find -name', but it is much faster than the latter, because it does not search a specific directory, but searches a database (/var/lib/locatedb ), this database contains all local file information. The Linux system automatically creates this database and updates it once a day, so the latest changed files cannot be found by changing the command. To avoid this situation, you can use the update db command to manually update the database before using locate. 

4. whereis --- is to locate executable files, source code files, and help files in the file system. The whereis command can only be used to search for program names, and only search for binary files (parameter -b), man description files (parameter -m), and source code files (parameter -s). If the parameter is omitted, all information is returned. 

 5: The function of which is to search for the location of a system command in the path specified by the PATH variable, and return the first search result. That is to say, by using the which command, you can see whether a certain system command exists and where the command is executed.


Please Share This Article Thank You!

Parts of Top Latest PHP Interview Questions And Answers For Experienced
Advantages and Disadvantages of Apache and NGINX server

Advantages of Nginx over apacheAdvantages of apache over Nginx Comparison of the advantages and disadvantages of Apache and Nginx Advantages of Nginx over apache Lightweight, occupying less memory and resources than apache...

What is the attributes of Linux files?

-rw-r--r-- that is the permission symbol, a total of - --- --- these bits. The first short horizontal part is the file type identifier: - means ordinary file; c means character device (character); b means block device (blo...