1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 13:02:08 +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:
Managor 2025-04-20 00:21:53 +03:00 committed by GitHub
parent ebfa967382
commit ae436c1b00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
147 changed files with 428 additions and 428 deletions

View file

@ -5,12 +5,12 @@
- Link a specific object file with no dependencies into an executable: - 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: - 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): - 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`

View file

@ -5,16 +5,16 @@
- List global (extern) functions in a file (prefixed with T): - 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: - 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: - 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): - Demangle C++ symbols (make them readable):
`nm --demangle {{path/to/file.o}}` `nm {{[-C|--demangle]}} {{path/to/file.o}}`

View file

@ -1,7 +1,7 @@
# acpi # acpi
> Shows battery status or thermal information. > Shows battery status or thermal information.
> More information: <https://sourceforge.net/projects/acpiclient/files/acpiclient/>. > More information: <https://manned.org/acpi>.
- Show battery information: - Show battery information:
@ -9,20 +9,20 @@
- Show thermal information: - Show thermal information:
`acpi -t` `acpi {{[-t|--thermal]}}`
- Show cooling device information: - Show cooling device information:
`acpi -c` `acpi {{[-c|--cooling]}}`
- Show thermal information in Fahrenheit: - Show thermal information in Fahrenheit:
`acpi -tf` `acpi {{[-tf|--thermal --fahrenheit]}}`
- Show all information: - Show all information:
`acpi -V` `acpi {{[-V|--everything]}}`
- Extract information from `/proc` instead of `/sys`: - Extract information from `/proc` instead of `/sys`:
`acpi -p` `acpi {{[-p|--proc]}}`

View file

@ -18,7 +18,7 @@
- Add a remote key to the trusted keystore: - 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: - Add a key from keyserver with only key ID:

View file

@ -9,7 +9,7 @@
`sudo apt update` `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}}` `apt search {{package}}`
@ -35,4 +35,4 @@
- List installed packages: - List installed packages:
`apt list --installed` `apt list {{[-i|--installed]}}`

View file

@ -5,24 +5,24 @@
- Record a snippet in "CD" quality (finish with `<Ctrl c>` when done): - 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: - 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): - 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: - 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): - 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: - 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`

View file

@ -6,7 +6,7 @@
- Generate a local policy to allow access for all denied services: - 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: - 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: - Install a local policy module:
`sudo semodule -i {{local_policy_name}}.pp` `sudo semodule {{[-i|--install]}} {{local_policy_name}}.pp`

View file

@ -17,8 +17,8 @@
- Play each new frequency and duration as a distinct beep: - 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: - 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}}`

View file

@ -5,16 +5,16 @@
- Lock the screen: - Lock the screen:
`betterlockscreen --lock` `betterlockscreen {{[-l|--lock]}}`
- Change the lock screen background: - 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: - 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: - Lock the screen, with a custom monitor off timeout in seconds:
`betterlockscreen --off {{5}} -l` `betterlockscreen --off {{5}} {{[-l|--lock]}}`

View file

@ -5,7 +5,7 @@
- Set display brightness to 50%: - Set display brightness to 50%:
`blight set {{50}} -r` `blight set {{50}} {{[-r|--relative]}}`
- Show current display brightness: - Show current display brightness:
@ -17,7 +17,7 @@
- Increase display brightness in %: - Increase display brightness in %:
`blight inc {{number}} -r` `blight inc {{number}} {{[-r|--relative]}}`
- Decrease display brightness with internal units: - Decrease display brightness with internal units:

View file

@ -5,16 +5,16 @@
- Display the list of all the interfaces: - Display the list of all the interfaces:
`bmon -a` `bmon {{[-a|--show-all]}}`
- Display data transfer rates in bits per second: - 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: - 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: - Specify the interval (in seconds) in which rate per counter is calculated:
`bmon -R {{2.0}}` `bmon {{[-R|--rate-interval]}} {{2.0}}`

View file

@ -13,11 +13,11 @@
- Defragment a single file on a btrfs filesystem (avoid while a deduplication agent is running): - 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): - 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): - Force syncing unwritten data blocks to disk(s):
@ -25,4 +25,4 @@
- Summarize disk usage for the files in a directory recursively: - 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}}`

