關閉→
當前位置:知科普>IT科技>Linux文件如何查詢

Linux文件如何查詢

知科普 人氣:3.48K

1、Find 命令

使用 Linux find 命令可以用不同的搜索標準如名字、類型、所屬人、大小等來搜索目錄樹。基本語法如下:

# find path expression search-term 

Linux文件如何查詢

2、locate 命令 ,使用前需要安裝locate。

使用 locate 查找文件的語法:

# locate test.file 

就像 find 命令一樣,locate 也有很多選項來過濾輸出。

Linux文件如何查詢 第2張

TAG標籤:#linux #文件 #