linux get file permissions as number code example Example: check octet permission ubuntu stat -c "%a %n" *