View file

@ -9,7 +9,7 @@
- List (don't write) files to be restored from a btrfs filesystem: - 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): - 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: - 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}}`

View file

@ -26,4 +26,4 @@
- Start a scrub in quiet mode (does not print errors or statistics): - 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}}`

View file

@ -9,8 +9,8 @@
- Change the font: - Change the font:
`cacaclock -f {{font}}` `cacaclock {{[-f|--font]}} {{font}}`
- Change the format using an `strftime` format specification: - Change the format using an `strftime` format specification:
`cacaclock -d {{strftime_arguments}}` `cacaclock {{[-d|--dateformat]}} {{strftime_arguments}}`

View file

@ -9,20 +9,20 @@
- Create a new default config: - Create a new default config:
`conky -C > ~/.conkyrc` `conky {{[-C|--print-config]}} > ~/.conkyrc`
- Launch Conky with a given configuration file: - Launch Conky with a given configuration file:
`conky -c {{path/to/config}}` `conky {{[-c|--config]}} {{path/to/config}}`
- Start in the background (daemonize): - Start in the background (daemonize):
`conky -d` `conky {{[-d|--daemonize]}}`
- Align Conky on the desktop: - 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: - Pause for 5 seconds at startup before launching:
`conky -p {{5}}` `conky {{[-p|--pause]}} {{5}}`

View file

@ -6,20 +6,20 @@
- List all currently tracked connections: - List all currently tracked connections:
`conntrack --dump` `conntrack {{[-L|--dump]}}`
- Display a real-time event log of connection changes: - 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: - 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: - 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: - Delete all flows for a specific source IP address:
`conntrack --delete --orig-src {{ip_address}}` `conntrack {{[-D|--delete]}} {{[-s|--orig-src]}} {{ip_address}}`

View file

@ -10,12 +10,12 @@
- Start calculating for CPU 1 only: - 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: - 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: - Calculate only once:
`sudo cpufreq-aperf -o` `sudo cpufreq-aperf {{[-o|--once]}}`

View file

@ -9,24 +9,24 @@
- Show CPU frequency information for the specified CPU: - 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: - 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: - 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: - 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: - 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): - 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]}}`

View file

@ -6,16 +6,16 @@
- Set the CPU frequency policy of CPU 1 to "userspace": - 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: - 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: - 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: - 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}}`

View file

@ -1,7 +1,7 @@
# cpuid # cpuid
> Display detailed information about all CPUs. > 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: - Display information for all CPUs:
@ -9,8 +9,8 @@
- Display information only for the current CPU: - Display information only for the current CPU:
`cpuid -1` `cpuid {{[-1|--one-cpu]}}`
- Display raw hex information with no decoding: - Display raw hex information with no decoding:
`cpuid -r` `cpuid {{[-r|--raw]}}`

View file

@ -9,8 +9,8 @@
- Initialize a repository, exclude test RPMs and display verbose logs: - 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: - 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}}`

View file

@ -25,4 +25,4 @@
- Check the progress of an ongoing `dd` operation (run this command from another shell): - 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)`

View file

@ -10,12 +10,12 @@
- Change the brightness (option 0x10) of display 1 to 50%: - 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%: - 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: - Read the settings of display 1:
`ddcutil -d {{1}} getvcp {{ALL}}` `ddcutil {{[-d|--display]}} {{1}} getvcp {{ALL}}`

View file

@ -13,4 +13,4 @@
- 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}}` `dget {{[-d|--download-only]}} {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}`

View file

@ -1,7 +1,7 @@
# dirb # dirb
> Scan HTTP-based webservers for directories and files. > 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: - Scan a webserver using the default wordlist:

