mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 04:47:46 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run Docker daemon and configure it to listen to specific sockets (UNIX and TCP):
|
||||
|
||||
`dockerd --host unix://{{path/to/tmp.sock}} --host tcp://{{ip}}`
|
||||
`dockerd {{[-H|--host]}} unix://{{path/to/tmp.sock}} {{[-H|--host]}} tcp://{{ip}}`
|
||||
|
||||
- Run with specific daemon PID file:
|
||||
|
||||
`dockerd --pidfile {{path/to/pid_file}}`
|
||||
`dockerd {{[-p|--pidfile]}} {{path/to/pid_file}}`
|
||||
|
||||
- Run in debug mode:
|
||||
|
||||
`dockerd --debug`
|
||||
`dockerd {{[-D|--debug]}}`
|
||||
|
||||
- Run and set a specific log level:
|
||||
|
||||
`dockerd --log-level {{debug|info|warn|error|fatal}}`
|
||||
`dockerd {{[-l|--log-level]}} {{debug|info|warn|error|fatal}}`
|
||||
|
||||
@@ -28,6 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`gamescope {{[-e|--steam]}} -- /usr/bin/steam -tenfoot`
|
||||
|
||||
- Specify which display to prefer:
|
||||
|
||||
`gamescope {{[-O|--prefer-output]}} {{HDMI-A-1,DP-3,...}} -- {{program}}`
|
||||
|
||||
- Toggle fullscreen:
|
||||
|
||||
`<Super f>`
|
||||
|
||||
@@ -31,12 +31,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Make an interface up/down:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{interface_name}} {{up|down}}`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{up|down}}`
|
||||
|
||||
- Add/Delete an IP address to an interface:
|
||||
|
||||
`sudo ip {{[a|address]}} {{add|delete}} {{ip}}/{{mask}} dev {{interface_name}}`
|
||||
`sudo ip {{[a|address]}} {{add|delete}} {{ip}}/{{mask}} dev {{ethX}}`
|
||||
|
||||
- Add a default route:
|
||||
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} default via {{ip}} dev {{interface_name}}`
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} default via {{ip}} dev {{ethX}}`
|
||||
|
||||
@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display information about a specific network interface:
|
||||
|
||||
`ip {{[a|address]}} {{[s|show]}} {{eth0}}`
|
||||
`ip {{[a|address]}} {{[s|show]}} {{ethX}}`
|
||||
|
||||
- Add an IP address to a network interface:
|
||||
|
||||
`sudo ip {{[a|address]}} {{[a|add]}} {{ip_address}} dev {{eth0}}`
|
||||
`sudo ip {{[a|address]}} {{[a|add]}} {{ip_address}} dev {{ethX}}`
|
||||
|
||||
- Remove an IP address from a network interface:
|
||||
|
||||
`sudo ip {{[a|address]}} {{[d|delete]}} {{ip_address}} dev {{eth0}}`
|
||||
`sudo ip {{[a|address]}} {{[d|delete]}} {{ip_address}} dev {{ethX}}`
|
||||
|
||||
- Delete all IP addresses in a given scope from a network interface:
|
||||
|
||||
`sudo ip {{[a|address]}} {{[f|flush]}} {{eth0}} scope {{global|host|link}}`
|
||||
`sudo ip {{[a|address]}} {{[f|flush]}} {{ethX}} scope {{global|host|link}}`
|
||||
|
||||
@@ -14,24 +14,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show information about a specific network interface:
|
||||
|
||||
`ip {{[l|link]}} {{[sh|show]}} {{ethN}}`
|
||||
`ip {{[l|link]}} {{[sh|show]}} {{ethX}}`
|
||||
|
||||
- Bring a network interface up or down:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{up|down}}`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{up|down}}`
|
||||
|
||||
- Give a meaningful name to a network interface:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{[al|alias]}} "{{LAN Interface}}"`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{[al|alias]}} "{{LAN Interface}}"`
|
||||
|
||||
- Change the MAC address of a network interface:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{[a|address]}} {{ff:ff:ff:ff:ff:ff}}`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{[a|address]}} {{ff:ff:ff:ff:ff:ff}}`
|
||||
|
||||
- Change the MTU size for a network interface to use jumbo frames:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} mtu {{9000}}`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} mtu {{9000}}`
|
||||
|
||||
- Set the promisc mode status of a device:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} promisc {{on|off}}`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} promisc {{on|off}}`
|
||||
|
||||
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List device specific addresses:
|
||||
|
||||
`ip {{[m|maddress]}} {{[s|show]}} dev {{eth0}}`
|
||||
`ip {{[m|maddress]}} {{[s|show]}} dev {{ethX}}`
|
||||
|
||||
- Join a multicast group statically:
|
||||
|
||||
`sudo ip {{[m|maddress]}} {{[a|add]}} {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
`sudo ip {{[m|maddress]}} {{[a|add]}} {{33:33:00:00:00:02}} dev {{ethX}}`
|
||||
|
||||
- Leave a static multicast group:
|
||||
|
||||
`sudo ip {{[m|maddress]}} {{[d|delete]}} {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
`sudo ip {{[m|maddress]}} {{[d|delete]}} {{33:33:00:00:00:02}} dev {{ethX}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -12,18 +12,18 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ip {{[n|neighbour]}}`
|
||||
|
||||
- Remove entries in the neighbour table on device `eth0`:
|
||||
- Remove entries in the neighbour table on device `ethX`:
|
||||
|
||||
`sudo ip {{[n|neighbour]}} {{[f|flush]}} dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} {{[f|flush]}} dev {{ethX}}`
|
||||
|
||||
- Perform a neighbour lookup and return a neighbour entry:
|
||||
|
||||
`ip {{[n|neighbour]}} {{[g|get]}} {{lookup_ip}} dev {{eth0}}`
|
||||
`ip {{[n|neighbour]}} {{[g|get]}} {{lookup_ip}} dev {{ethX}}`
|
||||
|
||||
- Add or delete an ARP entry for the neighbour IP address to `eth0`:
|
||||
- Add or delete an ARP entry for the neighbour IP address to `ethX`:
|
||||
|
||||
`sudo ip {{[n|neighbour]}} {{add|delete}} {{ip_address}} lladdr {{mac_address}} dev {{eth0}} nud reachable`
|
||||
`sudo ip {{[n|neighbour]}} {{add|delete}} {{ip_address}} lladdr {{mac_address}} dev {{ethX}} nud reachable`
|
||||
|
||||
- Change or replace an ARP entry for the neighbour IP address to `eth0`:
|
||||
- Change or replace an ARP entry for the neighbour IP address to `ethX`:
|
||||
|
||||
`sudo ip {{[n|neighbour]}} {{change|replace}} {{ip_address}} lladdr {{new_mac_address}} dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} {{change|replace}} {{ip_address}} lladdr {{new_mac_address}} dev {{ethX}}`
|
||||
|
||||
@@ -16,21 +16,21 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} default via {{gateway_ip}}`
|
||||
|
||||
- Add a default route using `eth0`:
|
||||
- Add a default route using `ethX`:
|
||||
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} default dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} default dev {{ethX}}`
|
||||
|
||||
- Add a static route:
|
||||
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} via {{gateway_ip}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} via {{gateway_ip}} dev {{ethX}}`
|
||||
|
||||
- Delete a static route:
|
||||
|
||||
`sudo ip {{[r|route]}} {{[d|delete]}} {{destination_ip}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{[d|delete]}} {{destination_ip}} dev {{ethX}}`
|
||||
|
||||
- Change or replace a static route:
|
||||
|
||||
`sudo ip {{[r|route]}} {{change|replace}} {{destination_ip}} via {{gateway_ip}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{change|replace}} {{destination_ip}} via {{gateway_ip}} dev {{ethX}}`
|
||||
|
||||
- Show which route will be used by the kernel to reach an IP address:
|
||||
|
||||
|
||||
@@ -12,14 +12,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} default via {{gateway_ip}}`
|
||||
|
||||
- Add a default route using `eth0`:
|
||||
- Add a default route using `ethX`:
|
||||
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} default dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} default dev {{ethX}}`
|
||||
|
||||
- Add a static route:
|
||||
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} via {{gateway_ip}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} via {{gateway_ip}} dev {{ethX}}`
|
||||
|
||||
- Add a route to a specific routing table:
|
||||
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} dev {{eth0}} {{[t|table]}} {{ip}}`
|
||||
`sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} dev {{ethX}} {{[t|table]}} {{ip}}`
|
||||
|
||||
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print route to a destination for packets arriving on a specific interface:
|
||||
|
||||
`ip {{[r|route]}} {{[g|get]}} {{destination}} iif {{eth0}}`
|
||||
`ip {{[r|route]}} {{[g|get]}} {{destination}} iif {{ethX}}`
|
||||
|
||||
- Print route to a destination, forcing output through a specific interface:
|
||||
|
||||
`ip {{[r|route]}} {{[g|get]}} {{destination}} oif {{eth1}}`
|
||||
`ip {{[r|route]}} {{[g|get]}} {{destination}} oif {{ethX}}`
|
||||
|
||||
- Print route to a destination with a specified Type of Service (ToS):
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List routes from a given device only:
|
||||
|
||||
`ip {{[r|route]}} {{[l|list]}} dev {{eth0}}`
|
||||
`ip {{[r|route]}} {{[l|list]}} dev {{ethX}}`
|
||||
|
||||
- List routes within a given scope:
|
||||
|
||||
|
||||
@@ -15,16 +15,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display all information about dependencies:
|
||||
|
||||
`ldd --verbose {{path/to/binary}}`
|
||||
`ldd {{[-v|--verbose]}} {{path/to/binary}}`
|
||||
|
||||
- Display unused direct dependencies:
|
||||
|
||||
`ldd --unused {{path/to/binary}}`
|
||||
`ldd {{[-u|--unused]}} {{path/to/binary}}`
|
||||
|
||||
- Report missing data objects and perform data relocations:
|
||||
|
||||
`ldd --data-relocs {{path/to/binary}}`
|
||||
`ldd {{[-d|--data-relocs]}} {{path/to/binary}}`
|
||||
|
||||
- Report missing data objects and functions, and perform relocations for both:
|
||||
|
||||
`ldd --function-relocs {{path/to/binary}}`
|
||||
`ldd {{[-r|--function-relocs]}} {{path/to/binary}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Read from `stdin`:
|
||||
|
||||
`{{command}} | nl -`
|
||||
`{{command}} | nl`
|
||||
|
||||
- Number [a]ll body lines including blank lines or do [n]ot number body lines:
|
||||
|
||||
|
||||
@@ -12,18 +12,18 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sfill {{/path/to/mounted_disk_directory}}`
|
||||
|
||||
- Overwrite free space and inodes of a disk with 6 writes (fast but less secure) and show status:
|
||||
- Overwrite free space and inodes of a disk with 6 writes (fast but [l]ess secure) and show status ([v]erbose):
|
||||
|
||||
`sfill -l -v {{/path/to/mounted_disk_directory}}`
|
||||
|
||||
- Overwrite free space and inodes of a disk with 1 write (very fast but insecure) and show status:
|
||||
- Overwrite free space and inodes of a disk with 1 write (very fast but [l]ess secure [v]erbose) and show status:
|
||||
|
||||
`sfill -ll -v {{/path/to/mounted_disk_directory}}`
|
||||
|
||||
- Overwrite only free space of a disk:
|
||||
- Overwrite only free space of a d[I]sk:
|
||||
|
||||
`sfill -I {{/path/to/mounted_disk_directory}}`
|
||||
|
||||
- Overwrite only free inodes of a disk:
|
||||
- Overwrite only free [i]nodes of a disk:
|
||||
|
||||
`sfill -i {{/path/to/mounted_disk_directory}}`
|
||||
|
||||
Reference in New Issue
Block a user