%a는 stat의 옵션인가요?

%a는 stat의 옵션인가요?
Usage: stat [OPTION]... FILE...
Display file or file system status.

  -L, --dereference     follow links
  -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

The valid format sequences for files (without --file-system):

  %a   Access rights in octal
  %A   Access rights in human readable form

...

%a그것도 옵션인가요?

어떻게 사용하나요?

답변1

그것은형식 지정자~을 위한옵션 -c옵션 자체가 아닌

$ stat -c '%a' myfile
664

또는

$ stat -c '%n %a' myfile
myfile 664

관련 정보