中文字幕亚洲第一精品|精品国产免费一区二区|久久婷婷五月六月综合版|中文字幕熟妇久久久人妻|久久综合精品国产一区无码|国产成人精品永久免费视频|午夜亚洲国产精品理论片a级|久久精品一区二区三区无码护土

 訪問手機版  

Linux常用命令|Linux培訓學習|考試認證|工資待遇與招聘,認準超級網(wǎng)工!

招聘|合作 登陸|注冊

網(wǎng)絡工程師培訓

當前位置:網(wǎng)絡工程師 > 技術課程 > linux > 熱點關注 > linux常用命令

Linux stat命令詳解

時間:2019-08-30

linux命令大全軟件_linux命令大全_linux命令大全 root

statlinux命令大全:查看文件或者文件系統(tǒng)的狀態(tài) -->可以查看時間等屬性

linux命令大全軟件_linux命令大全 root_linux命令大全

Usage: stat [OPTION]... FILE...
Display file or file system status.
-L, --dereference     follow links
-Z, --context         print the SELinux security context 
-f, --file-system     display file system status instead of file status
-c  --format=FORMAT   use the specified FORMAT instead of the default;
                        output a newline after each use of FORMAT
    --printf=FORMAT   like --format, but interpret backslash escapes,
                        and do not output a mandatory trailing newline.
                        If you want a newline, include \n in FORMAT.
-t, --terse           print the information in terse form
    --help     display this help and exit
    --version  output version information and exit
Valid format sequences for file systems:
  %a   Free blocks available to non-superuser
  %b   Total data blocks in file system
  %c   Total file nodes in file system
  %d   Free file nodes in file system
  %f   Free blocks in file system
  %C   SELinux security context string
  %i   File System ID in hex
  %l   Maximum length of filenames
  %n   File name
  %s   Block size (for faster transfers)
  %S   Fundamental block size (for block counts)
  %t   Type in hex
  %T   Type in human readable form

linux命令大全_linux命令大全軟件_linux命令大全 root

查看/etc/hosts文件信息

linux命令大全 root_linux命令大全軟件_linux命令大全

stat /etc/hosts
Access: 2018-06-30 22:04:51.110015002 –0700   --> find  atime
Modify: 2015-06-08 20:34:49.508018898 –0700   --> find  mtime
Change: 2015-06-08 20:34:49.508018898 –0700   --> find  ctime 

linux命令大全_linux命令大全 root_linux命令大全軟件

image

查看文件屬性權限 -c :格式化

stat -c %a /etc/hosts

image

posted @ 2018-07-01 20linux命令大全:17小a玖拾柒 閱讀(...) 評論(...) 編輯

 上一個教程:Linux httpd命令