linuxファイル基本操作のファイルプロパティ表示
1798 ワード
[root@MiWiFi-R3L-srv ~]# whatis stat
stat (1) - display file or file system status
# app
[root@MiWiFi-R3L-srv ~]# stat app
:"app"
:33 :0 IO :4096
:fd00h/64768d Inode:34080431 :3
:(0755/drwxr-xr-x) Uid:( 0/ root) Gid:( 0/ root)
:unconfined_u:object_r:admin_home_t:s0
:2019-03-04 00:54:13.234782442 +0800
:2019-03-04 00:54:12.170771128 +0800
:2019-03-04 00:54:12.170771128 +0800
:-
#
[root@MiWiFi-R3L-srv ~]# stat -f app
:"app"
ID:fd0000000000 :255 :xfs
:4096 :4096
: :13100800 :12558356 :12558356
Inodes: :26214400 :26137691
[root@MiWiFi-R3L-srv dirlab]# whatis file
file (1) - determine file type
[root@MiWiFi-R3L-srv dirlab]# file sdst.txt
sdst.txt: symbolic link to `dst.txt'
[root@MiWiFi-R3L-srv dirlab]# whatis ls
ls (1) - list directory contents
[root@MiWiFi-R3L-srv dirlab]# ls -lhai
44K
33572438 drwxr-xr-x. 2 root root 111 3 3 22:34 .
68128472 drwxr-xr-x. 3 root root 78 3 3 21:09 ..
34039069 -rw-r--r--. 1 root root 61 3 3 21:39 a.txt
33572440 -rw-r--r--. 2 root root 9.6K 3 1 00:04 dst.txt
34049124 -rw-r--r--. 1 root root 56 3 3 22:16 less.txt
33563386 -rw-r--r--. 1 root root 7.8K 3 3 22:36 log.txt
33572439 -rw-r--r--. 1 root root 9.9K 3 3 21:21 ps.txt
33572431 lrwxrwxrwx. 1 root root 7 3 1 00:18 sdst.txt -> dst.txt
34039051 -rw-r--r--. 1 root root 54 3 3 21:32 test.txt