久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      linux系統(tǒng)find命令、文件名后綴

      2.23/2.24/2.25 find命令

      find 搜索文件的命令which ls:從環(huán)境變量 echo $PATH 中找的whereis ls : 可以搜索,搜的不全

      linux系統(tǒng)find命令、文件名后綴
      安裝: locate[root@wangshuang-01 ~]# yum install -y mlocate

      模糊搜索:locate +關(guān)鍵字

      find /etc/ -name “sshd*”

      linux系統(tǒng)find命令、文件名后綴
      根據(jù)文件的類型搜文件搜目錄find /etc/ -type d -name “*.d”

      linux系統(tǒng)find命令、文件名后綴
      搜文件find /etc/ -type f -name “sshd*”

      linux系統(tǒng)find命令、文件名后綴
      搜軟鏈接find /etc/ -type l

      linux系統(tǒng)find命令、文件名后綴
      搜socket文件find /dev/ -type s

      linux系統(tǒng)find命令、文件名后綴
      搜字符串文件find /dev/ -type c

      linux系統(tǒng)find命令、文件名后綴
      搜塊設(shè)備find /dev/ -type b

      linux系統(tǒng)find命令、文件名后綴
      find / -type -name -mtime -ctime -atimestat 查看文件的具體信息的,名字、大小、塊、設(shè)備、權(quán)限、最近訪問(wèn)、更改時(shí)間等

      linux系統(tǒng)find命令、文件名后綴
      linux系統(tǒng)find命令、文件名后綴
      Access:訪問(wèn)文件的時(shí)間,cat文件、more文件Modify:修改文件內(nèi)容Change:修改文件權(quán)限,修改文件內(nèi)容(大小、時(shí)間、權(quán)限、所有者、所屬組)修改文件權(quán)限,ctime會(huì)變,mtime不會(huì)變

      linux系統(tǒng)find命令、文件名后綴
      更改文件的內(nèi)容,ctime 一定會(huì)變,mtime也會(huì)變

      linux系統(tǒng)find命令、文件名后綴
      訪問(wèn)文件. cat 1.txt ,atime 一定會(huì)變

      linux系統(tǒng)find命令、文件名后綴
      查找在一天以內(nèi)創(chuàng)建或修改的文件

      [root@wangshuang-01 ~]# find / -type f -mtime -1

      查找大于一天內(nèi)創(chuàng)建或修改的文件

      [root@wangshuang-01 ~]# find / -type f -mtime +1

      查找一天以內(nèi)在該路徑下創(chuàng)建或修改的文件

      [root@wangshuang-01 ~]# find /etc/ -type f -mtime -1

      /etc/resolv.conf

      /etc/group

      /etc/gshadow

      /etc/shadow

      /etc/tuned/active_profile

      [root@wangshuang-01 ~]# find /etc/ -type f -atime -1

      [root@wangshuang-01 ~]# find /etc/ -type f -ctime -1

      添加查找條件,-type,-ctime,-name 是并且的關(guān)系

      [root@wangshuang-01 ~]# find /etc/ -type f -ctime -1 -name “*.conf”

      /etc/resolv.conf

      /etc/updatedb.conf

      添加的查找條件,-ctime,-name 是或者的關(guān)系

      [root@wangshuang-01 ~]# find /etc/ -type f -o -ctime -1 -o -name “*.conf”

      根據(jù)inode號(hào)查找硬連接文件

      linux系統(tǒng)find命令、文件名后綴
      查找60 分鐘內(nèi)創(chuàng)建的文件

      [root@wangshuang-01 ~]# find /root/ -type f -mmin -60

      /root/1.txt

      查找60分鐘內(nèi)創(chuàng)建的文件,并且顯示文件的詳細(xì)信息

      [root@wangshuang-01 ~]# find /root/ -type f -mmin -60 -exec ls -l {} ;

      -rw-r–r–. 1 777 root 12 Jun 10 20:38 /root/1.txt

      查找文件在200分鐘內(nèi)創(chuàng)建,且修改文件名稱,在文件名稱后加 .bak

      linux系統(tǒng)find命令、文件名后綴
      查找文件的大小,大于10k,小于10k

      [root@wangshuang-01 ~]# find /root/ -type f -size +10k -exec ls -lh {} ;

      [root@wangshuang-01 ~]# find /root/ -type f -size -10k -exec ls -lh {} ;

      linux系統(tǒng)find命令、文件名后綴
      總結(jié):find 常用命令,find -type ,-mtime , -mmin , -size , -o , -exec , -name

      2.26 文件名后綴在linux 下面可以自定義文件名及后綴,不能代表文件的類型,修改語(yǔ)言:

      linux系統(tǒng)find命令、文件名后綴
      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)