Skip to content
Veerendra edited this page Aug 14, 2022 · 1 revision

Shortcuts

.aliases

Aliase Actual Command Description
ll ls -alF
la ls -lahF
l ls -CF
lsd ls -lhF --color | grep --color=never '^d' List directories only
dl cd ~/Downloads
dt cd ~/Desktop
p cd ~/projects
h history
pbcopy xclip -selection clipboard Send data to clipboard
pbpaste xclip -selection clipboard -o Get data from clipboard
afk i3lock -c 000000 > /dev/null 2>&1 Lock
catn cat -n cats a file with line numbers
sniff sudo ngrep -d 'en1' -t '^(GET|POST) ' 'tcp and port 80' ngreps on port 80 for GET or POST
pubip dig +short myip.opendns.com @resolver1.opendns.com Public IP
timer echo "Timer started. Stop with Ctrl-D." && date && time cat && date Simple timer on terminal
self_cert openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.pem Generates self signed certificates
git_graph git log --graph --decorate --pretty=oneline --abbrev-commit Git Graph

.functions

Aliase Description
calc Calculator
fs File size or total directory size
tmpd Create tmp directory and cd
gitio Create a git.io short URL
o Opens directory in UI
openimage Opens images with feh
flushdns Flush Directory Service cache
isup Check if uri is up
tre tree with hidden files and color
getfile Starts nc server to get file
localip Local primary IP
ssl_validity Verifies Certificate Validity of Domain
updatedotfiles Updates dotfiles
curltime curl URL and display times
rm_file_git_history Remove file from git commit history

.k8s

Aliase/Functions Description
kubegetcon Get all contexts
kubecurcon Displays current context
kubegp kubectl get pods
kubegpa kubectl get pods --all-namespaces
kubechns Change namespace
kubechcon Change context

.dockerfunctions

Aliase Description
docker_rm_stopped Removes stopped containers
docker_stop_all Stop all containers
docker_rm_imgs Removes all Docker images
docker_rm_stopped_imgs Remove stopped container's Docker images

Shout out

Clone this wiki locally