check numeric file permission linux code example Example 1: check octet permission ubuntu stat -c "%a %n" * Example 2: ls display chmod number stat -c '%a %n' *