ls, touch: add examples (#5855)
This commit is contained in:
@@ -30,3 +30,7 @@
|
|||||||
- Long format list of all files, sorted by modification date (oldest first):
|
- Long format list of all files, sorted by modification date (oldest first):
|
||||||
|
|
||||||
`ls -ltr`
|
`ls -ltr`
|
||||||
|
|
||||||
|
- Only list directories:
|
||||||
|
|
||||||
|
`ls -d {{*/}}`
|
||||||
|
@@ -14,3 +14,7 @@
|
|||||||
- Use the times from a file to set the times on a second file:
|
- Use the times from a file to set the times on a second file:
|
||||||
|
|
||||||
`touch -r {{filename}} {{filename2}}`
|
`touch -r {{filename}} {{filename2}}`
|
||||||
|
|
||||||
|
- Create multiple files:
|
||||||
|
|
||||||
|
`touch {{file{1,2,3}.txt}}`
|
||||||
|
Reference in New Issue
Block a user