diff --git a/tldr/! b/tldr/! index 4b09370a..a9ddefff 100644 --- a/tldr/! +++ b/tldr/! @@ -31,3 +31,11 @@ source: https://github.com/tldr-pages/tldr.git - Substitute with the last argument of the latest command: `{{command}} !$` + +- Substitute with the last command but without the last argument: + +`!:-` + +- Print last command that starts with a string without executing it: + +`!{{string}}:p` diff --git a/tldr/adb-devices b/tldr/adb-devices new file mode 100644 index 00000000..4c3841bc --- /dev/null +++ b/tldr/adb-devices @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# adb devices + +> List connected Android devices. +> More information: . + +- List devices: + +`adb devices` + +- List devices and their system info: + +`adb devices -l` diff --git a/tldr/adb-install b/tldr/adb-install index c2f65710..255e6326 100644 --- a/tldr/adb-install +++ b/tldr/adb-install @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # adb install -> Android Debug Bridge Install: push packages to an Android emulator instance or connected Android devices. +> Push packages to a connected Android device or emulator. > More information: . - Push an Android application to an emulator/device: diff --git a/tldr/adb-reverse b/tldr/adb-reverse index cde94953..339ca442 100644 --- a/tldr/adb-reverse +++ b/tldr/adb-reverse @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # adb reverse -> Android Debug Bridge Reverse: reverse socket connections from an Android emulator instance or connected Android devices. +> Reverse socket connections from a connected Android device or emulator. > More information: . - List all reverse socket connections from emulators and devices: diff --git a/tldr/adb-shell b/tldr/adb-shell index 0b42266b..cec1e412 100644 --- a/tldr/adb-shell +++ b/tldr/adb-shell @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # adb shell -> Android Debug Bridge Shell: run remote shell commands on an Android emulator instance or connected Android devices. +> Run shell commands on a connected Android device or emulator. > More information: . - Start a remote interactive shell on the emulator or device: diff --git a/tldr/duc b/tldr/duc index 18115f16..6a9e21b5 100644 --- a/tldr/duc +++ b/tldr/duc @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A collection of tools for indexing, inspecting, and visualizing disk usage. > Duc maintains a database of accumulated sizes of directories of the file system, allowing queries in this database, or creating fancy graphs to show where data is. -> More information: . +> More information: . - Index the /usr directory, writing to the default database location ~/.duc.db: diff --git a/tldr/linux/check-language-support b/tldr/linux/check-language-support index ff0296f7..2149f978 100644 --- a/tldr/linux/check-language-support +++ b/tldr/linux/check-language-support @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # check-language-support > Display a list of missing language packages on Ubuntu. -> More information: . +> More information: . - Display a list of missing language packages based on installed software and enabled locales: diff --git a/tldr/linux/dnf-config-manager b/tldr/linux/dnf-config-manager new file mode 100644 index 00000000..b46d3433 --- /dev/null +++ b/tldr/linux/dnf-config-manager @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# dnf config-manager + +> Manage DNF configuration options and repositories on Fedora-based systems. +> More information: . + +- Add (and enable) a repository from a URL: + +`dnf config-manager --add-repo={{repository_url}}` + +- Print current configuration values: + +`dnf config-manager --dump` + +- Enable a specific repository: + +`dnf config-manager --set-enabled {{repository_id}}` + +- Disable specified repositories: + +`dnf config-manager --set-disabled {{repository_id1 repository_id2 ...}}` + +- Set a configuration option for a repository: + +`dnf config-manager --setopt={{option}}={{value}}` + +- Display help: + +`dnf config-manager --help-cmd` diff --git a/tldr/linux/do-release-upgrade b/tldr/linux/do-release-upgrade index 45ba1226..83a9cbcf 100644 --- a/tldr/linux/do-release-upgrade +++ b/tldr/linux/do-release-upgrade @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # do-release-upgrade > The Ubuntu release upgrader. -> More information: . +> More information: . - Upgrade to the latest release: diff --git a/tldr/linux/duc b/tldr/linux/duc index 073e0038..9fd2621b 100644 --- a/tldr/linux/duc +++ b/tldr/linux/duc @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A collection of tools for indexing, inspecting and visualizing disk usage. > Duc maintains a database of accumulated sizes of directories in the file system, allowing to query this database, or creating fancy graphs to show where data is. -> More information: . +> More information: . - Index the `/usr` directory, writing to the default database location `~/.duc.db`: diff --git a/tldr/linux/gpclient b/tldr/linux/gpclient new file mode 100644 index 00000000..3d929ead --- /dev/null +++ b/tldr/linux/gpclient @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# gpclient + +> Connect to a GlobalProtect VPN on Linux via OpenConnect. +> More information: . + +- Connect to a GlobalProtect VPN using a portal server: + +`gpclient connect {{vpn_gateway_url}}` + +- Disconnect from the currently connected VPN server: + +`gpclient disconnect` + +- Launch the graphical user interface (GUI) for VPN management: + +`gpclient launch-gui` + +- Use OpenSSL workaround to bypass legacy renegotiation errors: + +`gpclient connect --fix-openssl {{vpn_gateway_url}}` + +- Ignore TLS errors during connection: + +`gpclient connect --ignore-tls-errors {{vpn_gateway_url}}` + +- Display version: + +`gpclient --version` + +- Display help for any command: + +`gpclient help {{command}}` diff --git a/tldr/linux/pro b/tldr/linux/pro index 98861206..853795db 100644 --- a/tldr/linux/pro +++ b/tldr/linux/pro @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pro > Manage Ubuntu Pro services. -> More information: . +> More information: . - Connect your system to the Ubuntu Pro support contract: diff --git a/tldr/linux/virt-manager b/tldr/linux/virt-manager index b0094f9f..d70c08ec 100644 --- a/tldr/linux/virt-manager +++ b/tldr/linux/virt-manager @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # virt-manager > A desktop user interface for managing KVM and Xen virtual machines and LXC containers. -> More information: . +> More information: . - Launch the GUI: diff --git a/tldr/linux/yum-config-manager b/tldr/linux/yum-config-manager new file mode 100644 index 00000000..ed15b409 --- /dev/null +++ b/tldr/linux/yum-config-manager @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# yum config-manager + +> This command is an alias of `dnf config-manager`. + +- View documentation for the original command: + +`tldr dnf config-manager` diff --git a/tldr/mkfifo b/tldr/mkfifo index a2d88c2c..fc2aa954 100644 --- a/tldr/mkfifo +++ b/tldr/mkfifo @@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Receive data through a named pipe: `cat {{path/to/pipe}}` + +- Share your terminal session in real-time: + +`mkfifo {{path/to/pipe}}; script -f {{path/to/pipe}}` diff --git a/tldr/nice b/tldr/nice index 133fdbe7..2fcb6ea9 100644 --- a/tldr/nice +++ b/tldr/nice @@ -11,4 +11,8 @@ source: https://github.com/tldr-pages/tldr.git - Launch a program with altered priority: -`nice -n {{niceness_value}} {{command}}` +`nice -{{niceness_value}} {{command}}` + +- Define the priority with an explicit option: + +`nice {{-n|--adjustment}} {{niceness_value}} {{command}}` diff --git a/tldr/npm-run-script b/tldr/npm-run-script new file mode 100644 index 00000000..cff32ea1 --- /dev/null +++ b/tldr/npm-run-script @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm run-script + +> This command is an alias of `npm run`. + +- View documentation for the original command: + +`tldr npm run` diff --git a/tldr/pandoc b/tldr/pandoc index 2f498721..b5aee03b 100644 --- a/tldr/pandoc +++ b/tldr/pandoc @@ -12,14 +12,14 @@ source: https://github.com/tldr-pages/tldr.git `pandoc {{input.md}} -o {{output.pdf}}` +- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.): + +`pandoc {{input.md}} -s -o {{output.html}}` + - Force conversion to use a specific format: `pandoc {{input.docx}} --to {{gfm}} -o {{output.md}}` -- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.): - -`pandoc {{input.md}} -s -o {{output.tex}}` - - List all supported input formats: `pandoc --list-input-formats` diff --git a/tldr/pulumi-stack b/tldr/pulumi-stack new file mode 100644 index 00000000..838424a3 --- /dev/null +++ b/tldr/pulumi-stack @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pulumi stack + +> Manage stacks and view stack state. +> More information: . + +- Create a new stack: + +`pulumi stack init {{stack_name}}` + +- View the stack state: + +`pulumi stack` + +- List known stacks: + +`pulumi stack ls` + +- Select an active stack: + +`pulumi stack select {{stack_name}}` + +- Show stack outputs, including secrets, in plaintext: + +`pulumi stack output --show-secrets` + +- Export the stack state to a JSON file: + +`pulumi stack export --file {{path/to/file.json}}` + +- Display help: + +`pulumi stack --help` diff --git a/tldr/runsv b/tldr/runsv index c6b322d1..0c7798ae 100644 --- a/tldr/runsv +++ b/tldr/runsv @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # runsv > Start and manage a runit service. -> More information: . +> More information: . - Start a runit service as the current user: diff --git a/tldr/runsvchdir b/tldr/runsvchdir index 4f2cd4c8..5f790676 100644 --- a/tldr/runsvchdir +++ b/tldr/runsvchdir @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # runsvchdir > Change the directory `runsvdir` uses by default. -> More information: . +> More information: . - Switch `runsvdir` directories: diff --git a/tldr/runsvdir b/tldr/runsvdir index 5c278449..f186667c 100644 --- a/tldr/runsvdir +++ b/tldr/runsvdir @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # runsvdir > Run an entire directory of services. -> More information: . +> More information: . - Start and manage all services in a directory as the current user: diff --git a/tldr/set b/tldr/set index 801e048e..b92221d0 100644 --- a/tldr/set +++ b/tldr/set @@ -24,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git `set -o {{vi}}` +- Return to default mode: + +`set -o {{emacs}}` + - Exit the shell when (some) commands fail: `set -e` diff --git a/tldr/sv b/tldr/sv index 25fb1861..642fa2f8 100644 --- a/tldr/sv +++ b/tldr/sv @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sv > Control a running runsv service. -> More information: . +> More information: . - Start a service: