ls - list file/directory information
ls [-1RSacdfiklnrstu] [file ...]
This programs lists information about files and directories. If it is invoked without file/directory name arguments, it lists the contents of the current directory. Otherwise, ls lists information about the files and information about the contents of the directories (but see -d). Furthermore, without any option arguments ls justs lists the names of files and directories. All files are listed before all directories. The default sort order is ascending ASCII on filename.
The BSD options '1ACFLRSTWacdfgiklmnopqrstux' are recognized, but only '1RSacdfiklnrstu' are implemented:
The file metadata from stat() is used, which may not necessarily mean much on non-Unix systems. Specifically, the uid, gid, inode, and block numbers may be meaningless (or less than meaningful at least).
The -l option does not yet list the major and minor device numbers for special files, but it does list the value of the 'dev' field as 2 hex 16-bit words. Doing this properly would probably require filesystem type probing.
This Perl implementation of ls was written by Mark Leighton Fisher of Thomson Consumer Electronics, fisherm@tce.com.
This program is free and open software. You may use, modify, distribute, and sell this program (and any modified variants) in any way you wish, provided you do not restrict others from doing the same.