# List of popular commands and shortcuts ## Bash ### Previous command ```bash !0 - command itself !^ - first argument !$ - last argument !* - all arguments !! - full command ``` ### Useable commands ```bash # step back cd - sudo su ``` ### To explore ```bash ag fzf fd ``` ### Script errors ```bash set -o errexit set -o nounset set -o pipefail ``` ### Linux tldr - basic command usage usermod - modifu user account ### Tools - [ShellCheck](https://github.com/koalaman/shellcheck) A shell script static analysis tool - [direnv](https://direnv.net/) Directory specific variables ## Kubernetes ```bash # ~/.kube/config kubectl config get-contexts kubectl config use-context ``` ## AWS ```bash aws eks update-kubeconfig --name nas ```