View file

@ -6,8 +6,8 @@
- Create a Distrobox container using the Ubuntu image: - 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: - Clone a Distrobox container:
`distrobox-create --clone {{container_name}} {{cloned_container_name}}` `distrobox-create {{[-c|--clone]}} {{container_name}} {{cloned_container_name}}`

View file

@ -14,4 +14,4 @@
- Enter a Distrobox container without instantiating a tty: - Enter a Distrobox container without instantiating a tty:
`distrobox-enter --name {{container_name}} -- {{uptime -p}}` `distrobox-enter {{[-n|--name]}} {{container_name}} -- {{uptime --pretty}}`

View file

@ -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): - 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: - 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`) : - 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): - 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: - Unexport/delete an exported application:
`distrobox-export --app {{package}} --delete` `distrobox-export {{[-a|--app]}} {{package}} {{[-d|--delete]}}`

View file

@ -10,4 +10,4 @@
- List all Distrobox containers with verbose information: - List all Distrobox containers with verbose information:
`distrobox-list --verbose` `distrobox-list {{[-v|--verbose]}}`

View file

@ -9,4 +9,4 @@
- Remove a Distrobox container forcefully: - Remove a Distrobox container forcefully:
`distrobox-rm {{container_name}} --force` `distrobox-rm {{container_name}} {{[-f|--force]}}`

View file

@ -9,4 +9,4 @@
- Stop a Distrobox container non-interactively (without confirmation): - Stop a Distrobox container non-interactively (without confirmation):
`distrobox-stop --name {{container_name}} --yes` `distrobox-stop {{[-n|--name]}} {{container_name}} {{[-Y|--yes]}}`

View file

@ -9,7 +9,7 @@
- Upgrade all containers using the container's native package managers: - 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: - Upgrade specific containers via the container's native package manager:

View file

@ -11,7 +11,7 @@
`sudo dmesg {{[-l|--level]}} err` `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]}}` `sudo dmesg {{[-w|--follow]}}`

View file

@ -10,20 +10,20 @@
- Show the BIOS version: - Show the BIOS version:
`sudo dmidecode -s bios-version` `sudo dmidecode {{[-s|--string]}} bios-version`
- Show the system's serial number: - Show the system's serial number:
`sudo dmidecode -s system-serial-number` `sudo dmidecode {{[-s|--string]}} system-serial-number`
- Show BIOS information: - Show BIOS information:
`sudo dmidecode -t bios` `sudo dmidecode {{[-t|--type]}} bios`
- Show CPU information: - Show CPU information:
`sudo dmidecode -t processor` `sudo dmidecode {{[-t|--type]}} processor`
- Show memory information: - Show memory information:
`sudo dmidecode -t memory` `sudo dmidecode {{[-t|--type]}} memory`

View file

@ -5,28 +5,28 @@
- Scan a domain and save the results to an SQLite database: - 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: - 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: - 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: - 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: - 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: - 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: - Scan a domain, performing zone walking:
`dnsrecon --domain {{example.com}} --type zonewalk` `dnsrecon {{[-d|--domain]}} {{example.com}} {{[-t|--type]}} zonewalk`

View file

@ -7,28 +7,28 @@
- Install a package: - Install a package:
`dpkg -i {{path/to/file.deb}}` `dpkg {{[-i|--install]}} {{path/to/file.deb}}`
- Remove a package: - Remove a package:
`dpkg -r {{package}}` `dpkg {{[-r|--remove]}} {{package}}`
- List installed packages: - List installed packages:
`dpkg -l {{pattern}}` `dpkg {{[-l|--list]}} {{pattern}}`
- List a package's contents: - List a package's contents:
`dpkg -L {{package}}` `dpkg {{[-L|--listfiles]}} {{package}}`
- List contents of a local package file: - 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: - 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: - Purge an installed or already removed package, including configuration:
`dpkg -P {{package}}` `dpkg {{[-P|--purge]}} {{package}}`

View file

@ -10,12 +10,12 @@
- Show a notification with specified urgency: - 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): - 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: - Display help:
`dunstify --help` `dunstify {{[-?|--help]}}`

View file

@ -6,24 +6,24 @@
- Edit quota of the current user: - Edit quota of the current user:
`edquota --user $(whoami)` `edquota {{[-u|--user]}} $(whoami)`
- Edit quota of a specific user: - Edit quota of a specific user:
`sudo edquota --user {{username}}` `sudo edquota {{[-u|--user]}} {{username}}`
- Edit quota for a group: - 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): - 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: - Edit the default grace period:
`sudo edquota -t` `sudo edquota {{[-t|--edit-period]}}`
- Duplicate a quota to other users: - 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}}`

