mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 11:45:59 +02:00
ls, touch: add examples (#5855)
This commit is contained in:
parent
f6ebb40107
commit
40e478add9
2 changed files with 8 additions and 0 deletions
|
@ -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}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue