Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-17 00:22:45 +00:00
parent 38ecb2b6c5
commit 42c0c33dde
259 changed files with 1079 additions and 386 deletions

2
tldr/$
View File

@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
- Print out a Bash array:
`echo ${array[@]}`
`echo ${{{array_name[@]}}}`

2
tldr/^
View File

@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Replace all occurrences of `string1`:
`^{{string1}}^{{string2}}^:&`
`^{{string1}}^{{string2}}^:g&`
- Print the substituted command without running it:

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- Issue a certificate using webroot mode:
`acme.sh --issue {{[-d|--domain]}} {{example.com}} {{[-w|--webroot]}} {{/path/to/webroot}}`
`acme.sh --issue {{[-d|--domain]}} {{example.com}} {{[-w|--webroot]}} /{{path/to/webroot}}`
- Issue a certificate for multiple domains using standalone mode using port 80:
@@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git
- Install certificate files into the specified locations (useful for automatic certificate renewal):
`acme.sh {{[-i|--install-cert]}} {{[-d|--domain]}} {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"`
`acme.sh {{[-i|--install-cert]}} {{[-d|--domain]}} {{example.com}} --key-file /{{path/to/example.com.key}} --fullchain-file /{{path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"`

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run and generate a private key and certificate:
`agate --content {{path/to/content/}} --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
`agate --content {{path/to/content}}/ --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
- Run server:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Ada package manager.
> Manage Ada toolchains, dependencies, tools and libraries.
> More information: <https://alire.ada.dev/>.
> More information: <https://alire.ada.dev/docs/#first-steps>.
- Create a binary or library project:

View File

