↑ ↓ select, Enter open, Esc close

Show permissions and owner in octal notation

Adjust the values, the command updates live
user@server
stat -c '%a %U:%G %n' /var/www/vhosts/example.com/httpdocs/* /var/www/vhosts/example.com/httpdocs/.[!.]*

Prints every file and folder with its permissions in octal notation, owner and group, including hidden files such as .htaccess. Easier to compare than the letter form of ls -l, and the number maps directly to chmod.

Note: If there are no hidden files, stat prints a harmless error for the pattern .[!.]*.

Also searched as

  • show file permissions as number linux
  • find chmod value of a file
  • what permissions does this file have
  • show owner and group

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.