CMD
screencapture (capture images from screen)
# Take screenshot & save it to Desktop with current date as name
screencapture -ixoa -t jpg ~/"Desktop/$(date).jpg"docker (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 [...]kubectl (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:5432nix-env (manipulate or query Nix user environments)
basename (strip directory and suffix from filenames)
chmod (change file mode bits)
tail (output the last part of files) https://www.explainshell.com/explain/tail
playgo (send .go file to the Go Playground)
tr (translate or delete characters)
diff (compare files line by line)
find (walk a file hierarchy)
grep (file pattern searcher)
man (open manual pages)
sort (put the lines of a text file in alphanumeric order)
PlistBuddy (read and write values to plists)
kill (send a signal to a process)
head (output the first part of files)
tar (manipulate tape archives)
env (set environment and execute command, or print environment)
cat (concatenate and print files)
ngrok (expose your localhost to the web)
rmdir (remove empty directories)
mediumexporter (export medium.com articles to markdown)
file (determine file type)
time (time command execution)
Last updated
Was this helpful?