Add wisdoms to Cheatsheet

This commit is contained in:
Martin Blazik
2020-09-18 15:24:06 +02:00
parent c5b47b366a
commit 9f88e73c65

View File

@@ -1,18 +1,50 @@
List of popular commands and shortcuts
# List of popular commands and shortcuts
## Bash
### Previous command
```bash
# from previous comand
!0 - command itself
!^ - first argument
!$ - last argument
!* - all arguments
!! - full command
```
# Kubernetes
### 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
```
### A shell script static analysis tool
[ShellCheck](https://github.com/koalaman/shellcheck)
## Kubernetes
```bash
# ~/.kube/config
kubectl config get-contexts
kubectl config use-context <context>
```
# AWS
## AWS
```bash
aws eks update-kubeconfig --name nas
```