1. Whereis + filename strong> span> p>
is used to search the program name. The search results are limited to binary files (parameter -b), man description files (parameter -m), and source code files (parameter -s). If the parameters are omitted, all information is returned.
2. The find/name + filename strong> span> p>
find is in the specified directory through the search, if the directory using/means in all directories to find, find way to find the file is expensive, the speed is a little slower.
3. Locate + filename span> strong> p>
Linux will record all the files in the system in a database file. The method of using locate+ file name will find the target in the database maintained by Linux system. Compared with the way of find command to traverse the disk to find, this method is much more efficient.
The problem with
is that the database files are not updated in real time and are typically updated weekly, so the results found with the locate command may not be accurate. You can of course update the database with the updatedb command before using locate to ensure that the results are correct.
4. Which + executable file name strong> span> span> span> p>
wh0 ich 0 ich
0.
.
, so basic function is to look for executable files in the directory set by the environment variable $PATH.
Read More:
- How to batch create folders in Excel form and copy the specified files to a new folder
- Java – read all the files and folders in a certain directory and three methods to get the file name from the file path
- A series of problems caused by the option allow output folders for source folders
- Solve the problem of incomplete search results of outlook search function
- Error in installing torch vision or pilot on Linux or Jetson nano: the headers or library files could not be found for JPEG
- Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space
- How to install cuda10.01in Ubuntu18.04
- How to install postman tool in Ubuntu 16.04
- Solutions to the problem that Ubuntu is stuck when copying large files and can’t mount mobile hard disk normally
- How to generate and view SSH keys in Ubuntu 16.04
- Failed to download package files error after re installing Ubuntu
- How to manually upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS, Part I
- How to configure OpenGL with CodeBlocks in Ubuntu
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- How to install scikit learn and other scientific computing libraries in Ubuntu 16.04
- Some index files failed to download. They have been ignored, or old ones used instead
- How to Fix ubuntu phpmyadmin error: “Connection for controluser as defined in your configuration failed”
- Ubuntu network configuration+Fixing “Failed to bring up eth0” in Ubuntu
- C#: How to Use Httpclient to upload files with other parameters
- Command “python setup.py egg_info” failed with error code 1 in /private/var/folders/14/4hz051qx0wqd3