multiple pages: Unify file path syntax to indicate a 'path to' (#4816)

This commit is contained in:
sebastientinel
2020-10-28 18:19:43 +01:00
committed by GitHub
parent 8b07793aa6
commit 1d32985f2f
28 changed files with 60 additions and 56 deletions

View File

@@ -4,7 +4,7 @@
- Convert single images and/or whole directories containing valid image formats:
`imgp -x {{1366x1000}} {{path/to/dir}} {{path/to/file}}`
`imgp -x {{1366x1000}} {{path/to/directory}} {{path/to/file}}`
- Scale an image by 75% and overwrite the source image to a target resolution:

View File

@@ -1,6 +1,7 @@
# ltrace
> Display dynamic library calls of a process.
> More information: <https://linux.die.net/man/1/ltrace>.
- Print (trace) library calls of a program binary:
@@ -8,12 +9,12 @@
- Count library calls. Print a handy summary at the bottom:
`ltrace -c {{/path/to/program}}`
`ltrace -c {{path/to/program}}`
- Trace calls to malloc and free, omit those done by libc:
`ltrace -e malloc+free-@libc.so* {{/path/to/program}}`
`ltrace -e malloc+free-@libc.so* {{path/to/program}}`
- Write to file instead of terminal:
`ltrace -o {{file}} {{/path/to/program}}`
`ltrace -o {{file}} {{path/to/program}}`

View File

@@ -1,27 +1,28 @@
# mdadm
> RAID management utility.
> More information: <https://linux.die.net/man/8/mdadm>.
- Create array:
`mdadm --create {{/path/to/raid_device_file}} --level {{raid_level}} --raid-devices {{number_of_disks}} {{/path/to/disk_device_file}}`
`mdadm --create {{/dev/md/MyRAID}} --level {{raid_level}} --raid-devices {{number_of_disks}} {{/dev/sdXN}}`
- Stop array:
`mdadm -S {{/path/to/raid_device_file}}`
`mdadm --stop {{/dev/md0}}`
- Mark disk as failed:
`mdadm {{/path/to/raid_device_file}} -f {{/path/to/disk_device_file}}`
`mdadm --fail {{/dev/md0}} {{/dev/sdXN}}`
- Remove disk:
`mdadm {{/path/to/raid_device_file}} -r {{/path/to/disk_device_file}}`
`mdadm --remove {{/dev/md0}} {{/dev/sdXN}}`
- Add disk to array:
`mdadm {{/path/to/raid_device_file}} -a {{/path/to/disk_device_file}}`
`mdadm --assemble {{/dev/md0}} {{/dev/sdXN}}`
- Show RAID info:
`mdadm -D {{/path/to/raid_device_file}}`
`mdadm --detail {{/dev/md0}}`

View File

@@ -1,7 +1,8 @@
# runsvchdir
> Change the directory `runsvdir` uses by default.
> More information: <http://manpages.ubuntu.com/manpages/focal/man8/runsvchdir.8.html>.
- Switch `runsvdir` directories:
`sudo runsvchdir {{/path/to/directory}}`
`sudo runsvchdir {{path/to/directory}}`

View File

@@ -9,4 +9,4 @@
- Combine two arbitrary shadow and password files:
`sudo unshadow {{/path/to/passwd}} {{/path/to/shadow}}`
`sudo unshadow {{path/to/passwd}} {{path/to/shadow}}`

View File

@@ -12,7 +12,7 @@
- Create new user with specified shell:
`useradd --shell {{/path/to/shell}} {{name}}`
`useradd --shell {{path/to/shell}} {{name}}`
- Create new user belonging to additional groups (mind the lack of whitespace):

View File

@@ -12,4 +12,4 @@
- Create a new home directory for a user and move their files to it:
`usermod -m -d {{/path/to/home}} {{user}}`
`usermod -m -d {{path/to/home}} {{user}}`