View file

@ -5,7 +5,7 @@
- Switch between different GPU modes: - Switch between different GPU modes:
`sudo envycontrol -s {{nvidia|integrated|hybrid}}` `sudo envycontrol {{[-s|--switch]}} {{nvidia|integrated|hybrid}}`
- Specify your display manager manually: - Specify your display manager manually:
@ -13,7 +13,7 @@
- Check current GPU mode: - Check current GPU mode:
`sudo envycontrol --query` `sudo envycontrol {{[-q|--query]}}`
- Reset settings: - Reset settings:
@ -21,8 +21,8 @@
- Display help: - Display help:
`envycontrol --help` `envycontrol {{[-h|--help]}}`
- Display version: - Display version:
`envycontrol --version` `envycontrol {{[-v|--version]}}`

View file

@ -9,20 +9,20 @@
- Display the driver information for an interface: - Display the driver information for an interface:
`ethtool --driver {{eth0}}` `ethtool {{[-i|--driver]}} {{eth0}}`
- Display all supported features for an interface: - Display all supported features for an interface:
`ethtool --show-features {{eth0}}` `ethtool {{[-k|--show-features]}} {{eth0}}`
- Display the network usage statistics for an interface: - 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: - 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: - 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}}`

View file

@ -9,11 +9,11 @@
- Open a widget: - 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: - 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: - Reload the configuration:

View file

@ -6,20 +6,20 @@
- List the dependencies of a package: - List the dependencies of a package:
`expac -S '%D' {{package}}` `expac {{[-S|--sync]}} '%D' {{package}}`
- List the optional dependencies of a 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: - 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: - 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: - 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)`

View file

@ -21,8 +21,8 @@
- Run a command keeping the real ownership of files instead of pretending they are owned by root: - 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: - Display help:
`fakeroot --help` `fakeroot {{[-h|--help]}}`

View file

@ -5,24 +5,24 @@
- Brute-force a password with a length of 4 to 8 characters, and contains only alphanumeric characters (order matters): - 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 `%`: - 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: - 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`: - 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: - 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: - Benchmark cracking performance:
`fcrackzip --benchmark` `fcrackzip {{[-B|--benchmark]}}`

View file

@ -10,11 +10,11 @@
- Dry-run - display which renames would occur without performing them: - 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: - 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): - Convert filenames to lower case (use `-f` in case-insensitive filesystems to prevent "already exists" errors):

View file

@ -5,20 +5,20 @@
- Probe the chip, ensuring the wiring is correct: - Probe the chip, ensuring the wiring is correct:
`flashrom --programmer {{programmer}}` `flashrom {{[-p|--programmer]}} {{programmer}}`
- Read flash and save it to a file: - 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: - 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: - 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: - Probe the chip using Raspberry Pi:
`flashrom -p {{linux_spi:dev=/dev/spidev0.0}}` `flashrom {{[-p|--programmer]}} {{linux_spi:dev=/dev/spidev0.0}}`

View file

@ -9,7 +9,7 @@
- Start an application with a specified Procfile: - Start an application with a specified Procfile:
`foreman start -f {{Procfile}}` `foreman start {{[-f|--procfile]}} {{Procfile}}`
- Start a specific application: - Start a specific application:
@ -25,4 +25,4 @@
- Start all processes except the one named "worker": - Start all processes except the one named "worker":
`foreman start -m all=1,{{worker}}=0` `foreman start {{[-m|--formation]}} all=1,{{worker}}=0`

View file

@ -25,7 +25,7 @@
- Reset apps usage count (default cache directory: `$XDG_CACHE_HOME/fuzzel`): - 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`: - Launch `fuzzel` on a specific monitor, see `wlr-randr` or `swaymsg -t get_outputs`:

