
echo 'source <(kubectl completion bash)' > /.bashrc.
Kubectl autocomplete BASH source <(kubectl completion bash) set up autocomplete in bash into the current shell, bash-completion package should be installed first. To check the version, use the kubectl version command. Note: These instructions are for Kubernetes v1.27. If you use this tool in Galaxy, please cite:ījoern A. This page contains a list of commonly used kubectl commands and flags. For example, matches every character except the ones inside brackets. indicates negation in a character class. matches the beginning of a line or string.

Sample text file which we will use through out this tutorial.


In this tutorial, we will discuss 25 grep command scenarios with examples in Linux. This is NOT the POSIX or POSIX-extended syntax (unlike the awk/sed tools). You can find more detailed information in our article 20 grep command examples in Linux Cheat Sheet. TIP: This tool uses the perl regular expression syntax (same as running 'grep -P').
#GREP CHEAT SHEET UPGRADE#
Usually I'll just search online and read man pages (and experiment different options and solutions) but here's a short list of my most used aliases and functions, I guess that's the closest thing I have to a cheatsheetĪlias gl="git log -all -decorate -oneline -graph -pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset'"Īlias gitlog='git log -graph -pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset" -abbrev-commit -date=relative -branches'Īlias flushDNSMac="sudo killall -HUP mDNSResponder"Īlias myip="dig +short m1="arch -arm64"Īlias ibrew='arch -x86_64 /usr/local/bin/brew'Īlias upgrade="ibrew upgrade & m1 brew upgrade & mas upgrade"Īlias docker-clean='docker ps -aq | xargs -P $(nproc) -n1 docker rm -f docker rmi -f $(docker images -filter "dangling=true" -q -no-trunc)'Īlias autoscalerstatus="kubectl describe -n kube-system configmap cluster-autoscaler-status"Īlias evictedpods="kubectl get pods -all-namespaces -field-selector=status.This tool runs the unix grep command on the selected data file. # edit package override files in /User/user/Library/Application Support/Sublime Text 3/Packages/User/Ĭmd+shift+o = type fn name to jump to in open fileĬmd+option+shift+c = copy path of active filename

= show dotfiles in open file viewĬmd+shit+g (when opening file) = navigate to path for file selection Shift+tab = back up tab indentation (at beginning of line)Ĭmd+shift+. My only real cheatsheet is a list of shortcuts I maintain for programs/apps I use:Ĭtrl+space=switch keyboard input languageĬtrl+opt+C = open in browser with View in Browser package (create tmpfile if dirty)
