mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-25 04:52:24 +00:00
Update cheatsheets
This commit is contained in:
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo aa-decode {{logfile}}`
|
||||
|
||||
- Decode logs from standard input (e.g., redirected file):
|
||||
- Decode logs from `stdin` (e.g., redirected file):
|
||||
|
||||
`sudo aa-decode - < {{logfile}}`
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`dnf reposync --repoid {{repo_name}} {{[-n|--newest-only]}}`
|
||||
|
||||
- Just print URLs of what would be downloaded, don’t download:
|
||||
- Just print URLs of what would be downloaded, don't download:
|
||||
|
||||
`dnf reposync --repoid {{repo_name}} {{[-u|--urls]}}`
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Load a ZFS encryption key from a file:
|
||||
|
||||
`grub-mount {{[-K|--zfs-key]}} {{/path/to/zfs.key}} {{/dev/sdX}} {{/mnt}}`
|
||||
`grub-mount {{[-K|--zfs-key]}} /{{path/to/zfs.key}} {{/dev/sdX}} {{/mnt}}`
|
||||
|
||||
- Show debugging output for a matching category:
|
||||
|
||||
|
||||
41
tldr/linux/ip-stats
Normal file
41
tldr/linux/ip-stats
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ip stats
|
||||
|
||||
> Manage and show interface statistics.
|
||||
> More information: <https://manned.org/ip-stats>.
|
||||
|
||||
- Show all interface statistics across all network devices:
|
||||
|
||||
`ip {{[st|stats]}}`
|
||||
|
||||
- Show statistics for a specific network interface:
|
||||
|
||||
`ip {{[st|stats]}} show dev {{network_interface}}`
|
||||
|
||||
- Show link-layer statistics (same as `ip -statistics link show`):
|
||||
|
||||
`ip {{[st|stats]}} show group link`
|
||||
|
||||
- Show hardware offload statistics for all devices:
|
||||
|
||||
`ip {{[st|stats]}} show group offload`
|
||||
|
||||
- Show offload statistics for a specific interface:
|
||||
|
||||
`ip {{[st|stats]}} show dev {{network_interface}} group offload`
|
||||
|
||||
- Show a specific offload subgroup:
|
||||
|
||||
`ip {{[st|stats]}} show dev {{network_interface}} group offload subgroup {{l3_stats|cpu_hit|hw_stats_info}}`
|
||||
|
||||
- Show address-family specific statistics (e.g. MPLS):
|
||||
|
||||
`ip {{[st|stats]}} show group afstats subgroup {{mpls}}`
|
||||
|
||||
- Enable Layer 3 hardware statistics collection on a device:
|
||||
|
||||
`ip {{[st|stats]}} set dev {{network_interface}} l3_stats on`
|
||||
41
tldr/linux/oma
Normal file
41
tldr/linux/oma
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# oma
|
||||
|
||||
> A package management frontend for dpkg-based Linux distributions.
|
||||
> More information: <https://github.com/AOSC-Dev/oma#usage>.
|
||||
|
||||
- Enter the interactive package management interface:
|
||||
|
||||
`sudo oma`
|
||||
|
||||
- Install a package:
|
||||
|
||||
`sudo oma install {{package_name}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`sudo oma remove {{package_name}}`
|
||||
|
||||
- Search for a package:
|
||||
|
||||
`oma search {{keyword}}`
|
||||
|
||||
- Show detailed information for a package:
|
||||
|
||||
`oma show`
|
||||
|
||||
- Upgrade all installed packages to their latest versions:
|
||||
|
||||
`sudo oma upgrade`
|
||||
|
||||
- Update the list of available packages and versions (done automatically before `oma install` and `oma upgrade`):
|
||||
|
||||
`sudo oma refresh`
|
||||
|
||||
- Display help:
|
||||
|
||||
`oma help`
|
||||
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`patool list {{path/to/archive}}`
|
||||
|
||||
- Compare the contents of two archives and display the differences in the standard output:
|
||||
- Compare the contents of two archives and display the differences in `stdout`:
|
||||
|
||||
`patool diff {{path/to/archive1}} {{path/to/archive2}}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user