<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## 1. 命令格式 find 功能如其名:查找 ~~~ find path -option [ -print ] [ -exec -ok command ] {} \; ~~~ ### 1.1 path 查找的路徑 ### 1.2 option 常用的option #### 1.2.1 -name 指定文件名,或者使用“*.py”來指定文件的后綴名,如在/home目錄下搜索所有py文件 ~~~ find /home -name '*.py' # 可以使用通配符 ~~~ #### 1.2.2 -ctime(change time) 指定時間內文件的權限被修改過 > -ctime -100 :負數表示100天之內 > -ctime +100 :負數表示100天之前 ~~~ root@aexit02:/etc/mysql# find ./ -ctime -100 ./ ./mysql.cnf ~~~ #### 1.2.3 -atime(access time) 指定時間內文件被訪問過(讀取),如下查找1天之內被訪問的目錄和文件 ~~~ root@aexit02:/etc/mysql# find ./ -atime -1 ./ ./mysql.cnf ./conf.d ./conf.d/mysql.cnf ./my.cnf ./mysql.conf.d ./mysql.conf.d/mysqld.cnf ~~~ #### 1.2.4 -mtime(modify time) 指定時間(以天為單位)內文件被修改過,modify find ./ -mtime -n/+n : ~~~ root@aexit02:/etc/mysql# find ./ -mtime -100 ./ ./mysql.cnf ~~~ #### 1.2.5 -mmin 指定時間(以分鐘為單位)內文件被修改過,同上單位不同 #### 1.2.6 -readable:文件可讀 #### 1.2.7 -writable:文件可寫 #### 1.2.8 -executable:文件可執行 #### 1.2.9-ls:在搜索結果中顯示文件的詳細信息 #### 1.2.10 -type 指定要搜索的文件類型,常見的文件類型有:b表示塊設備,c字符設備,d文件目錄,f普通文件等,例如在/dev目錄下搜索塊設備文件: 1.只顯示文件 ~~~ root@aexit02:/etc/mysql# find ./ -atime -1 -type f ./mysql.cnf ./conf.d/mysql.cnf ./mysql.conf.d/mysqld.cnf ~~~ 2. 顯示所有 ~~~ root@aexit02:/etc/mysql# find ./ -atime -1 ./ ./mysql.cnf ./conf.d ./conf.d/mysql.cnf ./my.cnf ./mysql.conf.d ./mysql.conf.d/mysqld.cnf ~~~ ### 1.3 -print find命令將匹配的文件輸出到標準輸出。 ### 1.4 -exec command {} \; 將查到的文件執行command操作,{} 和 \;之間有空格 ~~~ find /etc -name "passwd*" -exec grep "cnscn" {} \; #看是否存在cnscn用戶 ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看