View file

@ -6,12 +6,12 @@
- Initialize the bottle (run once, at start): - Initialize the bottle (run once, at start):
`genie -i` `genie {{[-i|--initialize]}}`
- Run a login shell inside the bottle: - Run a login shell inside the bottle:
`genie -s` `genie {{[-s|--shell]}}`
- Run a specified command inside the bottle: - Run a specified command inside the bottle:
`genie -c {{command}}` `genie {{[-c|--command]}} {{command}}`

View file

@ -5,8 +5,8 @@
- Retrieve all extended attributes of a file and display them in a detailed format: - 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: - Get a specific attribute of a file:
`getfattr -n user.{{attribute_name}} {{path/to/file}}` `getfattr {{[-n|--name]}} user.{{attribute_name}} {{path/to/file}}`

View file

@ -13,8 +13,8 @@
- Analyze a log from `stdin`: - 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: - 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`

View file

@ -9,8 +9,8 @@
- Print report to `stdout`: - Print report to `stdout`:
`hardinfo -r` `hardinfo {{[-r|--generate-report]}}`
- Save report to HTML file: - Save report to HTML file:
`hardinfo -r -f html > hardinfo.html` `hardinfo {{[-r|--generate-report]}} {{[-f|--report-format]}} html > hardinfo.html`

View file

@ -13,4 +13,4 @@
- Display help: - Display help:
`hollywood -h` `hollywood {{[-h|--help]}}`

View file

@ -9,4 +9,4 @@
- Disable all interfaces which are enabled: - Disable all interfaces which are enabled:
`ifdown -a` `ifdown {{[-a|--all]}}`

View file

@ -9,4 +9,4 @@
- Enable all the interfaces defined with "auto" in `/etc/network/interfaces`: - Enable all the interfaces defined with "auto" in `/etc/network/interfaces`:
`ifup -a` `ifup {{[-a|--all]}}`

View file

@ -5,12 +5,12 @@
- Convert single images and/or whole directories containing valid image formats: - 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: - 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: - Rotate an image clockwise by 90 degrees:
`imgp -o {{90}} {{path/to/file}}` `imgp {{[-o|--rotate]}} {{90}} {{path/to/file}}`

View file

@ -13,7 +13,7 @@
- Display CPU statistics: - Display CPU statistics:
`iostat {{[-c|--compact]}}` `iostat -c`
- Display disk statistics with disk names (including LVM): - Display disk statistics with disk names (including LVM):

View file

@ -5,16 +5,16 @@
- Load a new kernel: - 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: - 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: - Execute a currently loaded kernel:
`kexec -e` `kexec {{[-e|--exec]}}`
- Unload current kexec target kernel: - Unload current kexec target kernel:
`kexec -u` `kexec {{[-u|--unload]}}`

View file

@ -9,7 +9,7 @@
- Knock on port using UDP: - Knock on port using UDP:
`knock -u {{hostname}} {{portnumber}}` `knock {{[-u|--udp]}} {{hostname}} {{portnumber}}`
- Force usage of IPv4/IPv6: - Force usage of IPv4/IPv6:
@ -17,4 +17,4 @@
- Display errors and details of connection: - Display errors and details of connection:
`knock -v {{hostname}} {{portnumber}}` `knock {{[-v|--verbose]}} {{hostname}} {{portnumber}}`

View file

@ -5,8 +5,8 @@
- Start knockd system daemon: - Start knockd system daemon:
`knockd -d` `knockd {{[-d|--daemon]}}`
- Use specified configuration file for knockd: - Use specified configuration file for knockd:
`knockd -c {{path/to/file}}.configuration` `knockd {{[-c|--config]}} {{path/to/file}}.configuration`

View file

@ -5,28 +5,28 @@
- Save the current configuration as a profile: - Save the current configuration as a profile:
`konsave --save {{profile_name}}` `konsave {{[-s|--save]}} {{profile_name}}`
- Apply a profile: - 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: - 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: - List all profiles:
`konsave --list` `konsave {{[-l|--list]}}`
- Remove a profile: - Remove a profile:
`konsave --remove {{profile_name}}` `konsave {{[-r|--remove]}} {{profile_name}}`
- Export a profile as a `.knsv` to the home directory: - 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: - Import a `.knsv` profile:
`konsave --import-profile {{path/to/profile_name.knsv}}` `konsave {{[-i|--import-profile]}} {{path/to/profile_name.knsv}}`

View file

@ -13,4 +13,4 @@
- Print the libraries in the cache and check whether a given library is present: - 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}}`

