multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:

committed by
GitHub

parent
dc690e38eb
commit
a5fe31bc47
@@ -23,7 +23,7 @@
|
||||
|
||||
`apt-get upgrade`
|
||||
|
||||
- Clean the local repository - removing package files (.deb) from interrupted downloads that can no longer be downloaded:
|
||||
- Clean the local repository - removing package files (`.deb`) from interrupted downloads that can no longer be downloaded:
|
||||
|
||||
`apt-get autoclean`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Portable GNU assembler.
|
||||
> Primarily intended to assemble output from `gcc` to be used by `ld`.
|
||||
|
||||
- Assemble a file, writing the output to a.out:
|
||||
- Assemble a file, writing the output to `a.out`:
|
||||
|
||||
`as {{file.s}}`
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
|
||||
`as -f {{file.s}}`
|
||||
|
||||
- Include a given path to the list of directories to search for files specified in .include directives:
|
||||
- Include a given path to the list of directories to search for files specified in `.include` directives:
|
||||
|
||||
`as -I {{path/to/directory}} {{file.s}}`
|
||||
|
@@ -1,8 +1,8 @@
|
||||
# colrm
|
||||
|
||||
> Remove columns from `stdin`.
|
||||
> Remove columns from stdin.
|
||||
|
||||
- Remove first column of `stdin`:
|
||||
- Remove first column of stdin:
|
||||
|
||||
`colrm {{1 1}}`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`cryptsetup luksFormat {{/dev/sda1}}`
|
||||
|
||||
- Open a LUKS volume and create a decrypted mapping at /dev/mapper/{{target}}:
|
||||
- Open a LUKS volume and create a decrypted mapping at `/dev/mapper/{{target}}`:
|
||||
|
||||
`cryptsetup luksOpen {{/dev/sda1}} {{target}}`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`ctrlaltdel`
|
||||
|
||||
- Set CRTL+ALT+DEL to reboot immediately, without any preparation:
|
||||
- Set CTRL+ALT+DEL to reboot immediately, without any preparation:
|
||||
|
||||
`sudo ctrlaltdel hard`
|
||||
|
||||
|
@@ -18,7 +18,7 @@
|
||||
|
||||
`dbus-daemon --address {{address}}`
|
||||
|
||||
- Output the process id to `stdout`:
|
||||
- Output the process id to stdout:
|
||||
|
||||
`dbus-daemon --print-pid`
|
||||
|
||||
|
@@ -10,6 +10,6 @@
|
||||
|
||||
`debman -p {{package_name}}={{version}} {{command_name}}`
|
||||
|
||||
- Read a man page in a .deb file:
|
||||
- Read a man page in a `.deb` file:
|
||||
|
||||
`debman -f {{path/to/filename.deb}} {{command_name}}`
|
||||
|
@@ -7,10 +7,10 @@
|
||||
|
||||
`dget {{package_name}}`
|
||||
|
||||
- Download and extract a package source from its .dsc file:
|
||||
- Download and extract a package source from its `.dsc` file:
|
||||
|
||||
`dget {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}`
|
||||
|
||||
- Download a package source tarball from its .dsc file but don't extract it:
|
||||
- Download a package source tarball from its `.dsc` file but don't extract it:
|
||||
|
||||
`dget -d {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}`
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`e2image {{/dev/sdXN}} {{path/to/image_file}}`
|
||||
|
||||
- Print metadata located on device to `stdout`:
|
||||
- Print metadata located on device to stdout:
|
||||
|
||||
`e2image {{/dev/sdXN}} -`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> Track system configuration files in Git.
|
||||
> More information: <http://etckeeper.branchable.com/>.
|
||||
|
||||
- Set up a Git repo and perform various setup tasks (run from /etc):
|
||||
- Set up a Git repo and perform various setup tasks (run from `/etc`):
|
||||
|
||||
`sudo etckeeper init`
|
||||
|
||||
- Commit all changes in /etc:
|
||||
- Commit all changes in `/etc`:
|
||||
|
||||
`sudo etckeeper commit {{message}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`exif --list-tags --no-fixup {{image.jpg}}`
|
||||
|
||||
- Extract the image thumbnail into the file thumbnail.jpg:
|
||||
- Extract the image thumbnail into the file `thumbnail.jpg`:
|
||||
|
||||
`exif --extract-thumbnail --output={{thumbnail.jpg}} {{image.jpg}}`
|
||||
|
||||
@@ -19,6 +19,6 @@
|
||||
|
||||
`exif --ifd={{0}} --tag={{Model}} --machine-readable {{image.jpg}}`
|
||||
|
||||
- Change the value of the "Artist" tag to John Smith and save to new.jpg:
|
||||
- Change the value of the "Artist" tag to John Smith and save to `new.jpg`:
|
||||
|
||||
`exif --output={{new.jpg}} --ifd={{0}} --tag="{{Artist}}" --set-value="{{John Smith}}" --no-fixup {{image.jpg}}`
|
||||
|
@@ -14,11 +14,11 @@
|
||||
|
||||
`firewall-cmd --permanent --zone={{block}} --change-interface={{enp1s0}}`
|
||||
|
||||
- Permanently open the port for a service in the specified zone (like port `443` when in the `public` zone):
|
||||
- Permanently open the port for a service in the specified zone (like port 443 when in the `public` zone):
|
||||
|
||||
`firewall-cmd --permanent --zone={{public}} --add-service={{https}}`
|
||||
|
||||
- Permanently close the port for a service in the specified zone (like port `80` when in the `public` zone):
|
||||
- Permanently close the port for a service in the specified zone (like port 80 when in the `public` zone):
|
||||
|
||||
`firewall-cmd --permanent --zone={{public}} --remove-service={{http}}`
|
||||
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
`gcov --all-blocks {{path/to/file.cpp}}`
|
||||
|
||||
- Write branch frequencies to the output file and print summary information to `stdout` as a percentage:
|
||||
- Write branch frequencies to the output file and print summary information to stdout as a percentage:
|
||||
|
||||
`gcov --branch-probabilities {{path/to/file.cpp}}`
|
||||
|
||||
|
@@ -18,6 +18,6 @@
|
||||
|
||||
`sudo genkernel --kernname={{custom_name}} all`
|
||||
|
||||
- Use a kernel source outside of the default directory /usr/src/linux:
|
||||
- Use a kernel source outside of the default directory `/usr/src/linux`:
|
||||
|
||||
`sudo genkernel --kerneldir={{path/to/directory}} all`
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# gpasswd
|
||||
|
||||
> Administer "/etc/group" and "/etc/gshadow".
|
||||
> Administer `/etc/group` and `/etc/gshadow`.
|
||||
|
||||
- Define group administrators:
|
||||
|
||||
|
@@ -6,6 +6,6 @@
|
||||
|
||||
`ifup {{eth0}}`
|
||||
|
||||
- Enable all the interfaces defined with "auto" in /etc/network/interfaces:
|
||||
- Enable all the interfaces defined with "auto" in `/etc/network/interfaces`:
|
||||
|
||||
`ifup -a`
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`isoinfo -f -i {{path/to/image.iso}}`
|
||||
|
||||
- E[x]tract a specific file from an ISO image and send it out `stdout`:
|
||||
- E[x]tract a specific file from an ISO image and send it out stdout:
|
||||
|
||||
`isoinfo -i {{path/to/image.iso}} -x {{/PATH/TO/FILE/INSIDE/ISO.EXT}}`
|
||||
|
||||
|
@@ -15,6 +15,6 @@
|
||||
|
||||
`libreoffice --pt {{printer_name}} {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Convert all .doc files in current directory to pdf:
|
||||
- Convert all `.doc` files in current directory to pdf:
|
||||
|
||||
`libreoffice --convert-to {{pdf}} {{*.doc}}`
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`logger {{message}}`
|
||||
|
||||
- Take input from `stdin` and log to syslog:
|
||||
- Take input from stdin and log to syslog:
|
||||
|
||||
`echo {{log_entry}} | logger`
|
||||
|
||||
|
@@ -18,6 +18,6 @@
|
||||
|
||||
`lslocks --pid {{PID}}`
|
||||
|
||||
- List locks with json output to `stdout`:
|
||||
- List locks with json output to stdout:
|
||||
|
||||
`lslocks --json`
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Creates an MS-DOS filesystem inside a partition.
|
||||
|
||||
- Create a.vfat filesystem inside partition 1 on device b (`sdb1`):
|
||||
- Create a vfat filesystem inside partition 1 on device b (`sdb1`):
|
||||
|
||||
`mkfs.vfat {{/dev/sdb1}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`named {{-4|-6}}`
|
||||
|
||||
- Listen for queries on a specific port instead of the default port `53`:
|
||||
- Listen for queries on a specific port instead of the default port 53:
|
||||
|
||||
`named -p {{port}}`
|
||||
|
||||
|
@@ -6,6 +6,6 @@
|
||||
|
||||
`newgrp {{group_name}}`
|
||||
|
||||
- Reset primary group membership to user's default group in /etc/passwd:
|
||||
- Reset primary group membership to user's default group in `/etc/passwd`:
|
||||
|
||||
`newgrp`
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
`pdfgrep --max-count {{3}} --ignore-case {{'^foo'}} {{file.pdf}}`
|
||||
|
||||
- Find pattern in files with a .pdf extension in the current directory recursively:
|
||||
- Find pattern in files with a `.pdf` extension in the current directory recursively:
|
||||
|
||||
`pdfgrep --recursive {{pattern}}`
|
||||
|
||||
|
@@ -10,10 +10,10 @@
|
||||
|
||||
`sudo perf top`
|
||||
|
||||
- Run a command and record its profile into "perf.data":
|
||||
- Run a command and record its profile into `perf.data`:
|
||||
|
||||
`sudo perf record {{command}}`
|
||||
|
||||
- Read "perf.data" (created by `perf record`) and display the profile:
|
||||
- Read `perf.data` (created by `perf record`) and display the profile:
|
||||
|
||||
`sudo perf report`
|
||||
|
@@ -8,6 +8,6 @@
|
||||
|
||||
`sudo photorec {{/dev/sdb}}`
|
||||
|
||||
- Run PhotoRec on a disk image (image.dd):
|
||||
- Run PhotoRec on a disk image (`image.dd`):
|
||||
|
||||
`sudo photorec {{path/to/image.dd}}`
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`scrot`
|
||||
|
||||
- Capture a screenshot and save it as "capture.png":
|
||||
- Capture a screenshot and save it as `capture.png`:
|
||||
|
||||
`scrot {{capture.png}}`
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# service
|
||||
|
||||
> Manage services by running init scripts.
|
||||
> The full script path should be omitted (/etc/init.d/ is assumed).
|
||||
> The full script path should be omitted (`/etc/init.d/` is assumed).
|
||||
|
||||
- List the name and status of all services:
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Manage loaded ssh keys in the ssh-agent.
|
||||
> Ensure that ssh-agent is up and running for the keys to be loaded in it.
|
||||
|
||||
- Add the default ssh keys in "~/.ssh" to the ssh-agent:
|
||||
- Add the default ssh keys in `~/.ssh` to the ssh-agent:
|
||||
|
||||
`ssh-add`
|
||||
|
||||
|
@@ -18,6 +18,6 @@
|
||||
|
||||
`sysctl fs.file-max`
|
||||
|
||||
- Apply changes from /etc/sysctl.conf:
|
||||
- Apply changes from `/etc/sysctl.conf`:
|
||||
|
||||
`sysctl -p`
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
`tomb lock {{encrypted_directory.tomb}} -k {{encrypted_directory.tomb.key}}`
|
||||
|
||||
- Mount a tomb (by default in /media) using its key, making it usable as a regular filesystem directory:
|
||||
- Mount a tomb (by default in `/media`) using its key, making it usable as a regular filesystem directory:
|
||||
|
||||
`tomb open {{encrypted_directory.tomb}} -k {{encrypted_directory.tomb.key}}`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Utility provided by the John the Ripper project to obtain the traditional Unix password file if the system uses shadow passwords.
|
||||
> More information: <https://www.openwall.com/john/>.
|
||||
|
||||
- Combine the /etc/shadow and /etc/passwd of the current system:
|
||||
- Combine the `/etc/shadow` and `/etc/passwd` of the current system:
|
||||
|
||||
`sudo unshadow /etc/passwd /etc/shadow`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`sudo update-alternatives --install {{path/to/symlink}} {{command_name}} {{path/to/command_binary}} {{priority}}`
|
||||
|
||||
- Configure a symbolic link for "java":
|
||||
- Configure a symbolic link for `java`:
|
||||
|
||||
`sudo update-alternatives --config {{java}}`
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# update-rc.d
|
||||
|
||||
> Install and remove services which are System-V style init script links.
|
||||
> Init scripts are in the /etc/init.d/.
|
||||
> Init scripts are in the `/etc/init.d/`.
|
||||
|
||||
- Install a service:
|
||||
|
||||
|
@@ -19,6 +19,6 @@
|
||||
|
||||
`urxvt --hold -e {{command}}`
|
||||
|
||||
- Run a command within the "sh" shell:
|
||||
- Run a command within the `sh` shell:
|
||||
|
||||
`urxvt -e {{sh}} -c {{command}}`
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
`whereis -s {{gcc}} -m {{git}}`
|
||||
|
||||
- Locate binaries for gcc in /usr/bin/ only:
|
||||
- Locate binaries for gcc in `/usr/bin/` only:
|
||||
|
||||
`whereis -b -B {{/usr/bin/}} -f {{gcc}}`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> Run Windows programs on Unix.
|
||||
> More information: <https://wiki.winehq.org/>.
|
||||
|
||||
- Run ipconfig.exe program:
|
||||
- Run `ipconfig.exe` program:
|
||||
|
||||
`wine {{ipconfig}} {{/all}}`
|
||||
|
||||
- Run cmd.exe in background:
|
||||
- Run `cmd.exe` in background:
|
||||
|
||||
`wine start {{cmd}}`
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# yank
|
||||
|
||||
> Read input from `stdin` and display a selection interface that allows a field to be selected and copied to the clipboard.
|
||||
> Read input from stdin and display a selection interface that allows a field to be selected and copied to the clipboard.
|
||||
|
||||
- Yank using the default delimiters (\f, \n, \r, \s, \t):
|
||||
|
||||
|
Reference in New Issue
Block a user