mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:22:09 +02:00
linux/*: add option placeholders (#16192)
* batch1 * batch2 * batch3 * batch4 * Update matchpathcon.md * Update pages/linux/arecord.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Update pages/linux/arecord.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Update pages/linux/arecord.md Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
ebfa967382
commit
ae436c1b00
147 changed files with 428 additions and 428 deletions
|
@ -5,12 +5,12 @@
|
|||
|
||||
- Link a specific object file with no dependencies into an executable:
|
||||
|
||||
`ld {{path/to/file.o}} --output {{path/to/output_executable}}`
|
||||
`ld {{path/to/file.o}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Link two object files together:
|
||||
|
||||
`ld {{path/to/file1.o}} {{path/to/file2.o}} --output {{path/to/output_executable}}`
|
||||
`ld {{path/to/file1.o}} {{path/to/file2.o}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Dynamically link an x86_64 program to glibc (file paths change depending on the system):
|
||||
|
||||
`ld --output {{path/to/output_executable}} --dynamic-linker /lib/ld-linux-x86-64.so.2 /lib/crt1.o /lib/crti.o -lc {{path/to/file.o}} /lib/crtn.o`
|
||||
`ld {{[-o|--output]}} {{path/to/output_executable}} {{[-I|--dynamic-linker]}} /lib/ld-linux-x86-64.so.2 /lib/crt1.o /lib/crti.o -lc {{path/to/file.o}} /lib/crtn.o`
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
- List global (extern) functions in a file (prefixed with T):
|
||||
|
||||
`nm -g {{path/to/file.o}}`
|
||||
`nm {{[-g|--extern-only]}} {{path/to/file.o}}`
|
||||
|
||||
- List only undefined symbols in a file:
|
||||
|
||||
`nm -u {{path/to/file.o}}`
|
||||
`nm {{[-u|--undefined-only]}} {{path/to/file.o}}`
|
||||
|
||||
- List all symbols, even debugging symbols:
|
||||
|
||||
`nm -a {{path/to/file.o}}`
|
||||
`nm {{[-a|--debug-syms]}} {{path/to/file.o}}`
|
||||
|
||||
- Demangle C++ symbols (make them readable):
|
||||
|
||||
`nm --demangle {{path/to/file.o}}`
|
||||
`nm {{[-C|--demangle]}} {{path/to/file.o}}`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# acpi
|
||||
|
||||
> Shows battery status or thermal information.
|
||||
> More information: <https://sourceforge.net/projects/acpiclient/files/acpiclient/>.
|
||||
> More information: <https://manned.org/acpi>.
|
||||
|
||||
- Show battery information:
|
||||
|
||||
|
@ -9,20 +9,20 @@
|
|||
|
||||
- Show thermal information:
|
||||
|
||||
`acpi -t`
|
||||
`acpi {{[-t|--thermal]}}`
|
||||
|
||||
- Show cooling device information:
|
||||
|
||||
`acpi -c`
|
||||
`acpi {{[-c|--cooling]}}`
|
||||
|
||||
- Show thermal information in Fahrenheit:
|
||||
|
||||
`acpi -tf`
|
||||
`acpi {{[-tf|--thermal --fahrenheit]}}`
|
||||
|
||||
- Show all information:
|
||||
|
||||
`acpi -V`
|
||||
`acpi {{[-V|--everything]}}`
|
||||
|
||||
- Extract information from `/proc` instead of `/sys`:
|
||||
|
||||
`acpi -p`
|
||||
`acpi {{[-p|--proc]}}`
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
- Add a remote key to the trusted keystore:
|
||||
|
||||
`wget -qO - {{https://host.tld/filename.key}} | apt-key add -`
|
||||
`wget {{[-qO|--quiet --output-document]}} - {{https://host.tld/filename.key}} | apt-key add -`
|
||||
|
||||
- Add a key from keyserver with only key ID:
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
`sudo apt update`
|
||||
|
||||
- Search for a given package (use `apt search -n package` to search within package name only):
|
||||
- Search for a given package (use `apt search --name-only package` to search within package name only):
|
||||
|
||||
`apt search {{package}}`
|
||||
|
||||
|
@ -35,4 +35,4 @@
|
|||
|
||||
- List installed packages:
|
||||
|
||||
`apt list --installed`
|
||||
`apt list {{[-i|--installed]}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Record a snippet in "CD" quality (finish with `<Ctrl c>` when done):
|
||||
|
||||
`arecord -vv --format=cd {{path/to/file.wav}}`
|
||||
`arecord {{[-vv|--verbose --verbose]}} {{[-f|--format]}} cd {{path/to/file.wav}}`
|
||||
|
||||
- Record a snippet in "CD" quality, with a fixed duration of 10 seconds:
|
||||
|
||||
`arecord -vv --format=cd --duration={{10}} {{path/to/file.wav}}`
|
||||
`arecord {{[-vv|--verbose --verbose]}} {{[-f|--format]}} cd {{[-d|--duration]}} {{10}} {{path/to/file.wav}}`
|
||||
|
||||
- Record a snippet and save it as an MP3 (finish with `<Ctrl c>` when done):
|
||||
|
||||
`arecord -vv --format=cd --file-type raw | lame -r - {{path/to/file.mp3}}`
|
||||
`arecord {{[-vv|--verbose --verbose]}} {{[-f|--format]}} cd {{[-t|--file-type]}} raw | lame -r - {{path/to/file.mp3}}`
|
||||
|
||||
- List all sound cards and digital audio devices:
|
||||
|
||||
`arecord --list-devices`
|
||||
`arecord {{[-l|--list-devices]}}`
|
||||
|
||||
- Allow interactive interface (e.g. use `<Space>` or `<Enter>` to play or pause):
|
||||
|
||||
`arecord --interactive`
|
||||
`arecord {{[-i|--interactive]}}`
|
||||
|
||||
- Test your microphone by recording a 5 second sample and playing it back:
|
||||
|
||||
`arecord -d 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav`
|
||||
`arecord {{[-d|--duration]}} 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav`
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
- Generate a local policy to allow access for all denied services:
|
||||
|
||||
`sudo audit2allow --all -M {{local_policy_name}}`
|
||||
`sudo audit2allow {{[-a|--all]}} -M {{local_policy_name}}`
|
||||
|
||||
- Generate a local policy module to grant access to a specific process/service/command from the audit logs:
|
||||
|
||||
|
@ -18,4 +18,4 @@
|
|||
|
||||
- Install a local policy module:
|
||||
|
||||
`sudo semodule -i {{local_policy_name}}.pp`
|
||||
`sudo semodule {{[-i|--install]}} {{local_policy_name}}.pp`
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
|
||||
- Play each new frequency and duration as a distinct beep:
|
||||
|
||||
`beep -f {{frequency}} -l {{duration}} -n -f {{frequency}} -l {{duration}}`
|
||||
`beep -f {{frequency}} -l {{duration}} {{[-n|--new]}} -f {{frequency}} -l {{duration}}`
|
||||
|
||||
- Play the C major scale:
|
||||
|
||||
`beep -f {{262}} -n -f {{294}} -n -f {{330}} -n -f {{349}} -n -f {{392}} -n -f {{440}} -n -f {{494}} -n -f {{523}}`
|
||||
`beep -f {{262}} {{[-n|--new]}} -f {{294}} {{[-n|--new]}} -f {{330}} {{[-n|--new]}} -f {{349}} {{[-n|--new]}} -f {{392}} {{[-n|--new]}} -f {{440}} {{[-n|--new]}} -f {{494}} {{[-n|--new]}} -f {{523}}`
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
- Lock the screen:
|
||||
|
||||
`betterlockscreen --lock`
|
||||
`betterlockscreen {{[-l|--lock]}}`
|
||||
|
||||
- Change the lock screen background:
|
||||
|
||||
`betterlockscreen -u {{path/to/image.png}}`
|
||||
`betterlockscreen {{[-u|--update]}} {{path/to/image.png}}`
|
||||
|
||||
- Lock the screen, showing some custom text:
|
||||
|
||||
`betterlockscreen -l pixel -t "{{custom lock screen text}}"`
|
||||
`betterlockscreen {{[-l|--lock]}} pixel --text "{{custom lock screen text}}"`
|
||||
|
||||
- Lock the screen, with a custom monitor off timeout in seconds:
|
||||
|
||||
`betterlockscreen --off {{5}} -l`
|
||||
`betterlockscreen --off {{5}} {{[-l|--lock]}}`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Set display brightness to 50%:
|
||||
|
||||
`blight set {{50}} -r`
|
||||
`blight set {{50}} {{[-r|--relative]}}`
|
||||
|
||||
- Show current display brightness:
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
|||
|
||||
- Increase display brightness in %:
|
||||
|
||||
`blight inc {{number}} -r`
|
||||
`blight inc {{number}} {{[-r|--relative]}}`
|
||||
|
||||
- Decrease display brightness with internal units:
|
||||
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
- Display the list of all the interfaces:
|
||||
|
||||
`bmon -a`
|
||||
`bmon {{[-a|--show-all]}}`
|
||||
|
||||
- Display data transfer rates in bits per second:
|
||||
|
||||
`bmon -b`
|
||||
`bmon {{[-b|--use-bit]}}`
|
||||
|
||||
- Specify the policy to define which network interface(s) is/are displayed:
|
||||
|
||||
`bmon -p {{interface_1,interface_2,interface_3}}`
|
||||
`bmon {{[-p|--policy]}} {{interface_1,interface_2,interface_3}}`
|
||||
|
||||
- Specify the interval (in seconds) in which rate per counter is calculated:
|
||||
|
||||
`bmon -R {{2.0}}`
|
||||
`bmon {{[-R|--rate-interval]}} {{2.0}}`
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
|
||||
- Defragment a single file on a btrfs filesystem (avoid while a deduplication agent is running):
|
||||
|
||||
`sudo btrfs filesystem defragment -v {{path/to/file}}`
|
||||
`sudo btrfs filesystem defragment {{[-v|--verbose]}} {{path/to/file}}`
|
||||
|
||||
- Defragment a directory recursively (does not cross subvolume boundaries):
|
||||
|
||||
`sudo btrfs filesystem defragment -v -r {{path/to/directory}}`
|
||||
`sudo btrfs filesystem defragment {{[-v|--verbose]}} -r {{path/to/directory}}`
|
||||
|
||||
- Force syncing unwritten data blocks to disk(s):
|
||||
|
||||
|
@ -25,4 +25,4 @@
|
|||
|
||||
- Summarize disk usage for the files in a directory recursively:
|
||||
|
||||
`sudo btrfs filesystem du --summarize {{path/to/directory}}`
|
||||
`sudo btrfs filesystem du {{[-s|--summarize]}} {{path/to/directory}}`
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- List (don't write) files to be restored from a btrfs filesystem:
|
||||
|
||||
`sudo btrfs restore --dry-run {{path/to/btrfs_device}} {{path/to/target_directory}}`
|
||||
`sudo btrfs restore {{[-D|--dry-run]}} {{path/to/btrfs_device}} {{path/to/target_directory}}`
|
||||
|
||||
- Restore files matching a given regex ([c]ase-insensitive) files to be restored from a btrfs filesystem (all parent directories of target file(s) must match as well):
|
||||
|
||||
|
@ -21,4 +21,4 @@
|
|||
|
||||
- Restore files from a btrfs filesystem (along with metadata, extended attributes, and Symlinks), overwriting files in the target:
|
||||
|
||||
`sudo btrfs restore --metadata --xattr --symlinks --overwrite {{path/to/btrfs_device}} {{path/to/target_directory}}`
|
||||
`sudo btrfs restore {{[-m|--metadata]}} {{[-x|--xattr]}} {{[-S|--symlinks]}} {{[-o|--overwrite]}} {{path/to/btrfs_device}} {{path/to/target_directory}}`
|
||||
|
|
|
@ -26,4 +26,4 @@
|
|||
|
||||
- Start a scrub in quiet mode (does not print errors or statistics):
|
||||
|
||||
`sudo btrfs scrub start -q {{path/to/btrfs_mount}}`
|
||||
`sudo btrfs scrub start {{[-q|--quiet]}} {{path/to/btrfs_mount}}`
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
- Change the font:
|
||||
|
||||
`cacaclock -f {{font}}`
|
||||
`cacaclock {{[-f|--font]}} {{font}}`
|
||||
|
||||
- Change the format using an `strftime` format specification:
|
||||
|
||||
`cacaclock -d {{strftime_arguments}}`
|
||||
`cacaclock {{[-d|--dateformat]}} {{strftime_arguments}}`
|
||||
|
|
|
@ -9,20 +9,20 @@
|
|||
|
||||
- Create a new default config:
|
||||
|
||||
`conky -C > ~/.conkyrc`
|
||||
`conky {{[-C|--print-config]}} > ~/.conkyrc`
|
||||
|
||||
- Launch Conky with a given configuration file:
|
||||
|
||||
`conky -c {{path/to/config}}`
|
||||
`conky {{[-c|--config]}} {{path/to/config}}`
|
||||
|
||||
- Start in the background (daemonize):
|
||||
|
||||
`conky -d`
|
||||
`conky {{[-d|--daemonize]}}`
|
||||
|
||||
- Align Conky on the desktop:
|
||||
|
||||
`conky -a {{top|bottom|middle}}_{{left|right|middle}}`
|
||||
`conky {{[-a|--alignment]}} {{top|bottom|middle}}_{{left|right|middle}}`
|
||||
|
||||
- Pause for 5 seconds at startup before launching:
|
||||
|
||||
`conky -p {{5}}`
|
||||
`conky {{[-p|--pause]}} {{5}}`
|
||||
|
|
|
@ -6,20 +6,20 @@
|
|||
|
||||
- List all currently tracked connections:
|
||||
|
||||
`conntrack --dump`
|
||||
`conntrack {{[-L|--dump]}}`
|
||||
|
||||
- Display a real-time event log of connection changes:
|
||||
|
||||
`conntrack --event`
|
||||
`conntrack {{[-E|--event]}}`
|
||||
|
||||
- Display a real-time event log of connection changes and associated timestamps:
|
||||
|
||||
`conntrack --event -o timestamp`
|
||||
`conntrack {{[-E|--event]}} {{[-o|--output]}} timestamp`
|
||||
|
||||
- Display a real-time event log of connection changes for a specific IP address:
|
||||
|
||||
`conntrack --event --orig-src {{ip_address}}`
|
||||
`conntrack {{[-E|--event]}} {{[-s|--orig-src]}} {{ip_address}}`
|
||||
|
||||
- Delete all flows for a specific source IP address:
|
||||
|
||||
`conntrack --delete --orig-src {{ip_address}}`
|
||||
`conntrack {{[-D|--delete]}} {{[-s|--orig-src]}} {{ip_address}}`
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
|
||||
- Start calculating for CPU 1 only:
|
||||
|
||||
`sudo cpufreq-aperf -c {{1}}`
|
||||
`sudo cpufreq-aperf {{[-c|--cpu]}} {{1}}`
|
||||
|
||||
- Start calculating with a 3 second refresh interval for all CPU cores:
|
||||
|
||||
`sudo cpufreq-aperf -i {{3}}`
|
||||
`sudo cpufreq-aperf {{[-i|--interval]}} {{3}}`
|
||||
|
||||
- Calculate only once:
|
||||
|
||||
`sudo cpufreq-aperf -o`
|
||||
`sudo cpufreq-aperf {{[-o|--once]}}`
|
||||
|
|
|
@ -9,24 +9,24 @@
|
|||
|
||||
- Show CPU frequency information for the specified CPU:
|
||||
|
||||
`cpufreq-info -c {{cpu_number}}`
|
||||
`cpufreq-info {{[-c|--cpu]}} {{cpu_number}}`
|
||||
|
||||
- Show the allowed minimum and maximum CPU frequency:
|
||||
|
||||
`cpufreq-info -l`
|
||||
`cpufreq-info {{[-l|--hwlimits]}}`
|
||||
|
||||
- Show the current minimum and maximum CPU frequency and policy in table format:
|
||||
|
||||
`cpufreq-info -o`
|
||||
`cpufreq-info {{[-o|--proc]}}`
|
||||
|
||||
- Show available CPU frequency policies:
|
||||
|
||||
`cpufreq-info -g`
|
||||
`cpufreq-info {{[-g|--governors]}}`
|
||||
|
||||
- Show current CPU work frequency in a human-readable format, according to the cpufreq kernel module:
|
||||
|
||||
`cpufreq-info -f -m`
|
||||
`cpufreq-info {{[-f|--freq]}} {{[-m|--human]}}`
|
||||
|
||||
- Show current CPU work frequency in a human-readable format, by reading it from hardware (only available to root):
|
||||
|
||||
`sudo cpufreq-info -w -m`
|
||||
`sudo cpufreq-info {{[-w|--hwfreq]}} {{[-m|--human]}}`
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
|
||||
- Set the CPU frequency policy of CPU 1 to "userspace":
|
||||
|
||||
`sudo cpufreq-set -c {{1}} -g {{userspace}}`
|
||||
`sudo cpufreq-set {{[-c|--cpu]}} {{1}} {{[-g|--governor]}} {{userspace}}`
|
||||
|
||||
- Set the current minimum CPU frequency of CPU 1:
|
||||
|
||||
`sudo cpufreq-set -c {{1}} --min {{min_frequency}}`
|
||||
`sudo cpufreq-set {{[-c|--cpu]}} {{1}} {{[-d|--min]}} {{min_frequency}}`
|
||||
|
||||
- Set the current maximum CPU frequency of CPU 1:
|
||||
|
||||
`sudo cpufreq-set -c {{1}} --max {{max_frequency}}`
|
||||
`sudo cpufreq-set {{[-c|--cpu]}} {{1}} {{[-u|--max]}} {{max_frequency}}`
|
||||
|
||||
- Set the current work frequency of CPU 1:
|
||||
|
||||
`sudo cpufreq-set -c {{1}} -f {{work_frequency}}`
|
||||
`sudo cpufreq-set {{[-c|--cpu]}} {{1}} {{[-f|--freq]}} {{work_frequency}}`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# cpuid
|
||||
|
||||
> Display detailed information about all CPUs.
|
||||
> More information: <https://etallen.com/cpuid.html>.
|
||||
> More information: <https://manned.org/man/cpuid.1>.
|
||||
|
||||
- Display information for all CPUs:
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
|||
|
||||
- Display information only for the current CPU:
|
||||
|
||||
`cpuid -1`
|
||||
`cpuid {{[-1|--one-cpu]}}`
|
||||
|
||||
- Display raw hex information with no decoding:
|
||||
|
||||
`cpuid -r`
|
||||
`cpuid {{[-r|--raw]}}`
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
- Initialize a repository, exclude test RPMs and display verbose logs:
|
||||
|
||||
`createrepo -v -x {{test_*.rpm}} {{path/to/directory}}`
|
||||
`createrepo {{[-v|--verbose]}} {{[-x|--excludes]}} {{test_*.rpm}} {{path/to/directory}}`
|
||||
|
||||
- Initialize a repository, using SHA1 as the checksum algorithm, and ignoring symbolic links:
|
||||
|
||||
`createrepo -S -s {{sha1}} {{path/to/directory}}`
|
||||
`createrepo {{[-S|--skip-symlinks]}} {{[-s|--checksum]}} {{sha1}} {{path/to/directory}}`
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
|
||||
- Check the progress of an ongoing `dd` operation (run this command from another shell):
|
||||
|
||||
`kill -USR1 $(pgrep -x dd)`
|
||||
`kill -USR1 $(pgrep {{[-x|--exact]}} dd)`
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
|
||||
- Change the brightness (option 0x10) of display 1 to 50%:
|
||||
|
||||
`ddcutil --display {{1}} setvcp {{10}} {{50}}`
|
||||
`ddcutil {{[-d|--display]}} {{1}} setvcp {{10}} {{50}}`
|
||||
|
||||
- Increase the contrast (option 0x12) of display 1 by 5%:
|
||||
|
||||
`ddcutil -d {{1}} setvcp {{12}} {{+}} {{5}}`
|
||||
`ddcutil {{[-d|--display]}} {{1}} setvcp {{12}} {{+}} {{5}}`
|
||||
|
||||
- Read the settings of display 1:
|
||||
|
||||
`ddcutil -d {{1}} getvcp {{ALL}}`
|
||||
`ddcutil {{[-d|--display]}} {{1}} getvcp {{ALL}}`
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
|
||||
- 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}}`
|
||||
`dget {{[-d|--download-only]}} {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# dirb
|
||||
|
||||
> Scan HTTP-based webservers for directories and files.
|
||||
> More information: <https://dirb.sourceforge.net>.
|
||||
> More information: <https://manned.org/dirb>.
|
||||
|
||||
- Scan a webserver using the default wordlist:
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
- Create a Distrobox container using the Ubuntu image:
|
||||
|
||||
`distrobox-create {{container_name}} --image {{ubuntu:latest}}`
|
||||
`distrobox-create {{container_name}} {{[-i|--image]}} {{ubuntu:latest}}`
|
||||
|
||||
- Clone a Distrobox container:
|
||||
|
||||
`distrobox-create --clone {{container_name}} {{cloned_container_name}}`
|
||||
`distrobox-create {{[-c|--clone]}} {{container_name}} {{cloned_container_name}}`
|
||||
|
|
|
@ -14,4 +14,4 @@
|
|||
|
||||
- Enter a Distrobox container without instantiating a tty:
|
||||
|
||||
`distrobox-enter --name {{container_name}} -- {{uptime -p}}`
|
||||
`distrobox-enter {{[-n|--name]}} {{container_name}} -- {{uptime --pretty}}`
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
|
||||
- Export an app from the container to the host (the desktop entry/icon will show up in your host system's application list):
|
||||
|
||||
`distrobox-export --app {{package}} --extra-flags "--foreground"`
|
||||
`distrobox-export {{[-a|--app]}} {{package}} {{[-ef|--extra-flags]}} "--foreground"`
|
||||
|
||||
- Export a binary from the container to the host:
|
||||
|
||||
`distrobox-export --bin {{path/to/binary}} --export-path {{path/to/binary_on_host}}`
|
||||
`distrobox-export {{[-b|--bin]}} {{path/to/binary}} {{[-ep|--export-path]}} {{path/to/binary_on_host}}`
|
||||
|
||||
- Export a binary from the container to the host (i.e.`$HOME/.local/bin`) :
|
||||
|
||||
`distrobox-export --bin {{path/to/binary}} --export-path {{path/to/export}}`
|
||||
`distrobox-export {{[-b|--bin]}} {{path/to/binary}} {{[-ep|--export-path]}} {{path/to/export}}`
|
||||
|
||||
- Export a service from the container to the host (`--sudo` will run the service as root inside the container):
|
||||
|
||||
`distrobox-export --service {{package}} --extra-flags "--allow-newer-config" --sudo`
|
||||
`distrobox-export --service {{package}} {{[-ef|--extra-flags]}} "--allow-newer-config" {{[-S|--sudo]}}`
|
||||
|
||||
- Unexport/delete an exported application:
|
||||
|
||||
`distrobox-export --app {{package}} --delete`
|
||||
`distrobox-export {{[-a|--app]}} {{package}} {{[-d|--delete]}}`
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
|
||||
- List all Distrobox containers with verbose information:
|
||||
|
||||
`distrobox-list --verbose`
|
||||
`distrobox-list {{[-v|--verbose]}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Remove a Distrobox container forcefully:
|
||||
|
||||
`distrobox-rm {{container_name}} --force`
|
||||
`distrobox-rm {{container_name}} {{[-f|--force]}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Stop a Distrobox container non-interactively (without confirmation):
|
||||
|
||||
`distrobox-stop --name {{container_name}} --yes`
|
||||
`distrobox-stop {{[-n|--name]}} {{container_name}} {{[-Y|--yes]}}`
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Upgrade all containers using the container's native package managers:
|
||||
|
||||
`distrobox-upgrade --all`
|
||||
`distrobox-upgrade {{[-a|--all]}}`
|
||||
|
||||
- Upgrade specific containers via the container's native package manager:
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
`sudo dmesg {{[-l|--level]}} err`
|
||||
|
||||
- Show kernel messages and keep reading new ones, similar to `tail -f` (available in kernels 3.5.0 and newer):
|
||||
- Show kernel messages and keep reading new ones, similar to `tail --follow` (available in kernels 3.5.0 and newer):
|
||||
|
||||
`sudo dmesg {{[-w|--follow]}}`
|
||||
|
||||
|
|
|
@ -10,20 +10,20 @@
|
|||
|
||||
- Show the BIOS version:
|
||||
|
||||
`sudo dmidecode -s bios-version`
|
||||
`sudo dmidecode {{[-s|--string]}} bios-version`
|
||||
|
||||
- Show the system's serial number:
|
||||
|
||||
`sudo dmidecode -s system-serial-number`
|
||||
`sudo dmidecode {{[-s|--string]}} system-serial-number`
|
||||
|
||||
- Show BIOS information:
|
||||
|
||||
`sudo dmidecode -t bios`
|
||||
`sudo dmidecode {{[-t|--type]}} bios`
|
||||
|
||||
- Show CPU information:
|
||||
|
||||
`sudo dmidecode -t processor`
|
||||
`sudo dmidecode {{[-t|--type]}} processor`
|
||||
|
||||
- Show memory information:
|
||||
|
||||
`sudo dmidecode -t memory`
|
||||
`sudo dmidecode {{[-t|--type]}} memory`
|
||||
|
|
|
@ -5,28 +5,28 @@
|
|||
|
||||
- Scan a domain and save the results to an SQLite database:
|
||||
|
||||
`dnsrecon --domain {{example.com}} --db {{path/to/database.sqlite}}`
|
||||
`dnsrecon {{[-d|--domain]}} {{example.com}} --db {{path/to/database.sqlite}}`
|
||||
|
||||
- Scan a domain, specifying the nameserver and performing a zone transfer:
|
||||
|
||||
`dnsrecon --domain {{example.com}} --name_server {{nameserver.example.com}} --type axfr`
|
||||
`dnsrecon {{[-d|--domain]}} {{example.com}} {{[-n|--name_server]}} {{nameserver.example.com}} {{[-t|--type]}} axfr`
|
||||
|
||||
- Scan a domain, using a brute-force attack and a dictionary of subdomains and hostnames:
|
||||
|
||||
`dnsrecon --domain {{example.com}} --dictionary {{path/to/dictionary.txt}} --type brt`
|
||||
`dnsrecon {{[-d|--domain]}} {{example.com}} {{[-D|--dictionary]}} {{path/to/dictionary.txt}} {{[-t|--type]}} brt`
|
||||
|
||||
- Scan a domain, performing a reverse lookup of IP ranges from the SPF record and saving the results to a JSON file:
|
||||
|
||||
`dnsrecon --domain {{example.com}} -s --json`
|
||||
`dnsrecon {{[-d|--domain]}} {{example.com}} -s {{[-j|--json]}}`
|
||||
|
||||
- Scan a domain, performing a Google enumeration and saving the results to a CSV file:
|
||||
|
||||
`dnsrecon --domain {{example.com}} -g --csv`
|
||||
`dnsrecon {{[-d|--domain]}} {{example.com}} -g {{[-c|--csv]}}`
|
||||
|
||||
- Scan a domain, performing DNS cache snooping:
|
||||
|
||||
`dnsrecon --domain {{example.com}} --type snoop --name_server {{nameserver.example.com}} --dictionary {{path/to/dictionary.txt}}`
|
||||
`dnsrecon {{[-d|--domain]}} {{example.com}} {{[-t|--type]}} snoop {{[-n|--name_server]}} {{nameserver.example.com}} {{[-D|--dictionary]}} {{path/to/dictionary.txt}}`
|
||||
|
||||
- Scan a domain, performing zone walking:
|
||||
|
||||
`dnsrecon --domain {{example.com}} --type zonewalk`
|
||||
`dnsrecon {{[-d|--domain]}} {{example.com}} {{[-t|--type]}} zonewalk`
|
||||
|
|
|
@ -7,28 +7,28 @@
|
|||
|
||||
- Install a package:
|
||||
|
||||
`dpkg -i {{path/to/file.deb}}`
|
||||
`dpkg {{[-i|--install]}} {{path/to/file.deb}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`dpkg -r {{package}}`
|
||||
`dpkg {{[-r|--remove]}} {{package}}`
|
||||
|
||||
- List installed packages:
|
||||
|
||||
`dpkg -l {{pattern}}`
|
||||
`dpkg {{[-l|--list]}} {{pattern}}`
|
||||
|
||||
- List a package's contents:
|
||||
|
||||
`dpkg -L {{package}}`
|
||||
`dpkg {{[-L|--listfiles]}} {{package}}`
|
||||
|
||||
- List contents of a local package file:
|
||||
|
||||
`dpkg -c {{path/to/file.deb}}`
|
||||
`dpkg {{[-c|--contents]}} {{path/to/file.deb}}`
|
||||
|
||||
- Find out which package owns a file:
|
||||
|
||||
`dpkg -S {{path/to/file}}`
|
||||
`dpkg {{[-S|--search]}} {{path/to/file}}`
|
||||
|
||||
- Purge an installed or already removed package, including configuration:
|
||||
|
||||
`dpkg -P {{package}}`
|
||||
`dpkg {{[-P|--purge]}} {{package}}`
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
|
||||
- Show a notification with specified urgency:
|
||||
|
||||
`dunstify "{{Title}}" "{{Message}}" -u {{low|normal|critical}}`
|
||||
`dunstify "{{Title}}" "{{Message}}" {{[-u|--urgency]}} {{low|normal|critical}}`
|
||||
|
||||
- Specify a message ID (overwrites any previous messages with the same ID):
|
||||
|
||||
`dunstify "{{Title}}" "{{Message}}" -r {{123}}`
|
||||
`dunstify "{{Title}}" "{{Message}}" {{[-r|--replace]}} {{123}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`dunstify --help`
|
||||
`dunstify {{[-?|--help]}}`
|
||||
|
|
|
@ -6,24 +6,24 @@
|
|||
|
||||
- Edit quota of the current user:
|
||||
|
||||
`edquota --user $(whoami)`
|
||||
`edquota {{[-u|--user]}} $(whoami)`
|
||||
|
||||
- Edit quota of a specific user:
|
||||
|
||||
`sudo edquota --user {{username}}`
|
||||
`sudo edquota {{[-u|--user]}} {{username}}`
|
||||
|
||||
- Edit quota for a group:
|
||||
|
||||
`sudo edquota --group {{group}}`
|
||||
`sudo edquota {{[-g|--group]}} {{group}}`
|
||||
|
||||
- Restrict operations to a given filesystem (by default edquota operates on all filesystems with quotas):
|
||||
|
||||
`sudo edquota --file-system {{filesystem}}`
|
||||
`sudo edquota {{[-f|--file-system]}} {{filesystem}}`
|
||||
|
||||
- Edit the default grace period:
|
||||
|
||||
`sudo edquota -t`
|
||||
`sudo edquota {{[-t|--edit-period]}}`
|
||||
|
||||
- Duplicate a quota to other users:
|
||||
|
||||
`sudo edquota -p {{reference_user}} {{destination_user1}} {{destination_user2}}`
|
||||
`sudo edquota {{[-p|--prototype]}} {{reference_user}} {{destination_user1}} {{destination_user2}}`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Switch between different GPU modes:
|
||||
|
||||
`sudo envycontrol -s {{nvidia|integrated|hybrid}}`
|
||||
`sudo envycontrol {{[-s|--switch]}} {{nvidia|integrated|hybrid}}`
|
||||
|
||||
- Specify your display manager manually:
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
- Check current GPU mode:
|
||||
|
||||
`sudo envycontrol --query`
|
||||
`sudo envycontrol {{[-q|--query]}}`
|
||||
|
||||
- Reset settings:
|
||||
|
||||
|
@ -21,8 +21,8 @@
|
|||
|
||||
- Display help:
|
||||
|
||||
`envycontrol --help`
|
||||
`envycontrol {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`envycontrol --version`
|
||||
`envycontrol {{[-v|--version]}}`
|
||||
|
|
|
@ -9,20 +9,20 @@
|
|||
|
||||
- Display the driver information for an interface:
|
||||
|
||||
`ethtool --driver {{eth0}}`
|
||||
`ethtool {{[-i|--driver]}} {{eth0}}`
|
||||
|
||||
- Display all supported features for an interface:
|
||||
|
||||
`ethtool --show-features {{eth0}}`
|
||||
`ethtool {{[-k|--show-features]}} {{eth0}}`
|
||||
|
||||
- Display the network usage statistics for an interface:
|
||||
|
||||
`ethtool --statistics {{eth0}}`
|
||||
`ethtool {{[-S|--statistics]}} {{eth0}}`
|
||||
|
||||
- Blink one or more LEDs on an interface for 10 seconds:
|
||||
|
||||
`ethtool --identify {{eth0}} {{10}}`
|
||||
`ethtool {{[-p|--identify]}} {{eth0}} {{10}}`
|
||||
|
||||
- Set the link speed, duplex mode, and parameter auto-negotiation for a given interface:
|
||||
|
||||
`ethtool -s {{eth0}} speed {{10|100|1000}} duplex {{half|full}} autoneg {{on|off}}`
|
||||
`ethtool {{[-s|--change]}} {{eth0}} speed {{10|100|1000}} duplex {{half|full}} autoneg {{on|off}}`
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Open a widget:
|
||||
|
||||
`eww -c {{path/to/source_code_directory}} open {{window_name}}`
|
||||
`eww {{[-c|--config]}} {{path/to/source_code_directory}} open {{window_name}}`
|
||||
|
||||
- Close a widget:
|
||||
|
||||
`eww -c {{path/to/source_code_directory}} close {{window_name}}`
|
||||
`eww {{[-c|--config]}} {{path/to/source_code_directory}} close {{window_name}}`
|
||||
|
||||
- Reload the configuration:
|
||||
|
||||
|
|
|
@ -6,20 +6,20 @@
|
|||
|
||||
- List the dependencies of a package:
|
||||
|
||||
`expac -S '%D' {{package}}`
|
||||
`expac {{[-S|--sync]}} '%D' {{package}}`
|
||||
|
||||
- List the optional dependencies of a package:
|
||||
|
||||
`expac -S "%o" {{package}}`
|
||||
`expac {{[-S|--sync]}} "%o" {{package}}`
|
||||
|
||||
- List the download size of packages in MiB:
|
||||
|
||||
`expac -S -H M '%k\t%n' {{package1 package2 ...}}`
|
||||
`expac {{[-S|--sync]}} {{[-H|--humansize]}} M '%k\t%n' {{package1 package2 ...}}`
|
||||
|
||||
- List packages marked for upgrade with their download size:
|
||||
|
||||
`expac -S -H M '%k\t%n' $(pacman -Qqu) | sort -sh`
|
||||
`expac {{[-S|--sync]}} {{[-H|--humansize]}} M '%k\t%n' $(pacman -Qqu) | sort {{[-sh|--sort --human-numeric-sort]}}`
|
||||
|
||||
- List explicitly-installed packages with their optional dependencies:
|
||||
|
||||
`expac -d '\n\n' -l '\n\t' -Q '%n\n\t%O' $(pacman -Qeq)`
|
||||
`expac {{[-d|--delim]}} '\n\n' {{[-l|listdelim]}} '\n\t' {{[-Q|--query]}} '%n\n\t%O' $(pacman -Qeq)`
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
- Run a command keeping the real ownership of files instead of pretending they are owned by root:
|
||||
|
||||
`fakeroot --unknown-is-real -- {{command}} {{command_arguments}}`
|
||||
`fakeroot {{[-u|--unknown-is-real]}} -- {{command}} {{command_arguments}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`fakeroot --help`
|
||||
`fakeroot {{[-h|--help]}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Brute-force a password with a length of 4 to 8 characters, and contains only alphanumeric characters (order matters):
|
||||
|
||||
`fcrackzip --brute-force --length 4-8 --charset aA1 {{archive}}`
|
||||
`fcrackzip {{[-b|--brute-force]}} {{[-l|--length]}} 4-8 {{[-c|--charset]}} aA1 {{archive}}`
|
||||
|
||||
- Brute-force a password in verbose mode with a length of 3 characters that only contains lowercase characters, `$` and `%`:
|
||||
|
||||
`fcrackzip -v --brute-force --length 3 --charset a:$% {{archive}}`
|
||||
`fcrackzip {{[-v|--verbose]}} {{[-b|--brute-force]}} {{[-l|--length]}} 3 {{[-c|--charset]}} a:$% {{archive}}`
|
||||
|
||||
- Brute-force a password that contains only lowercase and special characters:
|
||||
|
||||
`fcrackzip --brute-force --length 4 --charset a! {{archive}}`
|
||||
`fcrackzip {{[-b|--brute-force]}} {{[-l|--length]}} 4 {{[-c|--charset]}} a! {{archive}}`
|
||||
|
||||
- Brute-force a password containing only digits, starting from the password `12345`:
|
||||
|
||||
`fcrackzip --brute-force --length 5 --charset 1 --init-password 12345 {{archive}}`
|
||||
`fcrackzip {{[-b|--brute-force]}} {{[-l|--length]}} 5 {{[-c|--charset]}} 1 {{[-p|--init-password]}} 12345 {{archive}}`
|
||||
|
||||
- Crack a password using a wordlist:
|
||||
|
||||
`fcrackzip --use-unzip --dictionary --init-password {{wordlist}} {{archive}}`
|
||||
`fcrackzip {{[-u|--use-unzip]}} {{[-D|--dictionary]}} {{[-p|--init-password]}} {{wordlist}} {{archive}}`
|
||||
|
||||
- Benchmark cracking performance:
|
||||
|
||||
`fcrackzip --benchmark`
|
||||
`fcrackzip {{[-B|--benchmark]}}`
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
|
||||
- Dry-run - display which renames would occur without performing them:
|
||||
|
||||
`rename -n {{'s/foo/bar/'}} {{*}}`
|
||||
`rename {{[-n|--nono]}} {{'s/foo/bar/'}} {{*}}`
|
||||
|
||||
- Force renaming even if the operation would remove existing destination files:
|
||||
|
||||
`rename -f {{'s/foo/bar/'}} {{*}}`
|
||||
`rename {{[-f|--force]}} {{'s/foo/bar/'}} {{*}}`
|
||||
|
||||
- Convert filenames to lower case (use `-f` in case-insensitive filesystems to prevent "already exists" errors):
|
||||
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
|
||||
- Probe the chip, ensuring the wiring is correct:
|
||||
|
||||
`flashrom --programmer {{programmer}}`
|
||||
`flashrom {{[-p|--programmer]}} {{programmer}}`
|
||||
|
||||
- Read flash and save it to a file:
|
||||
|
||||
`flashrom -p {{programmer}} --read {{path/to/file}}`
|
||||
`flashrom {{[-p|--programmer]}} {{programmer}} {{[-r|--read]}} {{path/to/file}}`
|
||||
|
||||
- Write a file to the flash:
|
||||
|
||||
`flashrom -p {{programmer}} --write {{path/to/file}}`
|
||||
`flashrom {{[-p|--programmer]}} {{programmer}} {{[-w|--write]}} {{path/to/file}}`
|
||||
|
||||
- Verify the flash against a file:
|
||||
|
||||
`flashrom -p {{programmer}} --verify {{path/to/file}}`
|
||||
`flashrom {{[-p|--programmer]}} {{programmer}} {{[-v|--verify]}} {{path/to/file}}`
|
||||
|
||||
- Probe the chip using Raspberry Pi:
|
||||
|
||||
`flashrom -p {{linux_spi:dev=/dev/spidev0.0}}`
|
||||
`flashrom {{[-p|--programmer]}} {{linux_spi:dev=/dev/spidev0.0}}`
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Start an application with a specified Procfile:
|
||||
|
||||
`foreman start -f {{Procfile}}`
|
||||
`foreman start {{[-f|--procfile]}} {{Procfile}}`
|
||||
|
||||
- Start a specific application:
|
||||
|
||||
|
@ -25,4 +25,4 @@
|
|||
|
||||
- Start all processes except the one named "worker":
|
||||
|
||||
`foreman start -m all=1,{{worker}}=0`
|
||||
`foreman start {{[-m|--formation]}} all=1,{{worker}}=0`
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
- Reset apps usage count (default cache directory: `$XDG_CACHE_HOME/fuzzel`):
|
||||
|
||||
`rm -v $HOME/.cache/fuzzel`
|
||||
`rm {{[-v|--verbose]}} $HOME/.cache/fuzzel`
|
||||
|
||||
- Launch `fuzzel` on a specific monitor, see `wlr-randr` or `swaymsg -t get_outputs`:
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
- Initialize the bottle (run once, at start):
|
||||
|
||||
`genie -i`
|
||||
`genie {{[-i|--initialize]}}`
|
||||
|
||||
- Run a login shell inside the bottle:
|
||||
|
||||
`genie -s`
|
||||
`genie {{[-s|--shell]}}`
|
||||
|
||||
- Run a specified command inside the bottle:
|
||||
|
||||
`genie -c {{command}}`
|
||||
`genie {{[-c|--command]}} {{command}}`
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
- Retrieve all extended attributes of a file and display them in a detailed format:
|
||||
|
||||
`getfattr -d {{path/to/file}}`
|
||||
`getfattr {{[-d|--dump]}} {{path/to/file}}`
|
||||
|
||||
- Get a specific attribute of a file:
|
||||
|
||||
`getfattr -n user.{{attribute_name}} {{path/to/file}}`
|
||||
`getfattr {{[-n|--name]}} user.{{attribute_name}} {{path/to/file}}`
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
- Analyze a log from `stdin`:
|
||||
|
||||
`tail -f {{path/to/logfile}} | goaccess -`
|
||||
`tail {{[-f|--follow]}} {{path/to/logfile}} | goaccess -`
|
||||
|
||||
- Analyze a log and write it to an HTML file in real-time:
|
||||
|
||||
`goaccess {{path/to/logfile}} --output {{path/to/file.html}} --real-time-html`
|
||||
`goaccess {{path/to/logfile}} {{[-o|--output]}} {{path/to/file.html}} --real-time-html`
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
- Print report to `stdout`:
|
||||
|
||||
`hardinfo -r`
|
||||
`hardinfo {{[-r|--generate-report]}}`
|
||||
|
||||
- Save report to HTML file:
|
||||
|
||||
`hardinfo -r -f html > hardinfo.html`
|
||||
`hardinfo {{[-r|--generate-report]}} {{[-f|--report-format]}} html > hardinfo.html`
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
|
||||
- Display help:
|
||||
|
||||
`hollywood -h`
|
||||
`hollywood {{[-h|--help]}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Disable all interfaces which are enabled:
|
||||
|
||||
`ifdown -a`
|
||||
`ifdown {{[-a|--all]}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Enable all the interfaces defined with "auto" in `/etc/network/interfaces`:
|
||||
|
||||
`ifup -a`
|
||||
`ifup {{[-a|--all]}}`
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
|
||||
- Convert single images and/or whole directories containing valid image formats:
|
||||
|
||||
`imgp -x {{1366x1000}} {{path/to/directory}} {{path/to/file}}`
|
||||
`imgp {{[-x|--res]}} {{1366x1000}} {{path/to/directory}} {{path/to/file}}`
|
||||
|
||||
- Scale an image by 75% and overwrite the source image to a target resolution:
|
||||
|
||||
`imgp -x {{75}} -w {{path/to/file}}`
|
||||
`imgp {{[-x|--res]}} {{75}} z-w {{path/to/file}}`
|
||||
|
||||
- Rotate an image clockwise by 90 degrees:
|
||||
|
||||
`imgp -o {{90}} {{path/to/file}}`
|
||||
`imgp {{[-o|--rotate]}} {{90}} {{path/to/file}}`
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
- Display CPU statistics:
|
||||
|
||||
`iostat {{[-c|--compact]}}`
|
||||
`iostat -c`
|
||||
|
||||
- Display disk statistics with disk names (including LVM):
|
||||
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
- Load a new kernel:
|
||||
|
||||
`kexec -l {{path/to/kernel}} --initrd={{path/to/initrd}} --command-line={{arguments}}`
|
||||
`kexec {{[-l|--load]}} {{path/to/kernel}} --initrd={{path/to/initrd}} --command-line={{arguments}}`
|
||||
|
||||
- Load a new kernel with current boot parameters:
|
||||
|
||||
`kexec -l {{path/to/kernel}} --initrd={{path/to/initrd}} --reuse-cmdline`
|
||||
`kexec {{[-l|--load]}} {{path/to/kernel}} --initrd={{path/to/initrd}} --reuse-cmdline`
|
||||
|
||||
- Execute a currently loaded kernel:
|
||||
|
||||
`kexec -e`
|
||||
`kexec {{[-e|--exec]}}`
|
||||
|
||||
- Unload current kexec target kernel:
|
||||
|
||||
`kexec -u`
|
||||
`kexec {{[-u|--unload]}}`
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Knock on port using UDP:
|
||||
|
||||
`knock -u {{hostname}} {{portnumber}}`
|
||||
`knock {{[-u|--udp]}} {{hostname}} {{portnumber}}`
|
||||
|
||||
- Force usage of IPv4/IPv6:
|
||||
|
||||
|
@ -17,4 +17,4 @@
|
|||
|
||||
- Display errors and details of connection:
|
||||
|
||||
`knock -v {{hostname}} {{portnumber}}`
|
||||
`knock {{[-v|--verbose]}} {{hostname}} {{portnumber}}`
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
- Start knockd system daemon:
|
||||
|
||||
`knockd -d`
|
||||
`knockd {{[-d|--daemon]}}`
|
||||
|
||||
- Use specified configuration file for knockd:
|
||||
|
||||
`knockd -c {{path/to/file}}.configuration`
|
||||
`knockd {{[-c|--config]}} {{path/to/file}}.configuration`
|
||||
|
|
|
@ -5,28 +5,28 @@
|
|||
|
||||
- Save the current configuration as a profile:
|
||||
|
||||
`konsave --save {{profile_name}}`
|
||||
`konsave {{[-s|--save]}} {{profile_name}}`
|
||||
|
||||
- Apply a profile:
|
||||
|
||||
`konsave --apply {{profile_name}}`
|
||||
`konsave {{[-a|--apply]}} {{profile_name}}`
|
||||
|
||||
- Save the current configuration as a profile, overwriting existing profiles if they exist with the same name:
|
||||
|
||||
`konsave -s {{profile_name}} --force`
|
||||
`konsave {{[-s|--save]}} {{profile_name}} {{[-f|--force]}}`
|
||||
|
||||
- List all profiles:
|
||||
|
||||
`konsave --list`
|
||||
`konsave {{[-l|--list]}}`
|
||||
|
||||
- Remove a profile:
|
||||
|
||||
`konsave --remove {{profile_name}}`
|
||||
`konsave {{[-r|--remove]}} {{profile_name}}`
|
||||
|
||||
- Export a profile as a `.knsv` to the home directory:
|
||||
|
||||
`konsave --export-profile {{profile_name}}`
|
||||
`konsave {{[-e|--export-profile]}} {{profile_name}}`
|
||||
|
||||
- Import a `.knsv` profile:
|
||||
|
||||
`konsave --import-profile {{path/to/profile_name.knsv}}`
|
||||
`konsave {{[-i|--import-profile]}} {{path/to/profile_name.knsv}}`
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
|
||||
- Print the libraries in the cache and check whether a given library is present:
|
||||
|
||||
`ldconfig -p | grep {{library_name}}`
|
||||
`ldconfig {{[-p|--print-cache]}} | grep {{library_name}}`
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
- Print all available information:
|
||||
|
||||
`lsb_release -a`
|
||||
`lsb_release {{[-a|--all]}}`
|
||||
|
||||
- Print a description (usually the full name) of the operating system:
|
||||
|
||||
`lsb_release -d`
|
||||
`lsb_release {{[-d|--description]}}`
|
||||
|
||||
- Print only the operating system name (ID), suppressing the field name:
|
||||
|
||||
`lsb_release -i -s`
|
||||
`lsb_release {{[-is|--id --short]}}`
|
||||
|
||||
- Print the release number and codename of the distribution, suppressing the field names:
|
||||
|
||||
`lsb_release -rcs`
|
||||
`lsb_release {{[-rcs|--release --codename --short]}}`
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
- List open IPv4 or IPv6 sockets:
|
||||
|
||||
`lsfd -i{{4|6}}`
|
||||
`lsfd {{-i4|-i6}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# lsscsi
|
||||
|
||||
> List SCSI devices (or hosts) and their attributes.
|
||||
> More information: <https://manned.org/lspci>.
|
||||
> More information: <https://manned.org/lsscsi>.
|
||||
|
||||
- List all SCSI devices:
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
|||
|
||||
- List all SCSI devices with detailed attributes:
|
||||
|
||||
`lsscsi -L`
|
||||
`lsscsi {{[-L|--list]}}`
|
||||
|
||||
- List all SCSI devices with human-readable disk capacity:
|
||||
|
||||
`lsscsi -s`
|
||||
`lsscsi {{[-s|--size]}}`
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
|
||||
- Write to file instead of terminal:
|
||||
|
||||
`ltrace -o {{file}} {{path/to/program}}`
|
||||
`ltrace {{[-o|--output]}} {{file}} {{path/to/program}}`
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
|
||||
- Create a logical volume of 10 gigabytes in the volume group vg1:
|
||||
|
||||
`lvcreate -L {{10G}} {{vg1}}`
|
||||
`lvcreate {{[-L|--size]}} {{10G}} {{vg1}}`
|
||||
|
||||
- Create a 1500 megabyte linear logical volume named mylv in the volume group vg1:
|
||||
|
||||
`lvcreate -L {{1500}} -n {{mylv}} {{vg1}}`
|
||||
`lvcreate {{[-L|--size]}} {{1500}} {{[-n|--name]}} {{mylv}} {{vg1}}`
|
||||
|
||||
- Create a logical volume called mylv that uses 60% of the total space in volume group vg1:
|
||||
|
||||
`lvcreate -l {{60%VG}} -n {{mylv}} {{vg1}}`
|
||||
`lvcreate {{[-l|--extents]}} {{60%VG}} {{[-n|--name]}} {{mylv}} {{vg1}}`
|
||||
|
||||
- Create a logical volume called mylv that uses all the unallocated space in the volume group vg1:
|
||||
|
||||
`lvcreate -l {{100%FREE}} -n {{mylv}} {{vg1}}`
|
||||
`lvcreate {{[-l|--extents]}} {{100%FREE}} {{[-n|--name]}} {{mylv}} {{vg1}}`
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
- Increase a volume's size to 120 GB:
|
||||
|
||||
`lvextend --size {{120G}} {{logical_volume}}`
|
||||
`lvextend {{[-L|--size]}} {{120G}} {{logical_volume}}`
|
||||
|
||||
- Increase a volume's size by 40 GB as well as the underlying filesystem:
|
||||
|
||||
`lvextend --size +{{40G}} -r {{logical_volume}}`
|
||||
`lvextend {{[-L|--size]}} +{{40G}} {{[-r|--resizefs]}} {{logical_volume}}`
|
||||
|
||||
- Increase a volume's size to 100% of the free physical volume space:
|
||||
|
||||
`lvextend --size +{{100}}%FREE {{logical_volume}}`
|
||||
`lvextend {{[-L|--size]}} +{{100}}%FREE {{logical_volume}}`
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
- Reduce a volume's size to 120 GB:
|
||||
|
||||
`lvreduce --size {{120G}} {{logical_volume}}`
|
||||
`lvreduce {{[-L|--size]}} {{120G}} {{logical_volume}}`
|
||||
|
||||
- Reduce a volume's size by 40 GB as well as the underlying filesystem:
|
||||
|
||||
`lvreduce --size -{{40G}} -r {{logical_volume}}`
|
||||
`lvreduce {{[-L|--size]}} -{{40G}} {{[-r|--resizefs]}} {{logical_volume}}`
|
||||
|
|
|
@ -10,19 +10,19 @@
|
|||
|
||||
- Display all logical volumes:
|
||||
|
||||
`lvs -a`
|
||||
`lvs {{[-a|--all]}}`
|
||||
|
||||
- Change default display to show more details:
|
||||
|
||||
`lvs -v`
|
||||
`lvs {{[-v|--verbose]}}`
|
||||
|
||||
- Display only specific fields:
|
||||
|
||||
`lvs -o {{field_name_1}},{{field_name_2}}`
|
||||
`lvs {{[-o|--options]}} {{field_name_1}},{{field_name_2}}`
|
||||
|
||||
- Append field to default display:
|
||||
|
||||
`lvs -o +{{field_name}}`
|
||||
`lvs {{[-o|--options]}} +{{field_name}}`
|
||||
|
||||
- Suppress heading line:
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Open an LXTerminal window, run a command, and then exit:
|
||||
|
||||
`lxterminal -e "{{command}}"`
|
||||
`lxterminal {{[-e|--command]}} "{{command}}"`
|
||||
|
||||
- Open an LXTerminal window with multiple tabs:
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
- Create a btrfs filesystem on a single device:
|
||||
|
||||
`sudo mkfs.btrfs --metadata single --data single {{/dev/sdX}}`
|
||||
`sudo mkfs.btrfs {{[-m|--metadata]}} single {{[-d|--data]}} single {{/dev/sdX}}`
|
||||
|
||||
- Create a btrfs filesystem on multiple devices with raid1:
|
||||
|
||||
`sudo mkfs.btrfs --metadata raid1 --data raid1 {{/dev/sdX /dev/sdY /dev/sdZ ...}}`
|
||||
`sudo mkfs.btrfs {{[-m|--metadata]}} raid1 {{[-d|--data]}} raid1 {{/dev/sdX /dev/sdY /dev/sdZ ...}}`
|
||||
|
||||
- Set a label for the filesystem:
|
||||
|
||||
`sudo mkfs.btrfs --label "{{label}}" {{/dev/sdX /dev/sdY ...}}`
|
||||
`sudo mkfs.btrfs {{[-L|--label]}} "{{label}}" {{/dev/sdX /dev/sdY ...}}`
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
- Create filesystem with a volume-label:
|
||||
|
||||
`mkfs.ntfs -L {{volume_label}} {{/dev/sdXY}}`
|
||||
`mkfs.ntfs {{[-L|--label]}} {{volume_label}} {{/dev/sdXY}}`
|
||||
|
||||
- Create filesystem with specific UUID:
|
||||
|
||||
`mkfs.ntfs -U {{UUID}} {{/dev/sdXY}}`
|
||||
`mkfs.ntfs {{[-U|--with-uuid]}} {{UUID}} {{/dev/sdXY}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Minimal working example with HF that writes to the current directory and streams the output file:
|
||||
|
||||
`touch test.out; echo "PM7\n#comment\n\nH 0.95506 0.05781 -0.03133\nF 1.89426 0.05781 -0.03133" > test.mop; mopac test.mop & tail -f test.out`
|
||||
`touch test.out; echo "PM7\n#comment\n\nH 0.95506 0.05781 -0.03133\nF 1.89426 0.05781 -0.03133" > test.mop; mopac test.mop & tail {{[-f|--follow]}} test.out`
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
- Listen for input on the specified port and write it to the specified file:
|
||||
|
||||
`ncat -l {{port}} > {{path/to/file}}`
|
||||
`ncat {{[-l|--listen]}} {{port}} > {{path/to/file}}`
|
||||
|
||||
- Accept multiple connections and keep ncat open after they have been closed:
|
||||
|
||||
`ncat -lk {{port}}`
|
||||
`ncat {{[-lk|--listen --keep-open]}} {{port}}`
|
||||
|
||||
- Write output of specified file to the specified host on the specified port:
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
|||
|
||||
- Accept multiple incoming connections on an encrypted channel evading detection of traffic content:
|
||||
|
||||
`ncat --ssl -k -l {{port}}`
|
||||
`ncat --ssl {{[-k|--keep-open]}} {{[-l|--listen]}} {{port}}`
|
||||
|
||||
- Connect to an open `ncat` connection over SSL:
|
||||
|
||||
|
@ -26,4 +26,4 @@
|
|||
|
||||
- Check connectivity to a remote host on a particular port with timeout:
|
||||
|
||||
`ncat -w {{seconds}} -vz {{host}} {{port}}`
|
||||
`ncat {{[-w|--wait]}} {{seconds}} {{[-vz|--verbose -z]}} {{host}} {{port}}`
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
- Include non-free section:
|
||||
|
||||
`sudo netselect-apt --non-free`
|
||||
`sudo netselect-apt {{[-n|--non-free]}}`
|
||||
|
||||
- Specify a country for the mirror list lookup:
|
||||
|
||||
`sudo netselect-apt -c {{India}}`
|
||||
`sudo netselect-apt {{[-c|--country]}} {{India}}`
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
|
||||
- Show recursively all values of a user:
|
||||
|
||||
`nixos-option -r users.users.{{user}}`
|
||||
`nixos-option {{[-r|--recursive]}} users.users.{{user}}`
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Build and switch to the new configuration, making it the boot default and naming the boot entry:
|
||||
|
||||
`sudo nixos-rebuild switch -p {{name}}`
|
||||
`sudo nixos-rebuild switch {{[-p|--profile-name]}} {{name}}`
|
||||
|
||||
- Build and switch to the new configuration, making it the boot default and installing updates:
|
||||
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
|
||||
- Show a notification with a custom icon:
|
||||
|
||||
`notify-send -i {{icon.png}} "{{Test}}" "{{This is a test}}"`
|
||||
`notify-send {{[-i|--icon]}} {{icon.png}} "{{Test}}" "{{This is a test}}"`
|
||||
|
||||
- Show a notification for 5 seconds:
|
||||
|
||||
`notify-send -t 5000 "{{Test}}" "{{This is a test}}"`
|
||||
`notify-send {{[-t|--expire-time]}} 5000 "{{Test}}" "{{This is a test}}"`
|
||||
|
||||
- Show a notification with an app's icon and name:
|
||||
|
||||
`notify-send "{{Test}}" --icon={{google-chrome}} --app-name="{{Google Chrome}}"`
|
||||
`notify-send "{{Test}}" {{[-i|--icon]}} {{google-chrome}} {{[-a|--app-name]}} "{{Google Chrome}}"`
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
- Search directories recursively for images to view:
|
||||
|
||||
`nsxiv -r {{path/to/directory1 path/to/directory2 ...}}`
|
||||
`nsxiv {{[-r|--recursive]}} {{path/to/directory1 path/to/directory2 ...}}`
|
||||
|
||||
- Quit nsxiv:
|
||||
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
- Remove all but the 3 most recent package versions from the `pacman` cache:
|
||||
|
||||
`paccache -r`
|
||||
`paccache {{[-r|--remove]}}`
|
||||
|
||||
- Set the number of package versions to keep:
|
||||
|
||||
`paccache -rk {{num_versions}}`
|
||||
`paccache {{[-rk|--remove --keep]}} {{num_versions}}`
|
||||
|
||||
- Perform a dry-run and show the number of candidate packages for deletion:
|
||||
|
||||
`paccache -d`
|
||||
`paccache {{[-d|--dryrun]}}`
|
||||
|
||||
- Move candidate packages to a directory instead of deleting them:
|
||||
|
||||
`paccache -m {{path/to/directory}}`
|
||||
`paccache {{[-m|--move]}} {{path/to/directory}}`
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Use sudo and sudoedit to remove and merge files:
|
||||
|
||||
`pacdiff --sudo`
|
||||
`pacdiff {{[-s|--sudo]}}`
|
||||
|
||||
- Review files needing maintenance, creating `.bak`ups of the original if you `(O)verwrite`:
|
||||
|
||||
`pacdiff --sudo --backup`
|
||||
`pacdiff {{[-s|--sudo]}} {{[-b|--backup]}}`
|
||||
|
||||
- Use a specific editor to view and merge configuration files (default is `vim -d`):
|
||||
|
||||
|
@ -21,8 +21,8 @@
|
|||
|
||||
- Scan for configuration files with `locate` instead of using `pacman` database:
|
||||
|
||||
`pacdiff --locate`
|
||||
`pacdiff {{[-l|--locate]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pacdiff --help`
|
||||
`pacdiff {{[-h|--help]}}`
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
|
||||
- Suspend PulseAudio while running `jackd`:
|
||||
|
||||
`pasuspender -- {{jackd -d alsa --device hw:0}}`
|
||||
`pasuspender -- {{jackd {{[-d|--driver]}} alsa {{[-d|--device]}} hw:0}}`
|
||||
|
|
|
@ -10,20 +10,20 @@
|
|||
|
||||
- Upgrade all packages:
|
||||
|
||||
`paxs -u`
|
||||
`paxs {{[-u|--upgrade-all]}}`
|
||||
|
||||
- Install a package (prompting for the source):
|
||||
|
||||
`paxs -i {{package}}`
|
||||
`paxs {{[-i|--install]}} {{package}}`
|
||||
|
||||
- Remove a package (prompting for the source):
|
||||
|
||||
`paxs -r {{package}}`
|
||||
`paxs {{[-r|--remove]}} {{package}}`
|
||||
|
||||
- Check for updates across all package managers:
|
||||
|
||||
`paxs -c`
|
||||
`paxs {{[-c|--check-update]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`paxs -h`
|
||||
`paxs {{[-h|--help]}}`
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
- Display help:
|
||||
|
||||
`pdfattach -h`
|
||||
`pdfattach {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
- Create a 2-up PDF:
|
||||
|
||||
`pdfxup -o {{path/to/output.pdf}} {{path/to/input.pdf}}`
|
||||
`pdfxup {{[-o|--output]}} {{path/to/output.pdf}} {{path/to/input.pdf}}`
|
||||
|
||||
- Create a PDF with 3 columns and 2 lines per page:
|
||||
|
||||
`pdfxup -x {{3}} -y {{2}} -o {{path/to/output.pdf}} {{path/to/input.pdf}}`
|
||||
`pdfxup {{[-x|--columns]}} {{3}} {{[-y|--rows]}} {{2}} {{[-o|--output]}} {{path/to/output.pdf}} {{path/to/input.pdf}}`
|
||||
|
||||
- Create a PDF in booklet mode (2-up, and pages are sorted to form a book when folded):
|
||||
|
||||
`pdfxup -b -o {{path/to/output.pdf}} {{path/to/input.pdf}}`
|
||||
`pdfxup {{[-b|--booklet]}} {{[-o|--output]}} {{path/to/output.pdf}} {{path/to/input.pdf}}`
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
- Record the profile of an existing process into `perf.data`:
|
||||
|
||||
`sudo perf record -p {{pid}}`
|
||||
`sudo perf record {{[-p|--pid]}} {{pid}}`
|
||||
|
||||
- Read `perf.data` (created by `perf record`) and display the profile:
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
- Dry-run - display which renames would occur without performing them:
|
||||
|
||||
`rename -n {{'s/foo/bar/'}} {{*}}`
|
||||
`rename {{[-n|--no-act]}} {{'s/foo/bar/'}} {{*}}`
|
||||
|
||||
- Force renaming even if the operation would remove existing destination files:
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Start `picom` as a background process:
|
||||
|
||||
`picom -b`
|
||||
`picom {{[-b|--daemon]}}`
|
||||
|
||||
- Use a custom configuration file:
|
||||
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Open <https://pinout.xyz/> in the default browser:
|
||||
|
||||
`pinout -x`
|
||||
`pinout {{[-x|--xyz]}}`
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
|
||||
- List installed packages and their versions:
|
||||
|
||||
`pkginfo -i`
|
||||
`pkginfo {{[-i|--installed]}}`
|
||||
|
||||
- List files owned by a package:
|
||||
|
||||
`pkginfo -l {{package}}`
|
||||
`pkginfo {{[-l|--list]}} {{package}}`
|
||||
|
||||
- List the owner(s) of files matching a pattern:
|
||||
|
||||
`pkginfo -o {{pattern}}`
|
||||
`pkginfo {{[-o|--owner]}} {{pattern}}`
|
||||
|
||||
- Print the footprint of a file:
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
|
||||
- Dry-run - display which renames would occur without performing them:
|
||||
|
||||
`rename -n {{'s/foo/bar/'}} {{*}}`
|
||||
`rename {{[-n|--nono]}} {{'s/foo/bar/'}} {{*}}`
|
||||
|
||||
- Force renaming even if the operation would remove existing destination files:
|
||||
|
||||
`rename -f {{'s/foo/bar/'}} {{*}}`
|
||||
`rename {{[-f|--force]}} {{'s/foo/bar/'}} {{*}}`
|
||||
|
||||
- Convert filenames to lower case (use `-f` in case-insensitive filesystems to prevent "already exists" errors):
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# pridecat
|
||||
|
||||
> Like cat but more colorful :).
|
||||
> Like cat but more colorful.
|
||||
> More information: <https://github.com/lunasorcery/pridecat>.
|
||||
|
||||
- Print the contents of a file in pride colors to `stdout`:
|
||||
|
@ -9,15 +9,15 @@
|
|||
|
||||
- Print contents of a file in trans colors:
|
||||
|
||||
`pridecat {{path/to/file}} --{{transgender|trans}}`
|
||||
`pridecat {{path/to/file}} {{[--trans|--transgender]}}`
|
||||
|
||||
- Alternate between lesbian and bisexual pride flags:
|
||||
|
||||
`pridecat {{path/to/file}} --lesbian --bi`
|
||||
`pridecat {{path/to/file}} --lesbian {{[--bi|--bisexual]}}`
|
||||
|
||||
- Print contents of a file with the background colors changed:
|
||||
|
||||
`pridecat {{path/to/file}} -b`
|
||||
`pridecat {{path/to/file}} {{[-b|--background]}}`
|
||||
|
||||
- List directory contents in pride flag colors:
|
||||
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
|
||||
- Display help:
|
||||
|
||||
`protonvpn connect --help`
|
||||
`protonvpn {{[c|connect]}} --help`
|
||||
|
|
|
@ -10,19 +10,19 @@
|
|||
|
||||
- Display non-physical volumes:
|
||||
|
||||
`pvs -a`
|
||||
`pvs {{[-a|--all]}}`
|
||||
|
||||
- Change default display to show more details:
|
||||
|
||||
`pvs -v`
|
||||
`pvs {{[-v|--verbose]}}`
|
||||
|
||||
- Display only specific fields:
|
||||
|
||||
`pvs -o {{field_name_1}},{{field_name_2}}`
|
||||
`pvs {{[-o|--options]}} {{field_name_1}},{{field_name_2}}`
|
||||
|
||||
- Append field to default display:
|
||||
|
||||
`pvs -o +{{field_name}}`
|
||||
`pvs {{[-o|--options]}} +{{field_name}}`
|
||||
|
||||
- Suppress heading line:
|
||||
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
|
||||
- Play a WAV file over the default target:
|
||||
|
||||
`pw-cat --playback {{path/to/file.wav}}`
|
||||
`pw-cat {{[-p|--playback]}} {{path/to/file.wav}}`
|
||||
|
||||
- Play a WAV file with a specified resampler quality (4 by default):
|
||||
|
||||
`pw-cat --quality {{0..15}} --playback {{path/to/file.wav}}`
|
||||
`pw-cat {{[-q|--quality]}} {{0..15}} {{[-p|--playback]}} {{path/to/file.wav}}`
|
||||
|
||||
- Record a sample recording at a volume level of 125%:
|
||||
|
||||
`pw-cat --record --volume {{1.25}} {{path/to/file.wav}}`
|
||||
`pw-cat {{[-r|--record]}} --volume {{1.25}} {{path/to/file.wav}}`
|
||||
|
||||
- Record a sample recording using a different sample rate:
|
||||
|
||||
`pw-cat --record --rate {{6000}} {{path/to/file.wav}}`
|
||||
`pw-cat {{[-r|--record]}} --rate {{6000}} {{path/to/file.wav}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
|
|
@ -9,20 +9,20 @@
|
|||
|
||||
- Create a loopback device that automatically connects to the speakers:
|
||||
|
||||
`pw-loopback -m '{{[FL FR]}}' --capture-props='{{media.class=Audio/Sink}}'`
|
||||
`pw-loopback {{[-m|--channel-map]}} '{{[FL FR]}}' {{[-i|--capture-props]}} '{{media.class=Audio/Sink}}'`
|
||||
|
||||
- Create a loopback device that automatically connects to the microphone:
|
||||
|
||||
`pw-loopback -m '{{[FL FR]}}' --playback-props='{{media.class=Audio/Source}}'`
|
||||
`pw-loopback {{[-m|--channel-map]}} '{{[FL FR]}}' {{[-o|--playback-props]}} '{{media.class=Audio/Source}}'`
|
||||
|
||||
- Create a dummy loopback device that doesn't automatically connect to anything:
|
||||
|
||||
`pw-loopback -m '{{[FL FR]}}' --capture-props='{{media.class=Audio/Sink}}' --playback-props='{{media.class=Audio/Source}}'`
|
||||
`pw-loopback {{[-m|--channel-map]}} '{{[FL FR]}}' {{[-i|--capture-props]}} '{{media.class=Audio/Sink}}' {{[-o|--playback-props]}} '{{media.class=Audio/Source}}'`
|
||||
|
||||
- Create a loopback device that automatically connects to the speakers and swaps the left and right channels between the sink and source:
|
||||
|
||||
`pw-loopback --capture-props='{{media.class=Audio/Sink audio.position=[FL FR]}}' --playback-props='{{audio.position=[FR FL]}}'`
|
||||
`pw-loopback {{[-i|--capture-props]}} '{{media.class=Audio/Sink audio.position=[FL FR]}}' {{[-o|--playback-props]}} '{{audio.position=[FR FL]}}'`
|
||||
|
||||
- Create a loopback device that automatically connects to the microphone and swaps the left and right channels between the sink and source:
|
||||
|
||||
`pw-loopback --capture-props='{{audio.position=[FR FL]}}' --playback-props='{{media.class=Audio/Source audio.position=[FL FR]}}'`
|
||||
`pw-loopback {{[-i|--capture-props]}} '{{audio.position=[FR FL]}}' {{[-o|--playback-props]}} '{{media.class=Audio/Source audio.position=[FL FR]}}'`
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
|
||||
- Monitor a specific remote instance:
|
||||
|
||||
`pw-mon --remote={{remote_name}}`
|
||||
`pw-mon {{[-r|--remote]}} {{remote_name}}`
|
||||
|
||||
- Monitor the default instance specifying a color configuration:
|
||||
|
||||
`pw-mon --color={{never|always|auto}}`
|
||||
`pw-mon {{[-N|--color]}} {{never|always|auto}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-mon --help`
|
||||
`pw-mon {{[-h|--help]}}`
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
|
||||
- Monitor a remote instance:
|
||||
|
||||
`pw-top --remote {{remote_name}}`
|
||||
`pw-top {{[-r|--remote]}} {{remote_name}}`
|
||||
|
||||
- Print information periodically instead of running in interactive mode:
|
||||
|
||||
`pw-top --batch-mode`
|
||||
`pw-top {{[-b|--batch-mode]}}`
|
||||
|
||||
- Print information periodically for a specific number of times:
|
||||
|
||||
`pw-top --batch-mode --iterations {{3}}`
|
||||
`pw-top {{[-b|--batch-mode]}} {{[-n|--iterations]}} {{3}}`
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue