From 0f7d2ba6df3fa8efbdc4f67611a24949e9c37f9d Mon Sep 17 00:00:00 2001 From: Rory Crispin Date: Tue, 28 Jan 2014 21:58:16 +0000 Subject: [PATCH] Added prefix/suffix and time sorting --- osx/ls.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/osx/ls.md b/osx/ls.md index d6a5d93483..adbb198a9c 100644 --- a/osx/ls.md +++ b/osx/ls.md @@ -13,3 +13,14 @@ - List all files with their rights, groups, owner `ls -ls` + +- List all files with a prefix/suffix + +`ls {prefix*}` or `ls {*suffix}` + +- Sort files by time + +`-t` for last modified +`-U` for date of creation +`-r` reverses the list +`ls -tr`