mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 17:13:50 +02:00
Add extra newline between consecutive commands examples.
These 6 files had multiple examples all separated by a single newline. While rendering it in markdown, the examples all come up in a single line. Adding another newline makes rendering better. Also will help in easier copying (double click on the line to copy).
This commit is contained in:
parent
e4114fa6cc
commit
2097cf359d
6 changed files with 20 additions and 0 deletions
|
@ -5,15 +5,19 @@
|
||||||
- Display a calendar for the current month or specified month
|
- Display a calendar for the current month or specified month
|
||||||
|
|
||||||
`cal`
|
`cal`
|
||||||
|
|
||||||
`cal -m {{12}}`
|
`cal -m {{12}}`
|
||||||
|
|
||||||
`cal -m {{Dec}}`
|
`cal -m {{Dec}}`
|
||||||
|
|
||||||
- Display a calendar for the current year or a specified year
|
- Display a calendar for the current year or a specified year
|
||||||
|
|
||||||
`cal -y`
|
`cal -y`
|
||||||
|
|
||||||
`cal 2013`
|
`cal 2013`
|
||||||
|
|
||||||
- Display date of Easter (western churches)
|
- Display date of Easter (western churches)
|
||||||
|
|
||||||
`ncal -e`
|
`ncal -e`
|
||||||
|
|
||||||
`ncal -e 2013`
|
`ncal -e 2013`
|
||||||
|
|
|
@ -21,12 +21,15 @@
|
||||||
- List all files with a prefix/suffix
|
- List all files with a prefix/suffix
|
||||||
|
|
||||||
`ls {{prefix}}*`
|
`ls {{prefix}}*`
|
||||||
|
|
||||||
`ls *{{suffix}}`
|
`ls *{{suffix}}`
|
||||||
|
|
||||||
- Sort the results by size, last modified date, or creation date
|
- Sort the results by size, last modified date, or creation date
|
||||||
|
|
||||||
`ls -S`
|
`ls -S`
|
||||||
|
|
||||||
`ls -t`
|
`ls -t`
|
||||||
|
|
||||||
`ls -U`
|
`ls -U`
|
||||||
|
|
||||||
- Reverse the order of the results
|
- Reverse the order of the results
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
- upload a file, or upload and rename a file
|
- upload a file, or upload and rename a file
|
||||||
|
|
||||||
`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/}}`
|
`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/}}`
|
||||||
|
|
||||||
`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/newname.txt}}`
|
`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/newname.txt}}`
|
||||||
|
|
||||||
- download a file
|
- download a file
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
- upload or download a directory
|
- upload or download a directory
|
||||||
|
|
||||||
`scp -r {{/local/folder}} {{10.0.0.1}}:{{/remote/path/}}`
|
`scp -r {{/local/folder}} {{10.0.0.1}}:{{/remote/path/}}`
|
||||||
|
|
||||||
`scp -r {{10.0.0.1}}:{{/remote/path}} {{/local/folder}}`
|
`scp -r {{10.0.0.1}}:{{/remote/path}} {{/local/folder}}`
|
||||||
|
|
||||||
- specify username on host
|
- specify username on host
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
- Removes a file after overwriting (single pass, 7 pass, 35 pass)
|
- Removes a file after overwriting (single pass, 7 pass, 35 pass)
|
||||||
|
|
||||||
`srm -s {{/path/to/file}}`
|
`srm -s {{/path/to/file}}`
|
||||||
|
|
||||||
`srm -m {{/path/to/file}}`
|
`srm -m {{/path/to/file}}`
|
||||||
|
|
||||||
`srm {{/path/to/file}}`
|
`srm {{/path/to/file}}`
|
||||||
|
|
||||||
- Scurely remove recursively a directory and all it's subdirectories
|
- Scurely remove recursively a directory and all it's subdirectories
|
||||||
|
|
|
@ -17,9 +17,13 @@
|
||||||
- Filter sockets by address and/or port
|
- Filter sockets by address and/or port
|
||||||
|
|
||||||
`ss -t dst 1.2.3.4:80`
|
`ss -t dst 1.2.3.4:80`
|
||||||
|
|
||||||
`ss -u src 127/8`
|
`ss -u src 127/8`
|
||||||
|
|
||||||
`ss -t 'dport >= :1024'`
|
`ss -t 'dport >= :1024'`
|
||||||
|
|
||||||
`ss -x "src /tmp/.X11-unix/*"`
|
`ss -x "src /tmp/.X11-unix/*"`
|
||||||
|
|
||||||
`ss -t state established '( dport = :ssh or sport = :ssh )'`
|
`ss -t state established '( dport = :ssh or sport = :ssh )'`
|
||||||
|
|
||||||
- Only list IPv4 or IPv6 sockets
|
- Only list IPv4 or IPv6 sockets
|
||||||
|
|
|
@ -9,16 +9,21 @@
|
||||||
- Specify TimeZone, NTP Server and enable network time
|
- Specify TimeZone, NTP Server and enable network time
|
||||||
|
|
||||||
`systemsetup -settimezone {{US/Pacific}}`
|
`systemsetup -settimezone {{US/Pacific}}`
|
||||||
|
|
||||||
`systemsetup -setnetworktimeserver {{us.pool.ntp.org}}`
|
`systemsetup -setnetworktimeserver {{us.pool.ntp.org}}`
|
||||||
|
|
||||||
`systemsetup -setusingnetworktime on`
|
`systemsetup -setusingnetworktime on`
|
||||||
|
|
||||||
- Make the machine never sleep; restart on freeze & power failure
|
- Make the machine never sleep; restart on freeze & power failure
|
||||||
|
|
||||||
`systemsetup -setsleep off`
|
`systemsetup -setsleep off`
|
||||||
|
|
||||||
`systemsetup -setrestartpowerfailure on`
|
`systemsetup -setrestartpowerfailure on`
|
||||||
|
|
||||||
`systemsetup -setrestartfreeze on`
|
`systemsetup -setrestartfreeze on`
|
||||||
|
|
||||||
- List valid startup disks, specify a new startup disk
|
- List valid startup disks, specify a new startup disk
|
||||||
|
|
||||||
`systemsetup -liststartupdisks`
|
`systemsetup -liststartupdisks`
|
||||||
|
|
||||||
`systemsetup -setstartupdisk {{path}}`
|
`systemsetup -setstartupdisk {{path}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue