IT Questions and Answers :)

Friday, December 11, 2020

In Linux system, which command will print the file or folder permissions, in octal notation ?

In Linux system, which command will print the file or folder permissions, in octal notation ?

  • stat -c %a /your_file_path
  • ls -all /your_file_path
  • ls -ltr /your_file_path
  • ls -ll /your_file_path 

In Linux system, which command will print the file or folder permissions, in octal notation ?

 

EXPLANATION

If we want to view the file permissions or the folder permissions in octal notation (mean in numbers), the command will be:

linux@machine:~$ sudo stat -c %a <the file path>

Otherwise, any other command, will show us the file or the folder permissions in Letters mode.


SOURCE

https://www.linux.com/learn/understanding-linux-file-permissions

 

 

Share:

0 comments:

Post a Comment

Popular Posts