ULS is the implementation of the UNIX utility ls.
- Download the source code from this repository.
- Go to the program directory.
- Run
make
in terminal.
uls [-ACGRSTcfglmortux1] [file ...]
For example: ./uls -l test
-A
List all entries except for . and ... Always set for the superuser.
-C
Force multi-column output; this is the default when output is to a terminal.
-G
Makes output colorful and fancy.
-R
Recursively list subdirectories encountered.
-S
Sort files by size.
-T
When used with the -l option, display complete time information for the file, including month, day, hour, minute, second, and year.
-c
Use time when file status was last changed for sorting (-t) or long printing (-l).
-f
Output is not sorted. This option turns on the -a option.
-g
This option is only available for compatibility with POSIX; it isused to display the group name in the long (-l) format output.
-l
For each file, print the file's file serial number.
-m
Stream output format; list files across the page, separated by commas.
-o
List in long format, but omit the group id.
-r
Reverse the order of the sort to get reverse lexicographicalorder or the oldest entries first (or largest files last, if combined with sort by size.
-t
Sort by time modified (most recently modified first) before sorting the operands by lexicographical order.
-u
Use time of last access, instead of last modification of the file for sorting (-t) or long printing (-l).
-x
The same as -C, except that the multi-column output is produced with entries sorted across, rather than down, the columns.
-1
Force output to be one entry per line. This is the default when output is not to a terminal.
People that made this program: