aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ls.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-06-30 16:52:57 -0500
committerRob Landley <rob@landley.net>2013-06-30 16:52:57 -0500
commit53b47708a7852dd9dc15b981888afec42cd0d591 (patch)
treec78ec3abcea8887d7127abab175c6c9baa033a63 /toys/posix/ls.c
parent953722e3826c779f261a4c8a3649e36b1333a86f (diff)
downloadtoybox-53b47708a7852dd9dc15b981888afec42cd0d591.tar.gz
Condense ls help text.
Diffstat (limited to 'toys/posix/ls.c')
-rw-r--r--toys/posix/ls.c38
1 files changed, 12 insertions, 26 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c
index 2f066a72..07ddcade 100644
--- a/toys/posix/ls.c
+++ b/toys/posix/ls.c
@@ -15,36 +15,22 @@ config LS
list files
what to show:
- -a all files including .hidden
- -c use ctime for timestamps
- -d directory, not contents
- -i inode number
- -k block sizes in kilobytes
- -p put a '/' after directory names
- -q unprintable chars as '?'
- -s size (in blocks)
- -u use access time for timestamps
- -A list all files except . and ..
- -H follow command line symlinks
- -L follow symlinks
- -R recursively list files in subdirectories
- -F append file type indicator (/=dir, *=exe, @=symlink, |=FIFO)
+ -a all files including .hidden -c use ctime for timestamps
+ -d directory, not contents -i inode number
+ -k block sizes in kilobytes -p put a '/' after dir names
+ -q unprintable chars as '?' -s size (in blocks)
+ -u use access time for timestamps -A list all files but . and ..
+ -H follow command line symlinks -L follow symlinks
+ -R recursively list files in subdirs -F append /dir *exe @sym |FIFO
output formats:
- -1 list one file per line
- -C columns (sorted vertically)
- -g like -l but no owner
- -l long (show full details for each file)
- -m comma separated
- -n like -l but numeric uid/gid
- -o like -l but no group
- -x columns (sorted horizontally)
+ -1 list one file per line -C columns (sorted vertically)
+ -g like -l but no owner -l long (show full details)
+ -m comma separated -n like -l but numeric uid/gid
+ -o like -l but no group -x columns (horizontal sort)
sorting (default is alphabetical):
- -f unsorted
- -r reverse
- -t timestamp
- -S size
+ -f unsorted -r reverse -t timestamp -S size
*/
#define FOR_ls