Skip to content

Stat

파일 정보를 출력.

Example

$ stat word.yaml

다음과 같이 출력된다:

  File: word.yaml
  Size: 1666            Blocks: 8          IO Block: 4096   regular file
Device: 10302h/66306d   Inode: 46699952    Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/    yourname)   Gid: ( 1000/    yourname)
Access: 2022-10-06 16:46:05.767083756 +0900
Modify: 2022-10-06 16:45:25.997050482 +0900
Change: 2022-10-07 07:12:31.675839284 +0900
 Birth: -

파일을 권한을 8진수로 출력

stat -c "%a" ./file
664

See also

Favorite site