permissions code code example
Example 1: check octet permission ubuntu
stat -c "%a %n" *
Example 2: octal chmod
0 ---
1 --x
2 -w-
3 -wx
4 r--
5 r-x
6 rw-
7 rwx
1 - x
2 - w
4 - r
stat -c "%a %n" *
0 ---
1 --x
2 -w-
3 -wx
4 r--
5 r-x
6 rw-
7 rwx
1 - x
2 - w
4 - r