// notes/ Tools & Environment

Creating Aliases

Persist your common commands in ~/.zsh_aliases so they survive Kali upgrades.

#kali#aliases#zsh#workflow
source · airouboss/oscp-prep-notes-2026 · tools/creating-aliases.md

Creating Aliases

Shortcuts for the commands you run every engagement. Keep them in a dedicated ~/.zsh_aliases file so they survive Kali upgrades and stay out of your main .zshrc.

🐺 howlsec@kali
$# 1. Create the aliases file
$cd ~
$sudo nano .zsh_aliases
$
$# 2. Add your aliases
$alias update='sudo apt update -y'
$alias smbup='impacket-smbserver share .'
$alias webup='python3 -m http.server 80'
$
$# 3. Source it from .zshrc — append at the end
$sudo nano .zshrc
$# ---
$# if [ -f ~/.zsh_aliases ]; then
$# . ~/.zsh_aliases
$# fi
$# ---
$
$# 4. Reload the current shell
$. ~/.zshrc

Handy additions worth aliasing: a listener (alias nc443='rlwrap nc -nvlp 443'), a TTY upgrade one-liner, and your VPN IP (alias myip="ip -4 addr show tun0 | grep -oP '(?<=inet )[0-9.]+'").