Checking permission of a current directory in Linux is quite simple and basic.
The "ls" command will do the job.
ls does not require sudo membership to use the command.
Even if a directory has no files on it, just type: ls -lad
This will show the permissions on the current directory where the command is typed. Even if the directory has no files or it is empty it will show the folder permissions.
Consult "man ls" why ls -lad works to check permissions on empty folders.
Typing, ls -ltr won't show anything if the folder is empty.
Typing, ls -lad will show the permission whether the folder is empty. The ls command will display "." the current folder and ". .", basically this will show the hidden files and it's current permission settings.
But by typing ls only or ls -ltr it won't show any permissions if the folder is empty since there are no files to display and thus no information is displayed.
Cheers. Till next time.
================================
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
Heaven's Dew Fall Prayer app for Android :
Catholic Rosary Guide for Android:
Comments
Post a Comment