print file permissions in shell code example Example: check octet permission ubuntu stat -c "%a %n" *