linux find command

來源:互聯網
上載者:User

標籤:linux   command   

    find / -name httpd.conf    find / -name access_log 2>/dev/null    find /etc -name '*srm*'    find / -amin -10 # 尋找在系統中最後10分鐘訪問的檔案    find / -atime -2 # 尋找在系統中最後48小時訪問的檔案    find / -mmin -5 # 尋找在系統中最後5分鐘裡修改過的檔案    find / -mtime -1 #尋找在系統中最後24小時裡修改過的檔案     find / -cmin -5 # 尋找在系統中最後5分鐘裡被改變狀態的檔案    find / -ctime -1 #尋找在系統中最後24小時裡被改變狀態的檔案    find / -user reda #尋找在系統中屬於fred這個使用者的檔案    find / -not -user reda #尋找在系統中不屬於FRED這個使用者的檔案    find / -group redagrp # 尋找在系統中屬於redagrp組的檔案     find / -gid 501 #尋找系統中屬於組id為501的檔案    find / -user fred -a -group redagrp    find / -user reda -o -user tracy    find / -nouser #尋找在系統中屬於作廢使用者的檔案    find / -empty # 尋找在系統中為空白的檔案或者為空白的檔案夾    find / -false #尋找系統中總是錯誤的檔案    find / -size +5k #尋找系統中大於5k位元組的檔案

<pre name="code" class="html">    find / -size +5M #尋找系統中大於5M位元組的檔案
find / -size +5c #尋找系統中大於5位元組的檔案 find / -perm +6000 find / -type b 檔案類型: b 塊(緩衝)裝置. c 字元裝置. d 目錄. p 有名管道(FIFO). f 規則檔案. l 符號鏈結. s 插座. find / -maxdepth 2 -name fred find /tmp -size +10000000c -and -mtime +2 find / -user reda -or -user tracy find /tmp ! -user reda find / -name "httpd.conf" -ls find / -user reda -exec ls -l {} \; find / -user reda -ok #確認後執行 find / -user reda | xargs ls -l


linux find command

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.