Find File command in Linux

Find command command:

and which type, these two commands are through the PATH variable to search for the file name, we can only search command file (which ls; type ifconfig)

Find File command:

whereis command (find a specific file, such as: whereis ifconfig)

locate command (limited locate the new file can not search, only search the file until the day before, because he was to database files to search,
if still want to use the locate command updatedb operation may be performed first, and so after the update is complete using locate command to query, locate ceshi)


find command (if the data is more, then query the longest time, find -name ceshi, find command also has a lot of preferences such as: size, type, name, etc.)

to view the file type command:

file command (see the file into the directory in the directory of the file type, file ceshi)

Guess you like

Origin www.cnblogs.com/yanmou/p/11613210.html