Server aliases
Bash aliases for DigitalOcean droplets. Live copy on vault is ~/.bash_aliases (December 2025). This file drops Laravel, torrent, and media-server bits, then adds Typesense and Docker helpers.
Source of truth: bash-aliases.sh.
Install the same file for both users. Ubuntu sources ~/.bash_aliases from ~/.bashrc. Open a new SSH session after copying.
bash
scp app/infrastructure/bash-aliases.sh smarthealth-typesense-qa-root:/root/.bash_aliases
scp app/infrastructure/bash-aliases.sh smarthealth-typesense-qa:~/.bash_aliasesOr copy root's file onto the operator after that user exists:
bash
ssh smarthealth-typesense-qa-root 'install -o smarthealth -g smarthealth -m 644 /root/.bash_aliases /home/smarthealth/.bash_aliases'ssh smarthealth-typesense-qa-root loads /root/.bash_aliases. ssh smarthealth-typesense-qa loads /home/smarthealth/.bash_aliases. Do not leave this on one user.
Apt
| Alias | What it does |
|---|---|
force-update | Non-interactive apt-get update, keep existing config files |
force-upgrade / upgrade | Non-interactive apt-get upgrade |
force-full-upgrade / force-full-update | Update, upgrade, then install leftover upgradable packages, then autoclean |
show-upgradable | Update, then print upgradable package names |
force-dist-upgrade | Asks first, then apt-get dist-upgrade |
force-clean | apt-get autoclean |
force-remove | apt-get autoremove |
Disk and files
| Alias | What it does |
|---|---|
diskusage / df | Human-readable disk use, real filesystems only (hides Docker overlay) |
fu / folderusage | du -ch for the current tree |
tfu / totalfolderusage | du -sh summary for the current tree |
disks | fdisk -l |
partitions | lsblk with size, type, and mount |
copy / copy2 | rsync with progress (copy2 uses progress2) |
archive / extract | gzip tar create / extract |
mkcdir | mkdir -p and cd into it |
count | Count files and dirs in one folder |
Network, memory, Docker
| Alias | What it does |
|---|---|
ip / publicip | Public IPv4 from icanhazip (ip is not iproute2 here) |
localip | Addresses from hostname -I |
ports | Listening sockets (ss -tulpn) |
firewall | ufw status verbose |
journal | Follow the systemd journal |
meminfo | free -m -l -t |
memtop10 / cputop10 | Top 10 processes by RAM or CPU |
watchtail / wtail | Watch the last 10 lines of a file |
dps / dstats | docker ps / docker stats |
dc | docker compose for /opt/typesense |
typesense-logs | Follow Typesense container logs |
typesense-ps | Typesense compose status |
typesense-health | curl localhost :8108/health |