From 40e478add979658bc5956988739dc62218235f3f Mon Sep 17 00:00:00 2001 From: blalyasar <49458946+blalyasar@users.noreply.github.com> Date: Fri, 14 May 2021 03:40:50 +0300 Subject: [PATCH] ls, touch: add examples (#5855) --- pages/common/ls.md | 4 ++++ pages/common/touch.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pages/common/ls.md b/pages/common/ls.md index caa3756cf..29f6862ec 100644 --- a/pages/common/ls.md +++ b/pages/common/ls.md @@ -30,3 +30,7 @@ - Long format list of all files, sorted by modification date (oldest first): `ls -ltr` + +- Only list directories: + +`ls -d {{*/}}` diff --git a/pages/common/touch.md b/pages/common/touch.md index 75864e340..5f828fae5 100644 --- a/pages/common/touch.md +++ b/pages/common/touch.md @@ -14,3 +14,7 @@ - Use the times from a file to set the times on a second file: `touch -r {{filename}} {{filename2}}` + +- Create multiple files: + +`touch {{file{1,2,3}.txt}}`