*: fix errors reported by languagetool (#6069)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
`afinfo -i {{path/to/file}}`
|
||||
|
||||
- Print output in xml format:
|
||||
- Print output in XML format:
|
||||
|
||||
`afinfo -x {{path/to/file}}`
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# caffeinate
|
||||
|
||||
> Prevent mac from sleeping.
|
||||
> Prevent macOS from sleeping.
|
||||
|
||||
- Prevent from sleeping for 1 hour (3600 seconds):
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# compgen
|
||||
|
||||
> A built-in command for auto-completion in bash, which is called on pressing TAB key twice.
|
||||
> A built-in command for auto-completion in Bash, which is called on pressing TAB key twice.
|
||||
|
||||
- List all commands that you could run:
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
`compgen -A function`
|
||||
|
||||
- Show shell reserved key words:
|
||||
- Show shell reserved keywords:
|
||||
|
||||
`compgen -k`
|
||||
|
||||
|
@@ -2,11 +2,11 @@
|
||||
|
||||
> Convert and copy a file.
|
||||
|
||||
- Make a bootable usb drive from an isohybrid file (such like `archlinux-xxx.iso`):
|
||||
- Make a bootable USB drive from an isohybrid file (such like `archlinux-xxx.iso`):
|
||||
|
||||
`dd if={{file.iso}} of=/dev/{{usb_drive}}`
|
||||
|
||||
- Clone a drive to another drive with 4MB block and ignore error:
|
||||
- Clone a drive to another drive with 4 MB block and ignore error:
|
||||
|
||||
`dd if=/dev/{{source_drive}} of=/dev/{{dest_drive}} bs=4m conv=noerror`
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
`du -h {{path/to/directory}}`
|
||||
|
||||
- Show the size of a single directory, in human readable units:
|
||||
- Show the size of a single directory, in human-readable units:
|
||||
|
||||
`du -sh {{path/to/directory}}`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`m battery status`
|
||||
|
||||
- Turn off bluetooth:
|
||||
- Turn off Bluetooth:
|
||||
|
||||
`m bluetooth off`
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
`pdfgrep --with-filename --page-number {{pattern}} {{file.pdf}}`
|
||||
|
||||
- Do a case insensitive search for lines that begin with "foo" and return the first 3 matches:
|
||||
- Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches:
|
||||
|
||||
`pdfgrep --max-count {{3}} --ignore-case {{'^foo'}} {{file.pdf}}`
|
||||
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
`port installed`
|
||||
|
||||
- Update port and fetch latest list of available packages:
|
||||
- Update port and fetch the latest list of available packages:
|
||||
|
||||
`sudo port selfupdate`
|
||||
|
||||
|
@@ -27,7 +27,7 @@
|
||||
|
||||
`sed -e 's/{{find}}/{{replace}}/' -e 's/{{find}}/{{replace}}/' {{filename}}`
|
||||
|
||||
- Replace separator / by any other character not used in the find or replace patterns, e.g., #:
|
||||
- Replace separator `/` by any other character not used in the find or replace patterns, e.g. `#`:
|
||||
|
||||
`sed 's#{{find}}#{{replace}}#' {{filename}}`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`stat {{file}}`
|
||||
|
||||
- Same as above but verbose (more similar to linux's `stat`):
|
||||
- Same as above but verbose (more similar to Linux's `stat`):
|
||||
|
||||
`stat -x {{file}}`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`systemsetup -setremotelogin on`
|
||||
|
||||
- Specify TimeZone, NTP Server and enable network time:
|
||||
- Specify timezone, NTP Server and enable network time:
|
||||
|
||||
`systemsetup -settimezone {{US/Pacific}} -setnetworktimeserver {{us.pool.ntp.org}} -setusingnetworktime on`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> Utility for managing Time Machine backups. Most verbs require root privileges.
|
||||
> More information: <https://ss64.com/osx/tmutil.html>.
|
||||
|
||||
- Set a HFS+ drive as the backup destination:
|
||||
- Set an HFS+ drive as the backup destination:
|
||||
|
||||
`sudo tmutil setdestination {{path/to/disk_mount_point}}`
|
||||
|
||||
- Set a APF share or SMB share as the backup destination:
|
||||
- Set an APF share or SMB share as the backup destination:
|
||||
|
||||
`sudo tmutil setdestination {{protocol://user[:password]@host/share}}`
|
||||
|
||||
|
@@ -1,13 +1,13 @@
|
||||
# wifi-password
|
||||
|
||||
> Get the password of the wifi.
|
||||
> Get the password of the Wi-Fi.
|
||||
> More information: <https://github.com/rauchg/wifi-password>.
|
||||
|
||||
- Get the password for the wifi you are currently logged onto:
|
||||
- Get the password for the Wi-Fi you are currently logged onto:
|
||||
|
||||
`wifi-password`
|
||||
|
||||
- Get the password for the wifi with a specific SSID:
|
||||
- Get the password for the Wi-Fi with a specific SSID:
|
||||
|
||||
`wifi-password {{ssid}}`
|
||||
|
||||
|
@@ -22,6 +22,6 @@
|
||||
|
||||
`yaa archive -a {{algorithm}} -d {{path/to/directory}} -o {{path/to/output.yaa}}`
|
||||
|
||||
- Create an archive with an 8MB block size:
|
||||
- Create an archive with an 8 MB block size:
|
||||
|
||||
`yaa archive -b {{8m}} -d {{path/to/directory}} -o {{path/to/output.yaa}}`
|
||||
|
Reference in New Issue
Block a user