mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 16:43:54 +00:00
Update cheatsheets
This commit is contained in:
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Decompress a file overwriting existing files:
|
||||
|
||||
`bzip3 {{[-d|--decode]}} {{[-f--force]}} {{path/to/compressed_file.bz3}}`
|
||||
`bzip3 {{[-d|--decode]}} {{[-f|--force]}} {{path/to/compressed_file.bz3}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
13
tldr/cisco-ios/enable
Normal file
13
tldr/cisco-ios/enable
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, cisco-ios]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# enable
|
||||
|
||||
> Enter privileged execution mode.
|
||||
> More information: <https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ios_shl/command/ios-shell-cr-book/ios-shell-cr-a1.html>.
|
||||
|
||||
- Enter privileged execution mode:
|
||||
|
||||
`enable`
|
||||
33
tldr/dnsmasq
Normal file
33
tldr/dnsmasq
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnsmasq
|
||||
|
||||
> Lightweight DNS, DHCP, TFTP, and PXE server.
|
||||
> More information: <https://manned.org/dnsmasq>.
|
||||
|
||||
- Start dnsmasq with default configuration:
|
||||
|
||||
`dnsmasq`
|
||||
|
||||
- Run dnsmasq in the foreground (for debugging):
|
||||
|
||||
`dnsmasq --no-daemon`
|
||||
|
||||
- Specify a custom configuration file:
|
||||
|
||||
`dnsmasq --conf-file={{path/to/config.conf}}`
|
||||
|
||||
- Enable verbose logging:
|
||||
|
||||
`dnsmasq --log-queries --log-facility=-`
|
||||
|
||||
- Set a DHCP range and lease time:
|
||||
|
||||
`dnsmasq --dhcp-range={{192.168.0.50,192.168.0.150,12h}}`
|
||||
|
||||
- Print dnsmasq version:
|
||||
|
||||
`dnsmasq --version`
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Include the HTTP response headers in the output:
|
||||
|
||||
`gh api {{[--include]}} {{endpoint}}`
|
||||
`gh api {{[-i|--include]}} {{endpoint}}`
|
||||
|
||||
- Do not print the response body:
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Resize the container's disk to 20G:
|
||||
|
||||
`pct {{[resi|resize]]} {{100}} {{rootfs|mpX}} {{20G}}`
|
||||
`pct {{[resi|resize]}} {{100}} {{rootfs|mpX}} {{20G}}`
|
||||
|
||||
- Show the configuration of a container, specifying its ID:
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Read hardware addresses, IP addresses/hostnames, optional ports and SecureON passwords from a file:
|
||||
|
||||
`wol {{[-f|--file]]} {{path/to/file}}`
|
||||
`wol {{[-f|--file]}} {{path/to/file}}`
|
||||
|
||||
- Turn on verbose output:
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compress a file with the best compression level:
|
||||
|
||||
`lzop {{[-9|--best]}} {{[path/to/file]}}`
|
||||
`lzop {{[-9|--best]}} {{path/to/file}}`
|
||||
|
||||
- Compress a file with the fastest compression level:
|
||||
|
||||
`lzop {{[-1|--fast]}} {{[path/to/file]}}`
|
||||
`lzop {{[-1|--fast]}} {{path/to/file}}`
|
||||
|
||||
21
tldr/nvidia-smi-mig
Normal file
21
tldr/nvidia-smi-mig
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nvidia-smi mig
|
||||
|
||||
> Manage Nvidia multi-instance GPUs.
|
||||
> More information: <https://docs.nvidia.com/datacenter/tesla/mig-user-guide/index.html>.
|
||||
|
||||
- Create a compute instance from device 0:
|
||||
|
||||
`nvidia-smi mig {{[-cgi|--create-gpu-instance]}} {{0}} {{[-C|--default-compute-instance]}}`
|
||||
|
||||
- List GPU instances:
|
||||
|
||||
`nvidia-smi mig {{[-lgi|--list-gpu-instances]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`nvidia-smi mig {{[-h|--help]}}`
|
||||
Reference in New Issue
Block a user