PDA

View Full Version : Is there a way to see permissions by using the command line



royeo
31st May 2007, 03:08 AM
I have Fedora Core 6 and use KDE.

Is there a way to see permissions by using the command line, so you can see the results of a "chmod" command?

I know you can see permissions by right clicking the file in Konqueror.

Thanks,

royeo

pianoplayer
31st May 2007, 03:16 AM
Just enter

ll [filename or directory]

It gives you the permissions for the fileowner, the file group, and all other users. ("ll" is equivalent to "ls -l".)

Dies
31st May 2007, 03:18 AM
~ $ ls -l /etc/X11/
total 64
-rwxr-xr-x 1 root root 1496 2007-04-17 02:09 chooser.sh
drwxr-xr-x 3 root root 4096 2007-02-21 18:43 dm
drwxr-xr-x 7 root root 4096 2007-05-12 07:44 gdm
drwxr-xr-x 2 root root 4096 2007-04-17 20:17 imwheel
drwxr-xr-x 2 root root 4096 2007-03-03 00:21 Sessions
-rwxr-xr-x 1 root root 858 2007-04-17 02:09 startDM.sh
drwxr-xr-x 3 root root 4096 2007-02-22 13:17 X11
drwxr-xr-x 3 root root 4096 2007-02-21 12:02 xinit
-rw-r--r-- 1 root root 842 2007-03-04 22:39 xloadimagerc
-rw-r--r-- 1 root root 1961 2007-04-17 20:26 xorg.conf
-rw-r--r-- 1 root root 1766 2007-02-21 22:06 xorg.conf~
-rw-r--r-- 1 root root 18603 2007-05-07 13:26 xorg.conf.example


Pretty self explanatory - read,write,execute - owner,group,others.