home products tech support contact us

 Linux 技術支援    ⇒   基礎篇    進階篇    補腦篇    指令索引    中⇒ENG
版權所有, 引用請註明出處
 

stat 顯示檔案屬性

stat 可以很方便的顯示檔案的各種特徵如權限、連結數、大小、擁有者、群 組、uid/gid、atmie/mtime/ctime 、檔案/目錄等資訊。

stat 命令的語法為: stat [OPTIONS] [FILE] .

stat 命令的常用選項包括:


例:
$ stat /tmp ←顯示目錄〝/tmp〞的各種屬性
$ stat -c %s file ←顯示檔案的修改時間

更多範例和用法請參考連結