리눅스 stat

1 개요[ | ]

stat
/usr/bin/stat
  • 파일 또는 파일시스템 상태 조회
  • 파일크기, Inode 번호, 링크 수, 퍼미션, UID, GID, 접근/수정/변경 일시 확인 가능
  • GNU 코어유틸의 하나

2 실행 예시[ | ]

[root@zetawiki ~]# stat /etc/passwd
  File: `/etc/passwd'
  Size: 1739      	Blocks: 8          IO Block: 4096   regular file
Device: fc00h/64512d	Inode: 6117286     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-07-24 21:15:53.000000000 +0900
Modify: 2014-04-08 00:48:50.000000000 +0900
Change: 2014-04-08 00:48:50.000000000 +0900
[root@zetawiki ~]# stat -c "%U %G" /etc/sysctl.conf
root root
root@zetawiki:~# stat -c '%A %a' /tmp
drwxrwxrwt 1777

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}