| You are here: SillyDog701 > UNIX Guide >SillyDog701 > UNIX Guide > (index) |
To display the permissions on a single file:
ls -l file1 -rw-r--r-- 2 unixjohn doc 3287 Apr 8 12:10 file1
This displays the following information about the file file1.
-rw-r--r-- (access permissions) 2 (number of links to this file) unixjohn (owner) doc (group ownership) 3287 (size in bytes) Apr 8 12:10 (date and time last modified)
To display the permissions on the contents of a directory:
ls -l prototype
This displays the same information as in the example above for each file and directory in the directory prototype.
To display the permissions on each file and directory in your current directory:
ls -l -rw------- 1 erpl08 iss 4307 Jun 17 10:00 FAQ.xdh drwx------ 2 erpl08 iss 1024 Jun 17 10:00 SCCS -rw------- 1 erpl08 iss 15119 Jun 17 10:00 commands.xdh -rw------- 1 erpl08 iss 266 Jun 17 10:00 concepts.xdh
This displays the following information about every file and directory.
d (this is a directory) rwx------ (access permissions) 2 (number of links to this file) erpl08 (owner) iss (group ownership) 1024 (size in bytes) Jun 17 10:00 (date and time last modified)
UNIX Guide home |
search |
index
| Page URL: http://sillydog.org/unix/ [SillyDog701] [Netscape] [MozInfo701] [MacCentre701] [UNIX Guide] [AntTunes701][Forums] [Search] [Change Log] [Feedback] [About Us] [Sitemap] This UNIX Guide maintained by SillyDog701, portion of this Guide is based on UNIXhelp. UNIXhelp is copyright University of Edinburgh. This page was last modified on 14 March, 2006 |
support MozInfo701 and SillyDog701 |