From 56866656398da669188d3771cbbc4c27e6cf3101 Mon Sep 17 00:00:00 2001 From: Romain Prieto Date: Sun, 2 Mar 2014 18:30:07 +1100 Subject: [PATCH] ls: group similar examples together --- common/ls.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/common/ls.md b/common/ls.md index e1dbbadf2..c4823db88 100644 --- a/common/ls.md +++ b/common/ls.md @@ -6,9 +6,9 @@ `ls -a` -- Sorting by size +- List all file names (no extra info) -`ls -s` +`ls -A1` - List all files with their rights, groups, owner @@ -18,13 +18,12 @@ `ls {{prefix}}*` or `ls *{{suffix}}` -- Sort files by time +- Sort the results size -`-t` for last modified -`-U` for date of creation -`-r` reverses the list -`ls -tr` +`ls -s # by size` +`ls -t # by last modified date` +`ls -U # by creation date` -- List all filenames (one per line) without extra stuff like sizes and dates +- Reverse the order of the results -`ls -A1` +`ls -r`