1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 08:35:23 +02:00

linux/c*: add option placeholders (#16995)

This commit is contained in:
Managor 2025-06-28 12:46:55 +03:00 committed by GitHub
parent a47db27055
commit 0723c19147
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 35 additions and 35 deletions

View file

@ -9,8 +9,8 @@
- Display help: - Display help:
`caffeine --help` `caffeine {{[-h|--help]}}`
- Display version: - Display version:
`caffeine --version` `caffeine {{[-V|--version]}}`

View file

@ -14,12 +14,12 @@
- Open specific directories in tabs: - Open specific directories in tabs:
`caja --tabs {{path/to/directory1 path/to/directory2 ...}}` `caja {{[-t|--tabs]}} {{path/to/directory1 path/to/directory2 ...}}`
- Open a directory with a specific window size: - Open a directory with a specific window size:
`caja --geometry={{600}}x{{400}} {{path/to/directory}}` `caja {{[-g|--geometry]}} {{600}}x{{400}} {{path/to/directory}}`
- Close all windows: - Close all windows:
`caja --quit` `caja {{[-q|--quit]}}`

View file

@ -1,7 +1,7 @@
# calcurse # calcurse
> A text-based calendar and scheduling application for the command-line. > A text-based calendar and scheduling application for the command-line.
> More information: <https://calcurse.org>. > More information: <https://github.com/lfos/calcurse/blob/pu/doc/calcurse.1.txt>.
- Start `calcurse` on interactive mode: - Start `calcurse` on interactive mode:
@ -9,7 +9,7 @@
- Print the appointments and events for the current day and exit: - Print the appointments and events for the current day and exit:
`calcurse --appointment` `calcurse {{[-a|--appointment]}}`
- Remove all local calcurse items and import remote objects: - Remove all local calcurse items and import remote objects:

View file

@ -9,19 +9,19 @@
- Show the battery icon and set the update interval to 20 seconds: - Show the battery icon and set the update interval to 20 seconds:
`cbatticon --update-interval {{20}}` `cbatticon {{[-u|--update-interval]}} {{20}}`
- List available icon types: - List available icon types:
`cbatticon --list-icon-types` `cbatticon {{[-t|--list-icon-types]}}`
- Show the battery icon with a specific icon type: - Show the battery icon with a specific icon type:
`cbatticon --icon-type {{standard|notification|symbolic}}` `cbatticon {{[-i|--icon-type]}} {{standard|notification|symbolic}}`
- List available power supplies: - List available power supplies:
`cbatticon --list-power-supplies` `cbatticon {{[-p|--list-power-supplies]}}`
- Show the battery icon for a specific battery: - Show the battery icon for a specific battery:
@ -29,4 +29,4 @@
- Show the battery icon and which command to execute when the battery level reaches the set critical level: - Show the battery icon and which command to execute when the battery level reaches the set critical level:
`cbatticon --critical-level {{5}} --command-critical-level {{poweroff}}` `cbatticon {{[-r|--critical-level]}} {{5}} {{[-c|--command-critical-level]}} {{poweroff}}`

View file

@ -3,7 +3,7 @@
> Move running tasks to `cgroups`. > Move running tasks to `cgroups`.
> More information: <https://manned.org/cgclassify>. > More information: <https://manned.org/cgclassify>.
- Move the process with a specific PID to the control group student in the CPU hierarchy: - Move the process with a specific PID to the control [g]roup student in the CPU hierarchy:
`cgclassify -g {{cpu:student}} {{1234}}` `cgclassify -g {{cpu:student}} {{1234}}`
@ -11,6 +11,6 @@
`cgclassify {{1234}}` `cgclassify {{1234}}`
- Move the process with a specific PID to the control group student in the CPU hierarchy. Note: The daemon of the service `cgred` does not change `cgroups` of the specific PID and its children (based on `/etc/cgrules.conf`): - Move the process with a specific PID to the control [g]roup student in the CPU hierarchy. Note: The daemon of the service `cgred` does not change `cgroups` of the specific PID and its children (based on `/etc/cgrules.conf`):
`cgclassify --sticky -g {{cpu:/student}} {{1234}}` `cgclassify --sticky -g {{cpu:/student}} {{1234}}`

View file

@ -4,11 +4,11 @@
> `cgroups` types can be `memory`, `cpu`, `net_cls`, etc. > `cgroups` types can be `memory`, `cpu`, `net_cls`, etc.
> More information: <https://manned.org/cgcreate>. > More information: <https://manned.org/cgcreate>.
- Create a new group: - Create a new [g]roup:
`cgcreate -g {{group_type}}:{{group_name}}` `cgcreate -g {{group_type}}:{{group_name}}`
- Create a new group with multiple cgroup types: - Create a new [g]roup with multiple cgroup types:
`cgcreate -g {{group_type1}},{{group_type2}}:{{group_name}}` `cgcreate -g {{group_type1}},{{group_type2}}:{{group_name}}`

View file

@ -4,6 +4,6 @@
> Multiple cgroup types (aka controllers) exist, such as `cpu`, `memory`, etc. > Multiple cgroup types (aka controllers) exist, such as `cpu`, `memory`, etc.
> More information: <https://manned.org/cgexec>. > More information: <https://manned.org/cgexec>.
- Execute a process in a given cgroup with given controller: - Execute a process in a given c[g]roup with given controller:
`cgexec -g {{controller}}:{{cgroup_name}} {{process_name}}` `cgexec -g {{controller}}:{{cgroup_name}} {{process_name}}`

View file

@ -3,7 +3,7 @@
> Change attributes of files or directories. > Change attributes of files or directories.
> More information: <https://manned.org/chattr>. > More information: <https://manned.org/chattr>.
- Make a file or directory immutable to changes and deletion, even by superuser: - Make a file or directory [i]mmutable to changes and deletion, even by superuser:
`chattr +i {{path/to/file_or_directory}}` `chattr +i {{path/to/file_or_directory}}`
@ -11,7 +11,7 @@
`chattr -i {{path/to/file_or_directory}}` `chattr -i {{path/to/file_or_directory}}`
- Recursively make an entire directory and contents immutable: - [R]ecursively make an entire directory and contents immutable:
`chattr -R +i {{path/to/directory}}` `chattr -R +i {{path/to/directory}}`
@ -19,6 +19,6 @@
`chattr +F {{path/to/directory}}` `chattr +F {{path/to/directory}}`
- Set a file to only allow appending: - Set a file to only allow [a]ppending:
`chattr +a {{path/to/file}}` `chattr +a {{path/to/file}}`

View file

@ -2,7 +2,7 @@
> Report non-free packages installed on Debian-based OSes. > Report non-free packages installed on Debian-based OSes.
> This command was formerly known as `vrms`. > This command was formerly known as `vrms`.
> More information: <https://debian.pages.debian.net/check-dfsg-status/>. > More information: <https://salsa.debian.org/debian/check-dfsg-status>.
- List non-free and contrib packages (and their description): - List non-free and contrib packages (and their description):
@ -10,4 +10,4 @@
- Only output the package names: - Only output the package names:
`check-dfsg-status --sparse` `check-dfsg-status {{[-s|--sparse]}}`

View file

@ -9,7 +9,7 @@
- List packages for a specific locale: - List packages for a specific locale:
`check-language-support --language {{en}}` `check-language-support {{[-l|--language]}} {{en}}`
- Display installed packages as well as missing ones: - Display installed packages as well as missing ones:

View file

@ -2,7 +2,7 @@
> A utility that can edit windows registry, reset user password, promote users to administrator by modifying the Windows SAM. > A utility that can edit windows registry, reset user password, promote users to administrator by modifying the Windows SAM.
> Boot target machine with live cd like Kali Linux and run with elevated privileges. > Boot target machine with live cd like Kali Linux and run with elevated privileges.
> More information: <https://pogostick.net/~pnh/ntpasswd>. > More information: <https://pogostick.net/~pnh/ntpasswd/MANUAL.txt>.
- List all users in the SAM file: - List all users in the SAM file:

View file

@ -1,7 +1,7 @@
# cloud-init # cloud-init
> Command line tool for managing cloud instance initialization. > Command line tool for managing cloud instance initialization.
> More information: <https://cloudinit.readthedocs.io>. > More information: <https://cloudinit.readthedocs.io/en/latest/reference/cli.html>.
- Display the status of the most recent cloud-init run: - Display the status of the most recent cloud-init run:

View file

@ -1,28 +1,28 @@
# cpulimit # cpulimit
> A tool to throttle the CPU usage of other processes. > A tool to throttle the CPU usage of other processes.
> More information: <https://cpulimit.sourceforge.net/>. > More information: <https://manned.org/cpulimit>.
- Limit an existing process with PID 1234 to only use 25% of the CPU: - Limit an existing process with PID 1234 to only use 25% of the CPU:
`cpulimit --pid {{1234}} --limit {{25%}}` `cpulimit {{[-p|--pid]}} {{1234}} {{[-l|--limit]}} {{25%}}`
- Limit an existing program by its executable name: - Limit an existing program by its executable name:
`cpulimit --exe {{program}} --limit {{25}}` `cpulimit {{[-e|--exe]}} {{program}} {{[-l|--limit]}} {{25}}`
- Launch a given program and limit it to only use 50% of the CPU: - Launch a given program and limit it to only use 50% of the CPU:
`cpulimit --limit {{50}} -- {{program argument1 argument2 ...}}` `cpulimit {{[-l|--limit]}} {{50}} -- {{program argument1 argument2 ...}}`
- Launch a program, limit its CPU usage to 50% and run cpulimit in the background: - Launch a program, limit its CPU usage to 50% and run cpulimit in the background:
`cpulimit --limit {{50}} --background -- {{program}}` `cpulimit {{[-l|--limit]}} {{50}} {{[-b|--background]}} -- {{program}}`
- Kill its process if the program's CPU usage goes over 50%: - Kill its process if the program's CPU usage goes over 50%:
`cpulimit --limit 50 --kill -- {{program}}` `cpulimit {{[-l|--limit]}} 50 {{[-k|--kill]}} -- {{program}}`
- Throttle both it and its child processes so that none go about 25% CPU: - Throttle both it and its child processes so that none go about 25% CPU:
`cpulimit --limit {{25}} --monitor-forks -- {{program}}` `cpulimit {{[-l|--limit]}} {{25}} {{[-m|--monitor-forks]}} -- {{program}}`

View file

@ -11,7 +11,7 @@
`crond -n` `crond -n`
- Send job output from the daemon to the system log: - Send job output from the daemon to the [s]ystem log:
`crond -s` `crond -s`

View file

@ -11,7 +11,7 @@
- Use a keyfile instead of a passphrase: - Use a keyfile instead of a passphrase:
`cryptsetup open --key-file {{path/to/file}} {{/dev/sdXY}} {{mapping_name}}` `cryptsetup open {{[-k|--key-file]}} {{path/to/file}} {{/dev/sdXY}} {{mapping_name}}`
- Allow the use of TRIM on the device: - Allow the use of TRIM on the device:
@ -23,4 +23,4 @@
- Open a LUKS volume and make the decrypted mapping read-only: - Open a LUKS volume and make the decrypted mapping read-only:
`cryptsetup open --readonly {{/dev/sdXY}} {{mapping_name}}` `cryptsetup open {{[-r|--readonly]}} {{/dev/sdXY}} {{mapping_name}}`