File:  [MW Coherent from dump] / coherent / a / usr / man / MULTI / ls
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



ls                           Command                           ls




List directory's contents

llss [-aaccddffggiillrrssttuu] [_f_i_l_e ... ]

The command ls  prints information about each file.  Normally, ls
sorts its  output by file name  and prints only the  name of each
file.  If a directory name is  given as an argument, ls sorts and
lists its  contents, not including  `.' and `..'.  If  no file is
named, ls lists the contents of the current directory.

The following options control  how ls sorts and displays its out-
put.

-aa   Print all directory entries, including `.', `..', any hidden
     files, and volume ID's.

-cc   Sort by the time the files' attributes were last changed.

-dd   Treat directories as if they were files.

-ff   Force each argument to be treated as a directory.  This dis-
     ables  the -lrst  options and  sorting,  and enables  the -a
     option.

-gg   Display  group list rather  than user ls of  owner; only ap-
     plicable with -l.

-ii   Print the i-number of each file.

-ll    Print information  in long  format.   The fields  give mode
     bits, link count, owner uid, owner gid, size in bytes, date,
     and  file  name.  For special files,  major and minor device
     numbers replace the size field.

-rr   Reverse the sense of the sort.

-RR   Recursively print directories.

-ss   Print the size in blocks of each file.

-tt   Sort by time, newest first.

-uu   Sort by the access time.

The date ls prints with the -l and -t options is the modification
time, unless the -c or -u option is used as well.

The mode  field in the  long list format consists  of ten charac-
ters.  The first character will be one of the following:







COHERENT Lexicon                                           Page 1




ls                           Command                           ls



             -       Regular file



             bb       Block special file
             cc       Character special file



             dd       Directory



             pp       Pipe
             xx       Bad entry (remove it immediately!)


The remaining nine  characters are permission bits, in three sets
of three characters each.  The first set pertains to the owner of
the file,  the second  to users from  the owner's group,  and the
third to users from other groups.  Each set may contain 3 charac-
ters from the following.


             rr       The file can be read
             ss       Set effective user ID or group ID on execution
             tt       Shared text is sticky
             ww       The file can be read
             xx       The file is executable
             -       No permission is given


***** See Also *****

chmod, commands, lc, stat






















COHERENT Lexicon                                           Page 2



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.