Преглед изворни кода

Merge pull request #313 from cnu/master

Add extra newline between consecutive commands examples.
Leandro Ostera пре 9 година
родитељ
комит
1d90885e41
6 измењених фајлова са 20 додато и 0 уклоњено
  1. 4 0
      pages/common/cal.md
  2. 3 0
      pages/common/ls.md
  3. 2 0
      pages/common/scp.md
  4. 2 0
      pages/common/srm.md
  5. 4 0
      pages/linux/ss.md
  6. 5 0
      pages/osx/systemsetup.md

+ 4 - 0
pages/common/cal.md

@@ -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`

+ 3 - 0
pages/common/ls.md

@@ -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

+ 2 - 0
pages/common/scp.md

@@ -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

+ 2 - 0
pages/common/srm.md

@@ -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

+ 4 - 0
pages/linux/ss.md

@@ -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

+ 5 - 0
pages/osx/systemsetup.md

@@ -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}}`