@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Download a local copy of all ArchWiki pages into a specific directory:
`archwiki-rs local-wiki {{/path/to/local_wiki}} --format {{plain-text|markdown|html}}`
`archwiki-rs local-wiki /{{path/to/local_wiki}} --format {{plain-text|markdown|html}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# argos-translate
> An open-source offline translation library and CLI tool written in Python.
> More information: <https://www.argosopentech.com/>.
> More information: <https://argos-translate.readthedocs.io/en/latest/source/cli.html>.
- Install translation pairs for Spanish to English translation:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# aspell
> Interactive spell checker.
> More information: <http://aspell.net/>.
> More information: <http://aspell.net/man-html/index.html>.
- Spell check a single file:

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- List all files in a path with a given prefix:
`aws s3 ls --recursive {{bucket_name}}/{{path/to/directory/}}{{prefix}}`
`aws s3 ls --recursive {{bucket_name}}/{{path/to/directory}}/{{prefix}}`
- Display help:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# babel
> A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax.
> More information: <https://babeljs.io/>.
> More information: <https://babeljs.io/docs/babel-cli>.
- Transpile a specified input file and output to `stdout`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Bourne-Again SHell, an `sh`-compatible command-line interpreter.
> See also: `zsh`, `histexpand` (history expansion).
> More information: <https://www.gnu.org/software/bash/manual/html_node/Invoking-Bash.html>.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Invoking-Bash>.
- Start an interactive shell session:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> BIRD Internet Routing Daemon.
> Routing daemon with support for BGP, OSPF, Babel and others.
> More information: <https://bird.network.cz/>.
> More information: <https://bird.network.cz/?get_doc&v=30&f=bird-1.html#ss1.3>.
- Start Bird with a specific configuration file:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> BIRD remote control.
> Retrieve information like routes from bird and perform configurations during runtime.
> More information: <https://bird.network.cz/>.
> More information: <https://bird.network.cz/?get_doc&v=30&f=bird-4.html>.
- Open the remote control console:

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Render the 10th frame of an animation as a single image, saved to an existing directory (absolute path):
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-o|--render-output]}} {{/path/to/output_directory}} {{[-f|--render-frame]}} {{10}}`
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-o|--render-output]}} /{{path/to/output_directory}} {{[-f|--render-frame]}} {{10}}`
- Render the second last frame in an animation as a JPEG image, saved to an existing directory (relative path):

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A package manager optimized for front-end web development.
> A package can be a GitHub user/repo shorthand, a Git endpoint, a URL or a registered package.
> More information: <https://bower.io/>.
> More information: <https://bower.io/#getting-started>.
- Install a project's dependencies, listed in its bower.json:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# browsh
> View webpages on the terminal using a Firefox backend.
> More information: <https://www.brow.sh/>.
> More information: <https://www.brow.sh/docs/keybindings/>.
- Start browsh:

View File

@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
- Search `stdin` for lines that do not match a pattern:
`cat {{/path/to/bz/compressed/file}} | bzgrep {{[-v|--invert-match]}} "{{search_pattern}}"`
`cat {{path/to/bz/compressed/file}} | bzgrep {{[-v|--invert-match]}} "{{search_pattern}}"`

View File

@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
- Allow matching multiple patterns:
`case {{$ANIMAL}} in {{cat}}) echo "It's a cat" ;;& {{cat|dog}}) echo "It's a cat or a dog" ;;& *) echo "Fallback" ;; esac`
`case {{$ANIMAL}} in {{cat}}) {{echo "It's a cat"}} ;;& {{cat|dog}}) {{echo "It's a cat or a dog"}} ;;& *) {{echo "Fallback"}} ;; esac`
- Continue to the next pattern's commands without checking the pattern:
`case {{$ANIMAL}} in {{cat}}) echo "It's a cat" ;& {{dog}}) echo "It's either a dog or cat fell through" ;& *) echo "Fallback" ;; esac`
`case {{$ANIMAL}} in {{cat}}) echo {{"It's a cat"}} ;& {{dog}}) {{echo "It's either a dog or cat fell through"}} ;& *) {{echo "Fallback"}} ;; esac`
- Display help:

25
tldr/cisco-ios/clock Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# clock
> Set the system clock.
> More information: <https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_c1.html#clock>.
- Enter privileged execution mode:
`clock set {{23}}:{{59}}:{{59}} {{31}} {{april}} {{2000}}`
- Auto negotiate with the far end of the link, defaulting to active-clock:
`clock active prefer`
- Auto negotiate with the far end of the link, defaulting to passive-clock:
`clock passive prefer`
- Show the current clock mode negotiated by the firmware:
`clock show interfaces`

21
tldr/cisco-ios/configure vendored Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# configure
> Enter configuration mode.
> More information: <https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_c1.html#configure_check_syntax>.
- Configure from the terminal:
`{{[conf|configure]}} {{[t|terminal]}}`
- Back out one level in configuration mode:
`exit`
- Exit out of configuration mode:
`end`

View File

@@ -12,3 +12,11 @@ source: https://github.com/tldr-pages/tldr.git
- Generate an `rsa` key:
`crypto key generate rsa`
- Define a modulus for a key:
`crypto key generate rsa modulus {{1024}}`
- Remove all keys:
`crypto key zeroize`

13
tldr/cisco-ios/delete Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# delete
> Delete individual files.
> More information: <https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/command/reference/fund/n5k-fund-cr/n5k-fund_cmds_d.html#delete>.
- Delete a file from flash memory:
`delete {{vlan.dat}}`

21
tldr/cisco-ios/dir Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# dir
> List files.
> More information: <https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/command/reference/fund/n5k-fund-cr/n5k-fund_cmds_d.html#dir>.
- List files in the current working directory:
`dir`
- List files in a specific filesystem:
`dir {{flash}}:`
- List available filesystems:
`dir ?`

17
tldr/cisco-ios/erase Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# erase
> Delete preset things.
> More information: <https://www.cisco.com/c/en/us/td/docs/ios/ios_xe/fundamentals/configuration/guide/2_xe/cf_xe_book/cf_config-files_xe.html>.
- Erase the startup configuration:
`erase startup-config`
- Erase a filesystem:
`erase {{flash}}:`

26
tldr/cisco-ios/ip Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# ip
> Manage IP configurations.
> Accessed in configuration mode.
> More information: <https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr/command/ipaddr-cr-book.html>.
- Set the SSH version:
`ip ssh version {{2}}`
- Set the address of the device (This is done under `interface command`):
`ip address {{10.0.0.1}} {{255.255.255.0}}`
- Set the address to be determined with DHCP (This is done under `interface command`):
`ip address dhcp`
- Define a domain name:
`ip domain-name {{example.com}}`

14
tldr/cisco-ios/line Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# line
> Manage lines.
> Accessed in configuration mode.
> More information: <https://www.cisco.com/c/en/us/td/docs/routers/sdwan/command/iosxe/qualified-cli-command-reference-guide/m-line-commands.pdf>.
- Configure lines from 0 to 15:
`line vty 0 15`

14
tldr/cisco-ios/login Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# login
> Manage line transport protocols.
> Accessed in configuration mode under `line`.
> More information: <https://www.cisco.com/c/en/us/td/docs/routers/sdwan/command/iosxe/qualified-cli-command-reference-guide/m-line-commands.pdf>.
- Use local username and password for authentication:
`login local`

21
tldr/cisco-ios/reload Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# reload
> Control reboot behavior.
> More information: <https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/command/reference/fund/n5k-fund-cr/n5k-fund_cmds_r.html#reload>.
- Reboot the system:
`reload`
- Reboot after `n` seconds:
`reload in {{n}}`
- Cancel pending reboots:
`reload cancel`

29
tldr/cisco-ios/show Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# show
> Show various system information.
> More information: <https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/command/reference/fund/n5k-fund-cr/n5k-fund_cmds_show.html>.
- Show switch IP addresses:
`{{[s|show]}} ip interface brief`
- Show specific interface configuration:
`{{[s|show]}} ip interface {{vlan1}}`
- Show vlan configuration:
`{{[s|show]}} vlan`
- Show currently running configuration:
`{{[s|show]}} running-config`
- Show SSH configuration:
`{{[s|show]}} ip ssh`

14
tldr/cisco-ios/transport Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# transport
> Manage line transport protocols.
> Accessed in configuration mode under `line`.
> More information: <https://www.cisco.com/c/en/us/td/docs/routers/sdwan/command/iosxe/qualified-cli-command-reference-guide/m-line-commands.pdf>.
- Restrict line protocols to `ssh`:
`transport input ssh`

14
tldr/cisco-ios/username Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# username
> Manage users.
> Accessed in configuration mode.
> More information: <https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/security/s1/sec-s1-xe-3se-3850-cr-book/sec-s1-xe-3se-3850-cr-book_chapter_0110.html>.
- Set up an admin account:
`username {{admin}} privilege 15 secret {{password}}`

21
tldr/cisco-ios/write Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# write
> Write data to memory.
> More information: <https://www.oreilly.com/library/view/cisco-ios-in/0596008694/re869.html#book-content>.
- Write current configuration to memory:
`write memory`
- Delete the configuration in memory:
`write erase`
- Display help:
`write ?`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Language server that provides IDE-like features to editors.
> It should be used via an editor plugin rather than invoked directly.
> More information: <https://clangd.llvm.org/>.
> More information: <https://manpages.ubuntu.com/manpages/focal/man1/clangd.1.html>.
- Display available options:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cmp
> Compare two files byte by byte.
> More information: <https://www.gnu.org/software/diffutils/manual/html_node/Invoking-cmp.html>.
> More information: <https://www.gnu.org/software/diffutils/manual/diffutils.html#Invoking-cmp>.
- Output char and line number of the first difference between two files:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# codecrafters
> Practice writing complex software.
> More information: <https://codecrafters.io/>.
> More information: <https://docs.codecrafters.io/cli/usage>.
- Run tests without committing changes:

View File

@@ -5,16 +5,22 @@ source: https://github.com/tldr-pages/tldr.git
---
# compgen
> A built-in command for auto-completion in Bash, which is called on pressing `<Tab>` key twice.
> Bash built-in command for generating possible completion matches in Bash.
> Usually used within custom completion functions.
> See also: `complete`, `compopt`.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-compgen>.
- List all commands that you could run:
- List all shell built-ins, aliases, functions and executables that you could run:
`compgen -c`
- List all commands that you could run that start with a specified string:
- List all commands that you could run that start with a specified string and save results to `COMPREPLY`:
`compgen -c {{str}}`
`compgen -V COMPREPLY -c {{str}}`
- Match against a wordlist:
`compgen -W "{{apple orange banana}}" {{a}}`
- List all aliases:
@@ -35,7 +41,3 @@ source: https://github.com/tldr-pages/tldr.git
- List all users on the system:
`compgen -u`
- Display help:
`compgen --help`

View File

@@ -5,17 +5,31 @@ source: https://github.com/tldr-pages/tldr.git
---
# complete
> Get argument autocompletion to shell commands.
> More information: <https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html#index-complete>.
> Get and set argument autocompletion rules of shell commands in Bash.
> The specified completions will be invoked when `<Tab>` is pressed in Bash.
> See also: `compgen`, `compopt`.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-complete>.
- Apply a function that performs autocompletion to a command:
- Set arguments of a command to autocomplete through a function (completion response is sent in `COMPREPLY` variable):
`complete -F {{function}} {{command}}`
- Apply a command that performs autocompletion to another command:
- Set arguments of a command to autocomplete through another command (`$1` is the command, `$2` is the argument the cursor is on, and `$3` is the argument preceding the cursor):
`complete -C {{autocomplete_command}} {{command}}`
- Set arguments of a command to autocomplete to shell builtins:
`complete -b {{command}}`
- Apply autocompletion without appending a space to the completed word:
`complete -o nospace -F {{function}} {{command}}`
- List all loaded complete specifications:
`complete -p`
- List loaded complete specifications for a command:
`complete -p {{command}}`

View File

@@ -6,12 +6,22 @@ source: https://github.com/tldr-pages/tldr.git
# compopt
> Print or change the completion options for a command.
> More information: <https://manned.org/compopt>.
> `-o` means enabled and `+o` means disabled.
> See also: `compgen`, `complete`.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-compopt>.
- Print the completion options for given command:
`compopt {{command}}`
- Enable or disable a completion option of a command:
`compopt {{-o|+o}} {{option1}} {{-o|+o}} {{option2}} {{command}}`
- Print the options for the currently executing completion:
`compopt`
- Print the completion options for given command:
- Enable or disable a completion option of a command:
`compopt {{command}}`
`compopt {{-o|+o}} {{option1}} {{-o|+o}} {{option2}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# composer
> A package-based dependency manager for PHP projects.
> More information: <https://getcomposer.org/>.
> More information: <https://getcomposer.org/doc/03-cli.md>.
- Interactively create a `composer.json` file:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> The open source, decentralized and cross-platform package manager to create and share all your native binaries.
> Some subcommands such as `frogarian` have their own usage documentation.
> More information: <https://conan.io/>.
> More information: <https://docs.conan.io/2/reference/commands.html>.
- Install packages based on `conanfile.txt`:

View File

@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
- Skip to the next iteration:
`while :; do continue; echo "This will never be reached"; done`
`while :; do continue; {{echo "This will never be reached"}}; done`
- Skip to the next iteration from within a nested loop:
`for i in {1..3}; do while :; do continue 2; done; done`
`for i in {{{1..3}}}; do {{echo $i}}; while :; do continue 2; done; done`

View File

@@ -26,11 +26,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create a coprocess which repeatedly reads `stdin` and runs some commands on the input:
`coproc {{name}} { while read line; do {{command1; command2; ...}}; done }`
`coproc {{name}} { while read {{line}}; do {{command1; command2; ...}}; done }`
- Create a coprocess which repeatedly reads `stdin`, runs a pipeline on the input, and writes the output to `stdout`:
`coproc {{name}} { while read line; do echo "$line" | {{command1 | command2 | ...}} | cat /dev/fd/0; done }`
`coproc {{name}} { while read {{line}}; do {{echo "$line"}} | {{command1 | command2 | ...}} | cat /dev/fd/0; done }`
- Create and use a coprocess running `bc`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# crontab
> Schedule cron jobs to run on a time interval for the current user.
> More information: <https://crontab.guru/>.
> More information: <https://manned.org/crontab>.
- Edit the crontab file for the current user:
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
- Sample crontab entry, which runs a certain script at 02:30 every Friday:
`30 2 * * Fri {{/absolute/path/to/script.sh}}`
`30 2 * * Fri /{{path/to/script.sh}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cryfs
> A cryptographic filesystem for the cloud.
> More information: <https://www.cryfs.org/>.
> More information: <https://manned.org/cryfs>.
- Mount an encrypted filesystem. The initialization wizard will be started on the first execution:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ctags
> Generate an index (or tag) file of language objects found in source files for many popular programming languages.
> More information: <https://ctags.io/>.
> More information: <https://docs.ctags.io/en/latest/man/ctags.1.html>.
- Generate tags for a single file, and output them to a file named "tags" in the current directory, overwriting the file if it exists:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dcfldd
> Enhanced version of dd for forensics and security.
> More information: <https://dcfldd.sourceforge.net/>.
> More information: <https://manned.org/dcfldd>.
- Copy a disk to a raw image file and hash the image using SHA256:

View File

@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
- Print a function definition:
`declare -f {{function_name}}`
- Print a variable definition:
`declare -p {{variable_name}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# devcontainer
> Use a Docker container as a development environment.
> More information: <https://containers.dev/>.
> More information: <https://containers.dev/implementors/reference/>.
- Create and run a Dev Container:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dillo
> A lightweight web browser intended for slow computers.
> More information: <https://www.dillo.org/>.
> More information: <https://manned.org/dillo>.
- Launch Dillo:

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run command in a new container with bind mounted volumes:
`docker run {{[-v|--volume]}} {{/path/to/host_path}}:{{/path/to/container_path}} {{image}} {{command}}`
`docker run {{[-v|--volume]}} /{{path/to/host_path}}:/{{path/to/container_path}} {{image}} {{command}}`
- Run command in a new container with published ports:

View File

@@ -11,15 +11,15 @@ source: https://github.com/tldr-pages/tldr.git
- Initialize or mount an encrypted filesystem:
`encfs {{/path/to/cipher_dir}} {{/path/to/mount_point}}`
`encfs /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
- Initialize an encrypted filesystem with standard settings:
`encfs --standard {{/path/to/cipher_dir}} {{/path/to/mount_point}}`
`encfs --standard /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
- Run encfs in the foreground instead of spawning a daemon:
`encfs -f {{/path/to/cipher_dir}} {{/path/to/mount_point}}`
`encfs -f /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
- Mount an encrypted snapshot of a plain directory:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Substitutes environment variables with their value in shell format strings.
> Variables to be replaced should be in either `${var}` or `$var` format.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html>.
> More information: <https://www.gnu.org/software/gettext/manual/gettext.html#envsubst-Invocation>.
- Replace environment variables in `stdin` and output to `stdout`:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create an Electrode Native container:
`ern create-container --miniapps {{/path/to/miniapp_directory}} --platform {{ios|android}}`
`ern create-container --miniapps /{{path/to/miniapp_directory}} --platform {{ios|android}}`
- Publish an Electrode Native container to a local Maven repository:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# esbuild
> JavaScript bundler and minifier built for speed.
> More information: <https://esbuild.github.io/>.
> More information: <https://esbuild.github.io/api/#general-options>.
- Bundle a JavaScript application and print to `stdout`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# espanso
> Cross-platform Text Expander written in Rust.
> More information: <https://espanso.org>.
> More information: <https://espanso.org/docs/command%20lIne/cli_list/>.
- Check status:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new IAM role:
`cat {{/path/to/policy.json}} | exo iam role create {{iam_role_name}} --editable --policy -`
`cat {{path/to/policy.json}} | exo iam role create {{iam_role_name}} --editable --policy -`
- Show the policy of an existing IAM role:
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Update the default Organization policy (the default Organization policy will be applied to all of the API keys within the Organization):
`cat {{/path/to/policy.json}} | exo iam org-policy update -`
`cat {{path/to/policy.json}} | exo iam org-policy update -`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# flake8
> Check the style and quality of Python code.
> More information: <https://flake8.pycqa.org/>.
> More information: <https://flake8.pycqa.org/en/latest/user/options.html>.
- Lint a file or directory recursively:
@@ -16,9 +16,9 @@ source: https://github.com/tldr-pages/tldr.git
`flake8 --show-source {{path/to/file_or_directory}}`
- Lint a file or directory recursively and ignore a list of rules. (All available rules can be found at flake8rules.com):
- Lint a file or directory recursively and ignore a list of rules. (All available rules can be found at <https://www.flake8rules.com/>):
`flake8 --ignore {{rule1,rule2}} {{path/to/file_or_directory}}`
`flake8 --ignore {{rule1,rule2,...}} {{path/to/file_or_directory}}`
- Lint a file or directory recursively but exclude files matching the given globs or substrings:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Distributed version control system.
> Some subcommands such as `commit` have their own usage documentation.
> More information: <https://fossil-scm.org/>.
> More information: <https://fossil-scm.org/home/help>.
- Execute a Fossil subcommand:

View File

@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new version containing all the changes in the current checkout; user will be prompted for a comment:
`fossil commit`
`fossil {{[ci|commit]}}`
- Create a new version containing all the changes in the current checkout, using the specified [m]essage:
`fossil commit {{[-m|--comment]}} "{{comment}}"`
`fossil {{[ci|commit]}} {{[-m|--comment]}} "{{comment}}"`
- Create a new version containing all the changes in the current checkout with a comment read from a specific file:
`fossil commit {{[-M|--message-file]}} {{path/to/commit_message_file}}`
`fossil {{[ci|commit]}} {{[-M|--message-file]}} {{path/to/commit_message_file}}`
- Create a new version containing changes from the specified files; user will be prompted for a comment:
`fossil commit {{path/to/file1 path/to/file2 ...}}`
`fossil {{[ci|commit]}} {{path/to/file1 path/to/file2 ...}}`

View File

@@ -5,8 +5,18 @@ source: https://github.com/tldr-pages/tldr.git
---
# fossil delete
> This command is an alias of `fossil rm`.
> Remove files or directories from Fossil version control.
> See also: `fossil forget`.
> More information: <https://fossil-scm.org/home/help/rm>.
- View documentation for the original command:
- Remove a file or directory from Fossil version control:
`tldr fossil rm`
`fossil {{[rm|delete]}} {{path/to/file_or_directory}}`
- Remove a file or directory from Fossil version control, and also delete it from the disk:
`fossil {{[rm|delete]}} --hard {{path/to/file_or_directory}}`
- Re-add all previously removed and uncommitted files to Fossil version control:
`fossil {{[rm|delete]}} --reset`

View File

@@ -5,18 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# fossil rm
> Remove files or directories from Fossil version control.
> See also: `fossil forget`.
> More information: <https://fossil-scm.org/home/help/rm>.
> This command is an alias of `fossil delete`.
- Remove a file or directory from Fossil version control:
- View documentation for the original command:
`fossil rm {{path/to/file_or_directory}}`
- Remove a file or directory from Fossil version control, and also delete it from the disk:
`fossil rm --hard {{path/to/file_or_directory}}`
- Re-add all previously removed and uncommitted files to Fossil version control:
`fossil rm --reset`
`tldr fossil delete`

View File

@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create a `.desktop` file named `app`:
`gendesk -n --name "{{app}}" --exec "{{/path/to/app}}" --icon "{{/path/to/icon.png}}" --comment "{{This is application}}"`
`gendesk -n --name "{{app}}" --exec "/{{path/to/app}}" --icon "/{{path/to/icon.png}}" --comment "{{This is application}}"`
- Create a `.desktop` file named `app`, do not display any output, and overwrite it if it exists:
`gendesk -q -f -n --name "{{app}}" --exec "{{/path/to/app}}" --icon "{{/path/to/icon.png}}" --comment "{{This is application}}"`
`gendesk -q -f -n --name "{{app}}" --exec "/{{path/to/app}}" --icon "/{{path/to/icon.png}}" --comment "{{This is application}}"`
- Display help:

View File

@@ -9,21 +9,25 @@ source: https://github.com/tldr-pages/tldr.git
> This command does not support longform options and thus using `getopt` is recommended instead.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-getopts>.
- Check if an option is set:
- Check if an option is the first set option in the current context:
`getopts {{x}} {{opt}}; echo $opt`
`getopts {{x}} {{opt}}; echo ${{opt}}`
- Set an option to require an argument and check said argument:
- Check if an option is set in a string (specified option must be the first element of the string):
`getopts {{x}}: {{opt}}; echo $OPTARG`
`getopts {{x}} {{opt}} "{{string text}}"; echo ${{opt}}`
- Set an option to require an argument and print them:
`getopts {{x}}: {{opt}}; echo ${{opt}} $OPTARG`
- Check for multiple options:
`while getopts {{xyz}} {{opt}}; do case $opt in x) echo x is set;; y) echo y is set;; z) echo z is set;; esac; done`
`while getopts {{xyz}} {{opt}}; do case ${{opt}} in x) {{echo x is set}};; y) {{echo y is set}};; z) {{echo z is set}};; esac; done`
- Set `getopts` to silent mode and handle option errors:
`while getopts :{{x:}} {{opt}}; do case $opt in x) ;; :) echo "Argument required";; ?) echo "Invalid argument" esac;; done`
`while getopts :{{x:}} {{opt}}; do case ${{opt}} in x) ;; :) {{echo "Argument required"}};; ?) {{echo "Invalid argument"}} esac;; done`
- Reset `getopts`:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Translates a string using stored translations in a compiled `.mo` file.
> Translations are stored in `/usr/share/locale/<locale_name>/LC_MESSAGES/` with `domain` being the filename without its extension.
> See also: `msgfmt`, `msgunfmt`.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/gettext-Invocation.html>.
> More information: <https://www.gnu.org/software/gettext/manual/gettext.html#gettext-Invocation>.
- Get the translation of a string as specified in the domain file (falls back to given `msgid` if no translation exists):

View File

@@ -24,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git
`git blame {{commit}}~ {{path/to/file}}`
- Jump to the parent of a specific commit and track a specific text and 10 of its following lines:
`git blame -L '/{{text}}/',+10 {{a82812aa}}^ tldr.py`
- Print author name and commit hash information for a specific line range:
`git blame -L {{start_line}},{{end_line}} {{path/to/file}}`

View File

@@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
- Register a workspace for bulk operations:
`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/repository}}`
`git bulk --addworkspace {{workspace_name}} /{{path/to/repository}}`
- Clone a repository inside a specific directory, then register the repository as a workspace:
`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/parent_directory}} --from {{remote_repository_location}}`
`git bulk --addworkspace {{workspace_name}} /{{path/to/parent_directory}} --from {{remote_repository_location}}`
- Clone repositories from a newline-separated list of remote locations, then register them as workspaces:
`git bulk --addworkspace {{workspace_name}} {{/path/to/root/directory}} --from {{/path/to/file}}`
`git bulk --addworkspace {{workspace_name}} /{{path/to/root/directory}} --from /{{path/to/file}}`
- List all registered workspaces:

View File

@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Export a copy of the entire tree at the last commit to the specified directory (the trailing slash is important):
`git checkout-index {{[-a|--all]}} {{[-f|--force]}} --prefix {{path/to/export_directory/}}`
`git checkout-index {{[-a|--all]}} {{[-f|--force]}} --prefix {{path/to/export_directory}}/`

View File

@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
- Add a Git repository as a subtree:
`git subtree add {{[-P|--prefix]}} {{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`
`git subtree add {{[-P|--prefix]}} {{path/to/directory}}/ --squash {{repository_url}} {{branch_name}}`
- Update subtree repository to its latest commit:
`git subtree pull {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{branch_name}}`
`git subtree pull {{[-P|--prefix]}} {{path/to/directory}}/ {{repository_url}} {{branch_name}}`
- Merge recent changes up to the latest subtree commit into the subtree:
`git subtree merge {{[-P|--prefix]}} {{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`
`git subtree merge {{[-P|--prefix]}} {{path/to/directory}}/ --squash {{repository_url}} {{branch_name}}`
- Push commits to a subtree repository:
`git subtree push {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{branch_name}}`
`git subtree push {{[-P|--prefix]}} {{path/to/directory}}/ {{repository_url}} {{branch_name}}`
- Extract a new project history from the history of a subtree:
`git subtree split {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{[-b|--branch]}} {{branch_name}}`
`git subtree split {{[-P|--prefix]}} {{path/to/directory}}/ {{repository_url}} {{[-b|--branch]}} {{branch_name}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gnuplot
> A graph plotter that outputs in several formats.
> More information: <http://www.gnuplot.info/>.
> More information: <https://manned.org/gnuplot>.
- Start the interactive graph plotting shell:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage Go source code.
> Some subcommands such as `build` have their own usage documentation.
> More information: <https://go.dev/>.
> More information: <https://pkg.go.dev/cmd/go>.
- Download and install a package, specified by its import path:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# godoc
> View documentation for go packages.
> More information: <https://godoc.org/>.
> More information: <https://pkg.go.dev/golang.org/x/tools/cmd/godoc>.
- Display help for a specific package:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# godot
> An open source 2D and 3D game engine.
> More information: <https://godotengine.org/>.
> More information: <https://docs.godotengine.org/en/latest/tutorials/editor/command_line_tutorial.html>.
- Run a project if the current directory contains a `project.godot` file, otherwise open the project manager:

View File

@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
- Perform a combination attack (mode 1) using the concatenation of words from two different custom dictionaries:
`hashcat --hash-type {{hash_type_id}} --attack-mode {{1}} {{hash_value}} {{/path/to/dictionary1.txt}} {{/path/to/dictionary2.txt}}`
`hashcat --hash-type {{hash_type_id}} --attack-mode {{1}} {{hash_value}} /{{path/to/dictionary1.txt}} /{{path/to/dictionary2.txt}}`
- Show result of an already cracked hash:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# haxelib
> Haxe Library Manager.
> More information: <https://lib.haxe.org/>.
> More information: <https://lib.haxe.org/documentation/using-haxelib/>.
- Search for a Haxe library:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hello
> Print "Hello, world!", "hello, world" or a customizable text.
> More information: <https://www.gnu.org/software/hello/manual/html_node/Invoking-hello.html>.
> More information: <https://www.gnu.org/software/hello/manual/hello.html#Invoking-hello>.
- Print "Hello, world!":

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A package manager for Kubernetes.
> Some subcommands such as `install` have their own usage documentation.
> More information: <https://helm.sh/>.
> More information: <https://helm.sh/docs/helm/>.
- Create a helm chart:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# heroku
> Create and manage Heroku apps.
> More information: <https://www.heroku.com/>.
> More information: <https://devcenter.heroku.com/articles/heroku-cli#get-started-with-the-heroku-cli>.
- Log in to your Heroku account:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hexo
> A fast, simple & powerful blog framework.
> More information: <https://hexo.io/>.
> More information: <https://hexo.io/docs/commands>.
- Initialize a website:

View File

@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# history
> Command-line history.
> More information: <https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html#index-history>.
> Manage command-line history.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-history>.
- Display the commands history list with line numbers:
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- [d]elete the history entry at the specified offset:
`history -d {{offset}}`
- Add a command to history without running it:
`history -s {{command}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# htop
> Display dynamic real-time information about running processes. An enhanced version of `top`.
> More information: <https://htop.dev/>.
> More information: <https://manned.org/htop>.
- Start `htop`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Template-based static site generator. Uses modules, components, and themes.
> Some subcommands such as `server` have their own usage documentation.
> More information: <https://gohugo.io>.
> More information: <https://gohugo.io/commands/>.
- Create a new Hugo site:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> IFS (Internal Field Separator) is a special environment variable that defines the delimiter used for word splitting in Unix shells.
> The default value of IFS is a space, tab, and newline. The three characters serve as delimiters.
> More information: <https://www.gnu.org/software/bash/manual/html_node/Word-Splitting.html>.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Word-Splitting>.
- View the current IFS value:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Generate documentation for Java source code and save the result in a directory:
`javadoc -d {{path/to/directory/}} {{path/to/java_source_code}}`
`javadoc -d {{path/to/directory}}/ {{path/to/java_source_code}}`
- Generate documentation with a specific encoding:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Execute a specific expression only using the `jq` binary (print a colored and formatted JSON output):
`jq '.' {{/path/to/file.json}}`
`jq '.' /{{path/to/file.json}}`
- Execute a specific script:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- List the contents of a folder:
`keepassxc-cli ls {{path/to/database_file}} {{/path/to/directory}}`
`keepassxc-cli ls {{path/to/database_file}} /{{path/to/directory}}`
- Add an entry with an auto-generated password:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kismet
> A wireless network and device detector, sniffer, wardriving tool, and WIDS (wireless intrusion detection) framework.
> More information: <https://www.kismetwireless.net/>.
> More information: <https://www.kismetwireless.net/docs/readme/starting/commandline/>.
- Capture packets from a specific wireless interface:

View File

@@ -9,18 +9,26 @@ source: https://github.com/tldr-pages/tldr.git
> Create and update resources in a cluster.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply>.
- Apply a configuration to a resource by file name or `stdin`:
- Apply a configuration to a resource by file name:
`kubectl apply {{[-f|--filename]}} {{resource_filename}}`
`kubectl apply {{[-f|--filename]}} {{path/to/filename}}`
- Apply a configuration to a resource from `kustomization.yaml` in a directory:
`kubectl apply {{[-k|--kustomize]}} {{path/to/directory}}`
- Apply a configuration to a resource by `stdin`:
`{{cat pod.json}} | kubectl apply {{[-f|--filename]}} -`
- Edit the latest last-applied-configuration annotations of resources from the default editor:
`kubectl apply edit-last-applied {{[-f|--filename]}} {{resource_filename}}`
`kubectl apply edit-last-applied {{[-f|--filename]}} {{path/to/filename}}`
- Set the latest last-applied-configuration annotations by setting it to match the contents of a file:
`kubectl apply set-last-applied {{[-f|--filename]}} {{resource_filename}}`
`kubectl apply set-last-applied {{[-f|--filename]}} {{path/to/filename}}`
- View the latest last-applied-configuration annotations by type/name or file:
`kubectl apply view-last-applied {{[-f|--filename]}} {{resource_filename}}`
`kubectl apply view-last-applied {{[-f|--filename]}} {{path/to/filename}}`

View File

@@ -22,6 +22,10 @@ source: https://github.com/tldr-pages/tldr.git
`kubectl config current-context`
- Set the default namespace of the current context:
`kubectl config set-context --current --namespace {{namespace}}`
- Switch to another context:
`kubectl config {{use|use-context}} {{context_name}}`

View File

@@ -8,17 +8,21 @@ source: https://github.com/tldr-pages/tldr.git
> Edit Kubernetes resources.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#edit>.
- Edit a pod:
- Edit a pod in the default namespace:
`kubectl edit pod/{{pod_name}}`
`kubectl edit {{[po|pod]}}/{{pod_name}}`
- Edit a deployment:
- Edit a deployment in the default namespace:
`kubectl edit deployment/{{deployment_name}}`
`kubectl edit {{[deploy|deployment]}}/{{deployment_name}}`
- Edit a service:
- Edit a service in the default namespace:
`kubectl edit svc/{{service_name}}`
`kubectl edit {{[svc|service]}}/{{service_name}}`
- Edit all entries of a given resource in a given namespace:
`kubectl edit {{resource}} {{[-n|--namespace]}} {{namespace}}`
- Edit a resource using a specific editor:

13
tldr/kubectl-exec Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl exec
> Execute a command in a container.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#exec>.
- Open Bash in a pod, using the first container by default:
`kubectl exec {{pod_name}} {{-it|--stdin --tty]}} -- bash`

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Label a pod:
`kubectl label pod {{pod_name}} {{key}}={{value}}`
`kubectl label {{[po|pod]}} {{pod_name}} {{key}}={{value}}`
- Update a pod label by overwriting the existing value:
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Label all pods in the namespace:
`kubectl label pods --all {{key}}={{value}}`
`kubectl label {{[po|pods]}} --all {{key}}={{value}}`
- Label a pod identified by the pod definition file:
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Remove the label from a pod:
`kubectl label pod {{pod_name}} {{key}}-`
`kubectl label {{[po|pod]}} {{pod_name}} {{key}}-`

View File

@@ -5,21 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# libreoffice
> CLI for the powerful and free office suite LibreOffice.
> More information: <https://www.libreoffice.org/>.
> This command is an alias of `soffice`.
- Open one or more files in read-only mode:
- View documentation for the original command:
`libreoffice --view {{path/to/file1 path/to/file2 ...}}`
- Display the content of one or more files:
`libreoffice --cat {{path/to/file1 path/to/file2 ...}}`
- Print files using a specific printer:
`libreoffice --pt {{printer_name}} {{path/to/file1 path/to/file2 ...}}`
- Convert all `.doc` files in current directory to PDF:
`libreoffice --convert-to pdf *.doc`
`tldr soffice`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# linkchecker
> Client to check HTML documents and websites for broken links.
> More information: <https://linkchecker.github.io/linkchecker/>.
> More information: <https://linkchecker.github.io/linkchecker/man/linkchecker.html>.
- Find broken links on <https://example.com/>:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set a profile to audit mode from a specific directory:
`sudo aa-audit {{[-d|--dir]}} {{/path/to/profiles}} {{profile_name}}`
`sudo aa-audit {{[-d|--dir]}} /{{path/to/profiles}} {{profile_name}}`
- Force audit mode even if already applied:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Specify the directory containing profiles:
`sudo aa-cleanprof {{[-d|--dir]}} {{/path/to/profiles}} {{profile_name}}`
`sudo aa-cleanprof {{[-d|--dir]}} /{{path/to/profiles}} {{profile_name}}`
- Run silently without prompts:

View File

@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
- Specify a custom directory for profiles:
`sudo aa-genprof {{[-d|--dir]}} {{/path/to/profiles}} {{program_path}}`
`sudo aa-genprof {{[-d|--dir]}} /{{path/to/profiles}} {{program_path}}`
- Specify a custom logfile for profiling:
`sudo aa-genprof {{[-f|--file]}} {{/path/to/logfile}} {{program_path}}`
`sudo aa-genprof {{[-f|--file]}} /{{path/to/logfile}} {{program_path}}`
- Display help:

View File

@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
- Use a specific directory for AppArmor profiles:
`sudo aa-logprof {{[-d|--dir]}} {{/path/to/profiles}}`
`sudo aa-logprof {{[-d|--dir]}} /{{path/to/profiles}}`
- Use a specific log file instead of the default:
`sudo aa-logprof {{[-f|--file]}} {{/path/to/logfile}}`
`sudo aa-logprof {{[-f|--file]}} /{{path/to/logfile}}`
- Ignore all log entries before the specified mark:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Merge profile files into a specific directory:
`sudo aa-mergeprof {{[-d|--dir]}} {{/path/to/profiles}} {{file1 file2 ...}}`
`sudo aa-mergeprof {{[-d|--dir]}} /{{path/to/profiles}} {{file1 file2 ...}}`
- Display help:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Automatic Bug Reporting Tool for Fedora-based systems.
> Used to detect, analyze, and report application crashes.
> More information: <https://abrt.readthedocs.io/>.
> More information: <https://abrt.readthedocs.io/en/latest/usage.html>.
- List detected problems:

View File

@@ -32,4 +32,4 @@ source: https://github.com/tldr-pages/tldr.git
- Change the root directory and write a specific fake host into the `utmp` file:
`agetty {{[-r|--chroot]}} {{/path/to/root_directory}} {{[-H|--host]}} {{fake_host}} -`
`agetty {{[-r|--chroot]}} /{{path/to/root_directory}} {{[-H|--host]}} {{fake_host}} -`

Some files were not shown because too many files have changed in this diff Show More