LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Listing Protection of Root Directory (https://www.linuxquestions.org/questions/linux-newbie-8/listing-protection-of-root-directory-4175416753/)

OtagoHarbour 07-14-2012 06:21 PM

Listing Protection of Root Directory
 
I am using Ubuntu 11.10.

How do you get the directory protection status for the root directory. If I try

Code:

ls -l /
I get a listing of the subdirectories of / but not / itself. So I cannot see what its protection status is.

Thanks,
Peter.

unSpawn 07-14-2012 06:53 PM

Try 'ls -ld /' or easier: 'stat /'.

OtagoHarbour 07-14-2012 07:33 PM

Quote:

Originally Posted by unSpawn (Post 4728261)
Try 'ls -ld /' or easier: 'stat /'.

They both give me exactly what I want.

Thanks very much,
Peter.


All times are GMT -5. The time now is 08:46 AM.