當前位置:生活全書館 >

IT科技

> 怎麼查詢Linux的檔案

怎麼查詢Linux的檔案

1、Find 命令

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

# find path expression search-term 

怎麼查詢Linux的檔案

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

使用 locate 查詢檔案的語法:

# locate test.file 

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

怎麼查詢Linux的檔案 第2張

標籤: 檔案 查詢 linux
  • 文章版權屬於文章作者所有,轉載請註明 https://shqsg.com/dianzi/2or566.html