CMD

screencapturearrow-up-right (capture images from screen)

# Take screenshot & save it to Desktop with current date as name
screencapture -ixoa -t jpg ~/"Desktop/$(date).jpg"

dockerarrow-up-right (run processes in isolated containers)

# Delete all containers
for i in $(docker ps -a -q); do docker rm $i; done

# List all containers
docker ps -a

# Remove a container after it’s stopped
docker run --rm [...]

kubectlarrow-up-right (run commands against Kubernetes clusters)

# Get info on pods in use. Has info on why they failed if they did.
kubectl describe pods

# Get services across all namespaces
kubectl get svc --all-namespaces

# Port forward the <pod> from 5432 to localhost 5300 port
kubectl port-forward <pod> 5300:5432

nix-envarrow-up-right (manipulate or query Nix user environments)

basenamearrow-up-right (strip directory and suffix from filenames)

chmodarrow-up-right (change file mode bits)

tailarrow-up-right (output the last part of files) https://www.explainshell.com/explain/tailarrow-up-right

playgoarrow-up-right (send .go file to the Go Playground)

trarrow-up-right (translate or delete characters)

diffarrow-up-right (compare files line by line)

findarrow-up-right (walk a file hierarchy)

greparrow-up-right (file pattern searcher)

manarrow-up-right (open manual pages)

sortarrow-up-right (put the lines of a text file in alphanumeric order)

PlistBuddy (read and write values to plists)

killarrow-up-right (send a signal to a process)

headarrow-up-right (output the first part of files)

tar (manipulate tape archives)

env (set environment and execute command, or print environment)

cat (concatenate and print files)

ngrokarrow-up-right (expose your localhost to the web)

rmdir (remove empty directories)

mediumexporterarrow-up-right (export medium.com articles to markdown)

file (determine file type)

time (time command execution)

Last updated