View file

@ -5,16 +5,16 @@
- Print all available information: - Print all available information:
`lsb_release -a` `lsb_release {{[-a|--all]}}`
- Print a description (usually the full name) of the operating system: - 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: - 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: - Print the release number and codename of the distribution, suppressing the field names:
`lsb_release -rcs` `lsb_release {{[-rcs|--release --codename --short]}}`

View file

@ -17,7 +17,7 @@
- List open IPv4 or IPv6 sockets: - List open IPv4 or IPv6 sockets:
`lsfd -i{{4|6}}` `lsfd {{-i4|-i6}}`
- Display help: - Display help:

View file

@ -1,7 +1,7 @@
# lsscsi # lsscsi
> List SCSI devices (or hosts) and their attributes. > List SCSI devices (or hosts) and their attributes.
> More information: <https://manned.org/lspci>. > More information: <https://manned.org/lsscsi>.
- List all SCSI devices: - List all SCSI devices:
@ -9,8 +9,8 @@
- List all SCSI devices with detailed attributes: - List all SCSI devices with detailed attributes:
`lsscsi -L` `lsscsi {{[-L|--list]}}`
- List all SCSI devices with human-readable disk capacity: - List all SCSI devices with human-readable disk capacity:
`lsscsi -s` `lsscsi {{[-s|--size]}}`

View file

@ -17,4 +17,4 @@
- Write to file instead of terminal: - Write to file instead of terminal:
`ltrace -o {{file}} {{path/to/program}}` `ltrace {{[-o|--output]}} {{file}} {{path/to/program}}`

View file

@ -6,16 +6,16 @@
- Create a logical volume of 10 gigabytes in the volume group vg1: - 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: - 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: - 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: - 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}}`

View file

@ -6,12 +6,12 @@
- Increase a volume's size to 120 GB: - 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: - 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: - 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}}`

View file

@ -6,8 +6,8 @@
- Reduce a volume's size to 120 GB: - 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: - 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}}`

View file

@ -10,19 +10,19 @@
- Display all logical volumes: - Display all logical volumes:
`lvs -a` `lvs {{[-a|--all]}}`
- Change default display to show more details: - Change default display to show more details:
`lvs -v` `lvs {{[-v|--verbose]}}`
- Display only specific fields: - 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: - Append field to default display:
`lvs -o +{{field_name}}` `lvs {{[-o|--options]}} +{{field_name}}`
- Suppress heading line: - Suppress heading line:

View file

@ -9,7 +9,7 @@
- Open an LXTerminal window, run a command, and then exit: - Open an LXTerminal window, run a command, and then exit:
`lxterminal -e "{{command}}"` `lxterminal {{[-e|--command]}} "{{command}}"`
- Open an LXTerminal window with multiple tabs: - Open an LXTerminal window with multiple tabs:

