diff --git a/pages/linux/caffeine.md b/pages/linux/caffeine.md index 5fb305c398..f6ba2ee6fe 100644 --- a/pages/linux/caffeine.md +++ b/pages/linux/caffeine.md @@ -9,8 +9,8 @@ - Display help: -`caffeine --help` +`caffeine {{[-h|--help]}}` - Display version: -`caffeine --version` +`caffeine {{[-V|--version]}}` diff --git a/pages/linux/caja.md b/pages/linux/caja.md index 0ad032b179..22eb7f61b6 100644 --- a/pages/linux/caja.md +++ b/pages/linux/caja.md @@ -14,12 +14,12 @@ - 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: -`caja --geometry={{600}}x{{400}} {{path/to/directory}}` +`caja {{[-g|--geometry]}} {{600}}x{{400}} {{path/to/directory}}` - Close all windows: -`caja --quit` +`caja {{[-q|--quit]}}` diff --git a/pages/linux/calcurse.md b/pages/linux/calcurse.md index 4727f3d244..9acf1f9170 100644 --- a/pages/linux/calcurse.md +++ b/pages/linux/calcurse.md @@ -1,7 +1,7 @@ # calcurse > A text-based calendar and scheduling application for the command-line. -> More information: . +> More information: . - Start `calcurse` on interactive mode: @@ -9,7 +9,7 @@ - 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: diff --git a/pages/linux/cbatticon.md b/pages/linux/cbatticon.md index 09fad11d54..71ded42f73 100644 --- a/pages/linux/cbatticon.md +++ b/pages/linux/cbatticon.md @@ -9,19 +9,19 @@ - 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: -`cbatticon --list-icon-types` +`cbatticon {{[-t|--list-icon-types]}}` - 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: -`cbatticon --list-power-supplies` +`cbatticon {{[-p|--list-power-supplies]}}` - 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: -`cbatticon --critical-level {{5}} --command-critical-level {{poweroff}}` +`cbatticon {{[-r|--critical-level]}} {{5}} {{[-c|--command-critical-level]}} {{poweroff}}` diff --git a/pages/linux/cgclassify.md b/pages/linux/cgclassify.md index 66cdfe2b56..9eba48df62 100644 --- a/pages/linux/cgclassify.md +++ b/pages/linux/cgclassify.md @@ -3,7 +3,7 @@ > Move running tasks to `cgroups`. > More information: . -- 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}}` @@ -11,6 +11,6 @@ `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}}` diff --git a/pages/linux/cgcreate.md b/pages/linux/cgcreate.md index 4dde315d12..1ee5c42474 100644 --- a/pages/linux/cgcreate.md +++ b/pages/linux/cgcreate.md @@ -4,11 +4,11 @@ > `cgroups` types can be `memory`, `cpu`, `net_cls`, etc. > More information: . -- Create a new group: +- Create a new [g]roup: `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}}` diff --git a/pages/linux/cgexec.md b/pages/linux/cgexec.md index 426fc91cf4..4f3d6edf66 100644 --- a/pages/linux/cgexec.md +++ b/pages/linux/cgexec.md @@ -4,6 +4,6 @@ > Multiple cgroup types (aka controllers) exist, such as `cpu`, `memory`, etc. > More information: . -- 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}}` diff --git a/pages/linux/chattr.md b/pages/linux/chattr.md index 889ae9abf5..32b55dad6c 100644 --- a/pages/linux/chattr.md +++ b/pages/linux/chattr.md @@ -3,7 +3,7 @@ > Change attributes of files or directories. > More information: . -- 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}}` @@ -11,7 +11,7 @@ `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}}` @@ -19,6 +19,6 @@ `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}}` diff --git a/pages/linux/check-dfsg-status.md b/pages/linux/check-dfsg-status.md index ee5004ee67..5433b53d21 100644 --- a/pages/linux/check-dfsg-status.md +++ b/pages/linux/check-dfsg-status.md @@ -2,7 +2,7 @@ > Report non-free packages installed on Debian-based OSes. > This command was formerly known as `vrms`. -> More information: . +> More information: . - List non-free and contrib packages (and their description): @@ -10,4 +10,4 @@ - Only output the package names: -`check-dfsg-status --sparse` +`check-dfsg-status {{[-s|--sparse]}}` diff --git a/pages/linux/check-language-support.md b/pages/linux/check-language-support.md index 74612fa3dc..eec8c04a31 100644 --- a/pages/linux/check-language-support.md +++ b/pages/linux/check-language-support.md @@ -9,7 +9,7 @@ - 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: diff --git a/pages/linux/chntpw.md b/pages/linux/chntpw.md index 818d782273..25cafec807 100644 --- a/pages/linux/chntpw.md +++ b/pages/linux/chntpw.md @@ -2,7 +2,7 @@ > 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. -> More information: . +> More information: . - List all users in the SAM file: diff --git a/pages/linux/cloud-init.md b/pages/linux/cloud-init.md index a591d86be1..77048f413b 100644 --- a/pages/linux/cloud-init.md +++ b/pages/linux/cloud-init.md @@ -1,7 +1,7 @@ # cloud-init > Command line tool for managing cloud instance initialization. -> More information: . +> More information: . - Display the status of the most recent cloud-init run: diff --git a/pages/linux/cpulimit.md b/pages/linux/cpulimit.md index 834466d2e1..1224507aaa 100644 --- a/pages/linux/cpulimit.md +++ b/pages/linux/cpulimit.md @@ -1,28 +1,28 @@ # cpulimit > A tool to throttle the CPU usage of other processes. -> More information: . +> More information: . - 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: -`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: -`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: -`cpulimit --limit {{50}} --background -- {{program}}` +`cpulimit {{[-l|--limit]}} {{50}} {{[-b|--background]}} -- {{program}}` - 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: -`cpulimit --limit {{25}} --monitor-forks -- {{program}}` +`cpulimit {{[-l|--limit]}} {{25}} {{[-m|--monitor-forks]}} -- {{program}}` diff --git a/pages/linux/crond.md b/pages/linux/crond.md index 7b009acdcd..1d2a153b99 100644 --- a/pages/linux/crond.md +++ b/pages/linux/crond.md @@ -11,7 +11,7 @@ `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` diff --git a/pages/linux/cryptsetup-open.md b/pages/linux/cryptsetup-open.md index 0fb2bb5137..ebddc5d034 100644 --- a/pages/linux/cryptsetup-open.md +++ b/pages/linux/cryptsetup-open.md @@ -11,7 +11,7 @@ - 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: @@ -23,4 +23,4 @@ - 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}}`