diff --git a/tldr/azurite b/tldr/azurite index feae1e41..41022285 100644 --- a/tldr/azurite +++ b/tldr/azurite @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Azure Storage API compatible server (emulator) in local environment. > More information: . -- Use an existing [l]ocation as workspace path: +- Use an existing location as workspace path: `azurite {{-l|--location}} {{path/to/directory}}` @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `azurite {{-s|--silent}}` -- Enable [d]ebug log by providing a file path as log destination: +- Enable debug log by providing a file path as log destination: `azurite {{-d|--debug}} {{path/to/debug.log}}` diff --git a/tldr/diff b/tldr/diff index c990b58b..da8ec87f 100644 --- a/tldr/diff +++ b/tldr/diff @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `diff {{old_file}} {{new_file}}` -- Compare files, ignoring [w]hite spaces: +- Compare files, ignoring white spaces: `diff {{-w|--ignore-all-space}} {{old_file}} {{new_file}}` @@ -20,11 +20,11 @@ source: https://github.com/tldr-pages/tldr.git `diff {{-y|--side-by-side}} {{old_file}} {{new_file}}` -- Compare files, showing the differences in [u]nified format (as used by `git diff`): +- Compare files, showing the differences in unified format (as used by `git diff`): `diff {{-u|--unified}} {{old_file}} {{new_file}}` -- Compare directories [r]ecursively (shows names for differing files/directories as well as changes made to files): +- Compare directories recursively (shows names for differing files/directories as well as changes made to files): `diff {{-r|--recursive}} {{old_directory}} {{new_directory}}` diff --git a/tldr/gcal b/tldr/gcal index b5593a9e..2b264ee8 100644 --- a/tldr/gcal +++ b/tldr/gcal @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Display calendar for the month of February of the year 2010: -`gcal {{2}} {{2010}}` +`gcal 2 2010` - Provide calendar sheet with week numbers: @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Change starting day of week to 1st day of the week (Monday): -`gcal --starting-day={{1}}` +`gcal --starting-day=1` - Display the previous, current and next month surrounding today: diff --git a/tldr/git-archive b/tldr/git-archive index e5c710ad..4ff08552 100644 --- a/tldr/git-archive +++ b/tldr/git-archive @@ -12,11 +12,11 @@ source: https://github.com/tldr-pages/tldr.git `git archive --verbose HEAD` -- Use the Zip format and report progress [v]erbosely: +- Use the Zip format and report progress verbosely: `git archive {{-v|--verbose}} --format zip HEAD` -- [o]utput the Zip archive to a specific file: +- Output the Zip archive to a specific file: `git archive -v {{-o|--output}} {{path/to/file.zip}} HEAD` diff --git a/tldr/kubectl-logs b/tldr/kubectl-logs index 01f772bd..b7c43044 100644 --- a/tldr/kubectl-logs +++ b/tldr/kubectl-logs @@ -24,10 +24,6 @@ source: https://github.com/tldr-pages/tldr.git `kubectl logs --follow {{pod_name}}` -- Stream logs for a specified container in a pod: - -`kubectl logs --follow --container {{container_name}} {{pod_name}}` - - Show pod logs newer than a relative time like `10s`, `5m`, or `1h`: `kubectl logs --since={{relative_time}} {{pod_name}}` @@ -35,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git - Show the 10 most recent logs in a pod: `kubectl logs --tail={{10}} {{pod_name}}` + +- Show all pod logs for a given deployment: + +`kubectl logs deployment/{{deployment_name}}` diff --git a/tldr/kubectx b/tldr/kubectx index 0607376a..d6789f19 100644 --- a/tldr/kubectx +++ b/tldr/kubectx @@ -20,6 +20,14 @@ source: https://github.com/tldr-pages/tldr.git `kubectx -` +- Rename a named context: + +`kubectx {{alias}}={{name}}` + +- Show the current named context: + +`kubectx -c` + - Delete a named context: `kubectx -d {{name}}` diff --git a/tldr/linux/agetty b/tldr/linux/agetty index 6f85dc90..4429bd73 100644 --- a/tldr/linux/agetty +++ b/tldr/linux/agetty @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git `agetty {{tty}} {{115200}}` -- Assume `stdin` is already connected to a `tty` and set a [t]imeout for the login: +- Assume `stdin` is already connected to a `tty` and set a timeout for the login: `agetty {{-t|--timeout}} {{timeout_in_seconds}} -` @@ -22,14 +22,14 @@ source: https://github.com/tldr-pages/tldr.git `agetty -8 - {{term_var}}` -- Skip the login ([n]o login) and invoke, as root, another [l]ogin program instead of `/bin/login`: +- Skip the login (no login) and invoke, as root, another login program instead of `/bin/login`: `agetty {{-n|--skip-login}} {{-l|--login-program}} {{login_program}} {{tty}}` -- Do not display the pre-login ([i]ssue) file (`/etc/issue` by default) before writing the login prompt: +- Do not display the pre-login (issue) file (`/etc/issue` by default) before writing the login prompt: `agetty {{-i|--noissue}} -` -- Change the [r]oot directory and write a specific fake [H]ost into the `utmp` file: +- 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}} -` diff --git a/tldr/linux/blkpr b/tldr/linux/blkpr index 48839b1a..103f5fc8 100644 --- a/tldr/linux/blkpr +++ b/tldr/linux/blkpr @@ -8,22 +8,22 @@ source: https://github.com/tldr-pages/tldr.git > Register, reserve, release, preempt, and clear persistent reservations on a block device that supports Persistent Reservations. > More information: . -- Register ([c]ommand) a new reservation with a given [k]ey on a given device: +- Register (command) a new reservation with a given key on a given device: -`blkpr {{-c|--command}} register --key {{reservation_key}} {{path/to/device}}` +`blkpr {{-c|--command}} register {{-k|--key}} {{reservation_key}} {{path/to/device}}` -- Set the [t]ype of an existing reservation to exclusive access: +- Set the type of an existing reservation to exclusive access: -`blkpr -c reserve -k {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}` +`blkpr -c reserve {{-k|--key}} {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}` -- Preempt the existing reservation with a given [K]ey and replace it with a new reservation: +- Preempt the existing reservation with a given key and replace it with a new reservation: -`blkpr -c preempt {{-K|--oldkey}} {{old_key}} --key {{new_key}} -t write-exclusive {{path/to/device}}` +`blkpr -c preempt {{-K|--oldkey}} {{old_key}} {{-k|--key}} {{new_key}} {{-t|--type}} write-exclusive {{path/to/device}}` -- Release a reservation with a given [k]ey and [t]ype on a given device: +- Release a reservation with a given key and type on a given device: -`blkpr -c release --key {{reservation_key}} -t {{reservation_type}} {{path/to/device}}` +`blkpr -c release {{-k|--key}} {{reservation_key}} {{-t|--type}} {{reservation_type}} {{path/to/device}}` - Clear all reservations from a given device: -`blkpr -c clear -k {{key}} {{path/to/device}}` +`blkpr -c clear {{-k|--key}} {{key}} {{path/to/device}}` diff --git a/tldr/linux/kill b/tldr/linux/kill index 0d2105ad..01b91650 100644 --- a/tldr/linux/kill +++ b/tldr/linux/kill @@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - List signal values and their corresponding names (to be used without the `SIG` prefix): -`kill -{{L|-table}}` +`kill {{-L|--table}}` - Terminate a background job: diff --git a/tldr/linux/pw-dot b/tldr/linux/pw-dot index 04441fde..faff4f33 100644 --- a/tldr/linux/pw-dot +++ b/tldr/linux/pw-dot @@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git `pw-dot {{-j|--json}} {{path/to/file.json}}` -- Specify an [o]utput file, showing [a]ll object types: +- Specify an [o]utput file, showing all object types: `pw-dot --output {{path/to/file.dot}} {{-a|--all}}` @@ -29,7 +29,7 @@ source: https://github.com/tldr-pages/tldr.git `pw-dot --remote {{remote_name}} {{-s|--smart}}` -- Lay the graph from [l]eft to [r]ight, instead of dot's default top to bottom: +- Lay the graph from left to right, instead of dot's default top to bottom: `pw-dot {{-L|--lr}}` diff --git a/tldr/linux/showkey b/tldr/linux/showkey index 6df1d651..077f7077 100644 --- a/tldr/linux/showkey +++ b/tldr/linux/showkey @@ -12,15 +12,15 @@ source: https://github.com/tldr-pages/tldr.git `sudo showkey` -- Display [s]cancodes in hexadecimal: +- Display scancodes in hexadecimal: `sudo showkey {{-s|--scancodes}}` -- Display [k]eycodes in decimal (default): +- Display keycodes in decimal (default): `sudo showkey {{-k|--keycodes}}` -- Display keycodes in [a]SCII, decimal, and hexadecimal: +- Display keycodes in ASCII, decimal, and hexadecimal: `sudo showkey {{-a|--ascii}}` diff --git a/tldr/pydocstyle b/tldr/pydocstyle index 407a08da..64c57ccf 100644 --- a/tldr/pydocstyle +++ b/tldr/pydocstyle @@ -12,11 +12,11 @@ source: https://github.com/tldr-pages/tldr.git `pydocstyle {{file.py|path/to/directory}}` -- Show an [e]xplanation of each error: +- Show an explanation of each error: `pydocstyle {{-e|--explain}} {{file.py|path/to/directory}}` -- Show [d]ebug information: +- Show debug information: `pydocstyle {{-d|--debug}} {{file.py|path/to/directory}}`