linux簡單命令2---檔案搜尋命令

來源:互聯網
上載者:User

標籤:檔案   gre   http   建立   font   upd   user   use   所有者   

1:檔案搜尋命令:locate 檔案名稱搜尋速度快,缺點不能複雜的搜尋。在資料庫(/var/lib/mlocate)尋找。它是一天一更新。可以強制更新資料庫:updatedb

 

2:搜尋命令的命令:whereis [-b只尋找可執行檔] [-m只尋找協助檔案]

 

3:檔案搜尋命令:find  [搜尋範圍] [搜尋條件] ; 功能非常強大,功能眾多,使用時電腦卡。(1:不區分大小寫find /root -iname 檔案名稱。2:按照所有者搜尋:find /root -user root。3:尋找沒有所有者的檔案:find /root -nouser)

 

3-1)

 

 

 

3-2) KB小寫k。MB大寫M。

 

3-3)支援多條件查詢

4:搜尋字串命令:grep

5:建立檔案或修改檔案時間

       touch [options] file-list

///////////liunx命令////////////////////

1)想要知道命令在那:whereis 命令

2)whereis 功能相似:which 命令  //註:區別which 可以看位置,還可以看別名.

3)想要知道我是誰:whoami

4)想要知道命令做什麼的:whatis  命令

linux簡單命令2---檔案搜尋命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.