← Dokumentace

Linux Aliases

Zdroj: ~/projects/linux-aliases/

Linux Aliases

Portable shell aliases for any Linux (or macOS) system. Docker, git, server admin, and everyday navigation — copied from real usage, cleaned up for general use.

Install

git clone [email protected]:<your-user>/linux-aliases.git
cd linux-aliases
./install.sh          # copies aliases to ~/.bash_aliases + wires into shell
source ~/.bashrc      # or open a new terminal

On any new machine that's it — pull and run.

Commands

Command Runs
dcup sudo docker compose up -d
dcdown sudo docker compose down
dce sudo docker compose exec
dps sudo docker ps
dpsa sudo docker ps -a
dlogs sudo docker logs
drestart sudo docker restart
dstop sudo docker stop
drm sudo docker rm
dcp sudo docker cp
gs git status
gp git pull
gpush git push
gd git diff
gl git log --oneline -10
upd sudo apt update && sudo apt upgrade -y
ufwst sudo ufw status verbose
pubip curl -s ifconfig.me

The full list is in aliases.sh — edit it to fit, then re-run ./install.sh.

Customize

  • Aliases live in one file: aliases.sh.
  • Edit → ./install.sh → source ~/.bashrc.
  • Remove everything: ./install.sh --uninstall.

Tips

  • If your user is in the docker group (sudo usermod -aG docker $USER, then re-login), you can strip the sudo prefix from all docker aliases.
  • zsh is auto-detected: the installer wires into ~/.zshrc when present.

Origin

Based on ~/.bash_history analysis (Aug 2026): the most frequent commands got aliases. See aliases-analysis.md.