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
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
0 comments:
Post a Comment