簡明Linux命令列筆記:stat

來源:互聯網
上載者:User
文章目錄
  • 選項
  • 樣本

顯示檔案的資訊

stat [options] [file-list]

 

參數

file-list指定stat所顯示的一個或多個檔案的路徑名

 

選項

-f                     顯示檔案系統的資訊,而不是檔案的資訊

 

樣本stat
$ stat demo.tar.bz2   檔案:"demo.tar.bz2"  大小:133             塊:8          IO 塊:4096   普通檔案裝置:808h/2056d        Inode:671938      永久連結:1許可權:(0644/-rw-r--r--)  Uid:( 1000/     siu)   Gid:( 1000/     siu)最近訪問:2013-01-13 18:51:13.979123414 +0800最近更改:2013-01-12 17:40:27.075695222 +0800最近改動:2013-01-12 17:40:27.075695222 +0800建立時間:-

顯示檔案資訊

 

stat -f
$ stat -f /  檔案:"/"    ID:d2c798526f17cef7 檔案名稱長度:255     類型:ext2/ext3塊大小:4096       基本塊大小:4096    塊:總計:4130144    空閑:1924228    可用:1714424Inodes: 總計:1050576    空閑:773152

顯示檔案系統資訊

 

 

聯繫我們

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