View file

@ -6,12 +6,12 @@
- Create a btrfs filesystem on a single device: - 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: - 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: - 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 ...}}`

View file

@ -9,8 +9,8 @@
- Create filesystem with a volume-label: - 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: - Create filesystem with specific UUID:
`mkfs.ntfs -U {{UUID}} {{/dev/sdXY}}` `mkfs.ntfs {{[-U|--with-uuid]}} {{UUID}} {{/dev/sdXY}}`

View file

@ -9,4 +9,4 @@
- Minimal working example with HF that writes to the current directory and streams the output file: - 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`

View file

@ -6,11 +6,11 @@
- Listen for input on the specified port and write it to the specified file: - 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: - 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: - 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: - 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: - Connect to an open `ncat` connection over SSL:
@ -26,4 +26,4 @@
- Check connectivity to a remote host on a particular port with timeout: - 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}}`

View file

@ -13,8 +13,8 @@
- Include non-free section: - Include non-free section:
`sudo netselect-apt --non-free` `sudo netselect-apt {{[-n|--non-free]}}`
- Specify a country for the mirror list lookup: - Specify a country for the mirror list lookup:
`sudo netselect-apt -c {{India}}` `sudo netselect-apt {{[-c|--country]}} {{India}}`

View file

@ -25,4 +25,4 @@
- Show recursively all values of a user: - Show recursively all values of a user:
`nixos-option -r users.users.{{user}}` `nixos-option {{[-r|--recursive]}} users.users.{{user}}`

View file

@ -9,7 +9,7 @@
- Build and switch to the new configuration, making it the boot default and naming the boot entry: - 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: - Build and switch to the new configuration, making it the boot default and installing updates:

View file

@ -9,12 +9,12 @@
- Show a notification with a custom icon: - 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: - 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: - 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}}"`

View file

@ -13,7 +13,7 @@
- Search directories recursively for images to view: - 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: - Quit nsxiv:

View file

@ -5,16 +5,16 @@
- Remove all but the 3 most recent package versions from the `pacman` cache: - 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: - 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: - 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: - Move candidate packages to a directory instead of deleting them:
`paccache -m {{path/to/directory}}` `paccache {{[-m|--move]}} {{path/to/directory}}`

View file

@ -9,11 +9,11 @@
- Use sudo and sudoedit to remove and merge files: - 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`: - 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`): - 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: - Scan for configuration files with `locate` instead of using `pacman` database:
`pacdiff --locate` `pacdiff {{[-l|--locate]}}`
- Display help: - Display help:
`pacdiff --help` `pacdiff {{[-h|--help]}}`

View file

@ -5,4 +5,4 @@
- Suspend PulseAudio while running `jackd`: - Suspend PulseAudio while running `jackd`:
`pasuspender -- {{jackd -d alsa --device hw:0}}` `pasuspender -- {{jackd {{[-d|--driver]}} alsa {{[-d|--device]}} hw:0}}`

View file

@ -10,20 +10,20 @@
- Upgrade all packages: - Upgrade all packages:
`paxs -u` `paxs {{[-u|--upgrade-all]}}`
- Install a package (prompting for the source): - Install a package (prompting for the source):
`paxs -i {{package}}` `paxs {{[-i|--install]}} {{package}}`
- Remove a package (prompting for the source): - Remove a package (prompting for the source):
`paxs -r {{package}}` `paxs {{[-r|--remove]}} {{package}}`
- Check for updates across all package managers: - Check for updates across all package managers:
`paxs -c` `paxs {{[-c|--check-update]}}`
- Display help: - Display help:
`paxs -h` `paxs {{[-h|--help]}}`

View file

@ -14,7 +14,7 @@
- Display help: - Display help:
`pdfattach -h` `pdfattach {{[-h|--help]}}`
- Display version: - Display version:

View file

