how to get permission of a file code example Example: check octet permission ubuntu stat -c "%a %n" *