Linux Today: Linux News On Internet Time.

More on LinuxToday

How to get octal file permissions on Linux/Unix command line

Nov 06, 2017, 08:00 (0 Talkback[s])
(Other stories by Anonymous)

I am a new Linux command line user. How do I find file permissions in octal format such as 0644 from the bash command line running on a Linux or Unix operating systems? How can I get the octal permissions for a file? By default the ls command will not display the permissions on a file in octal form, which is useful for many commands such as chmod command and other sysadmin tasks.

Complete Story

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.