@ -6,12 +6,12 @@
- Create a 2-up PDF: - 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: - 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): - 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}}`

View file

@ -17,7 +17,7 @@
- Record the profile of an existing process into `perf.data`: - 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: - Read `perf.data` (created by `perf record`) and display the profile:

View file

@ -10,7 +10,7 @@
- Dry-run - display which renames would occur without performing them: - 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: - Force renaming even if the operation would remove existing destination files:

View file

@ -9,7 +9,7 @@
- Start `picom` as a background process: - Start `picom` as a background process:
`picom -b` `picom {{[-b|--daemon]}}`
- Use a custom configuration file: - Use a custom configuration file:

View file

@ -9,4 +9,4 @@
- Open <https://pinout.xyz/> in the default browser: - Open <https://pinout.xyz/> in the default browser:
`pinout -x` `pinout {{[-x|--xyz]}}`

View file

@ -5,15 +5,15 @@
- List installed packages and their versions: - List installed packages and their versions:
`pkginfo -i` `pkginfo {{[-i|--installed]}}`
- List files owned by a package: - List files owned by a package:
`pkginfo -l {{package}}` `pkginfo {{[-l|--list]}} {{package}}`
- List the owner(s) of files matching a pattern: - List the owner(s) of files matching a pattern:
`pkginfo -o {{pattern}}` `pkginfo {{[-o|--owner]}} {{pattern}}`
- Print the footprint of a file: - Print the footprint of a file:

View file

@ -10,11 +10,11 @@
- Dry-run - display which renames would occur without performing them: - 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: - 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): - Convert filenames to lower case (use `-f` in case-insensitive filesystems to prevent "already exists" errors):

View file

@ -1,6 +1,6 @@
# pridecat # pridecat
> Like cat but more colorful :). > Like cat but more colorful.
> More information: <https://github.com/lunasorcery/pridecat>. > More information: <https://github.com/lunasorcery/pridecat>.
- Print the contents of a file in pride colors to `stdout`: - Print the contents of a file in pride colors to `stdout`:
@ -9,15 +9,15 @@
- Print contents of a file in trans colors: - 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: - 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: - 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: - List directory contents in pride flag colors:

View file

@ -25,4 +25,4 @@
- Display help: - Display help:
`protonvpn connect --help` `protonvpn {{[c|connect]}} --help`

View file

@ -10,19 +10,19 @@
- Display non-physical volumes: - Display non-physical volumes:
`pvs -a` `pvs {{[-a|--all]}}`
- Change default display to show more details: - Change default display to show more details:
`pvs -v` `pvs {{[-v|--verbose]}}`
- Display only specific fields: - 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: - Append field to default display:
`pvs -o +{{field_name}}` `pvs {{[-o|--options]}} +{{field_name}}`
- Suppress heading line: - Suppress heading line:

View file

@ -5,19 +5,19 @@
- Play a WAV file over the default target: - 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): - 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%: - 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: - 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: - Display help:

View file

@ -9,20 +9,20 @@
- Create a loopback device that automatically connects to the speakers: - 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: - 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: - 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: - 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: - 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]}}'`

View file

@ -9,12 +9,12 @@
- Monitor a specific remote instance: - Monitor a specific remote instance:
`pw-mon --remote={{remote_name}}` `pw-mon {{[-r|--remote]}} {{remote_name}}`
- Monitor the default instance specifying a color configuration: - Monitor the default instance specifying a color configuration:
`pw-mon --color={{never|always|auto}}` `pw-mon {{[-N|--color]}} {{never|always|auto}}`
- Display help: - Display help:
`pw-mon --help` `pw-mon {{[-h|--help]}}`

View file

@ -10,12 +10,12 @@
- Monitor a remote instance: - Monitor a remote instance:
`pw-top --remote {{remote_name}}` `pw-top {{[-r|--remote]}} {{remote_name}}`
- Print information periodically instead of running in interactive mode: - 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: - 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