Skip to content

Commit 3e20970

Browse files
committed
Fix typos in cheatsheet.md
1 parent 20042ea commit 3e20970

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This page contains a list of commonly used `kubectl` commands and flags.
2222
### BASH
2323

2424
```bash
25-
source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first.
25+
source <(kubectl completion bash) # set up autocomplete in bash into the current shell, bash-completion package should be installed first.
2626
echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell.
2727
```
2828

@@ -36,12 +36,12 @@ complete -o default -F __start_kubectl k
3636
### ZSH
3737

3838
```bash
39-
source <(kubectl completion zsh) # setup autocomplete in zsh into the current shell
39+
source <(kubectl completion zsh) # set up autocomplete in zsh into the current shell
4040
echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> ~/.zshrc # add autocomplete permanently to your zsh shell
4141
```
42-
### A Note on --all-namespaces
42+
### A note on `--all-namespaces`
4343

44-
Appending `--all-namespaces` happens frequently enough where you should be aware of the shorthand for `--all-namespaces`:
44+
Appending `--all-namespaces` happens frequently enough where you should be aware of the shorthand for `--all-namespaces`:
4545

4646
```kubectl -A```
4747

@@ -155,7 +155,7 @@ EOF
155155

156156
```
157157

158-
## Viewing, finding resources
158+
## Viewing and finding resources
159159

160160
```bash
161161
# Get commands with basic output
@@ -346,7 +346,7 @@ kubectl exec my-pod -c my-container -- ls / # Run command in existing po
346346
kubectl top pod POD_NAME --containers # Show metrics for a given pod and its containers
347347
kubectl top pod POD_NAME --sort-by=cpu # Show metrics for a given pod and sort it by 'cpu' or 'memory'
348348
```
349-
## Copy files and directories to and from containers
349+
## Copying files and directories to and from containers
350350

351351
```bash
352352
kubectl cp /tmp/foo_dir my-pod:/tmp/bar_dir # Copy /tmp/foo_dir local directory to /tmp/bar_dir in a remote pod in the current namespace
@@ -355,7 +355,7 @@ kubectl cp /tmp/foo my-namespace/my-pod:/tmp/bar # Copy /tmp/foo local fil
355355
kubectl cp my-namespace/my-pod:/tmp/foo /tmp/bar # Copy /tmp/foo from a remote pod to /tmp/bar locally
356356
```
357357
{{< note >}}
358-
`kubectl cp` requires that the 'tar' binary is present in your container image. If 'tar' is not present,`kubectl cp` will fail.
358+
`kubectl cp` requires that the 'tar' binary is present in your container image. If 'tar' is not present, `kubectl cp` will fail.
359359
For advanced use cases, such as symlinks, wildcard expansion or file mode preservation consider using `kubectl exec`.
360360
{{< /note >}}
361361

0 commit comments

Comments
 (0)