stat
파일 상태 표시. 더 많은 정보: https://keith.github.io/xcode-man-pages/stat.1.html.
- 파일의 크기, 권한, 생성 및 접근 날짜 등의 속성 표시:
stat
경로/대상/파일
- 위와 동일하지만 자세히 표시 (Linux의
stat
와 더 유사하게):
stat -x
경로/대상/파일
- 파일의 8진수 권한만 표시:
stat -f %Mp%Lp
경로/대상/파일
- 파일의 소유자와 그룹 표시:
stat -f "%Su %Sg"
경로/대상/파일
- 파일의 크기를 바이트 단위로 표시:
stat -f "%z %N"
경로/대상/파일