Skip to content

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_aliases

Or 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 ​

AliasWhat it does
force-updateNon-interactive apt-get update, keep existing config files
force-upgrade / upgradeNon-interactive apt-get upgrade
force-full-upgrade / force-full-updateUpdate, upgrade, then install leftover upgradable packages, then autoclean
show-upgradableUpdate, then print upgradable package names
force-dist-upgradeAsks first, then apt-get dist-upgrade
force-cleanapt-get autoclean
force-removeapt-get autoremove

Disk and files ​

AliasWhat it does
diskusage / dfHuman-readable disk use, real filesystems only (hides Docker overlay)
fu / folderusagedu -ch for the current tree
tfu / totalfolderusagedu -sh summary for the current tree
disksfdisk -l
partitionslsblk with size, type, and mount
copy / copy2rsync with progress (copy2 uses progress2)
archive / extractgzip tar create / extract
mkcdirmkdir -p and cd into it
countCount files and dirs in one folder

Network, memory, Docker ​

AliasWhat it does
ip / publicipPublic IPv4 from icanhazip (ip is not iproute2 here)
localipAddresses from hostname -I
portsListening sockets (ss -tulpn)
firewallufw status verbose
journalFollow the systemd journal
meminfofree -m -l -t
memtop10 / cputop10Top 10 processes by RAM or CPU
watchtail / wtailWatch the last 10 lines of a file
dps / dstatsdocker ps / docker stats
dcdocker compose for /opt/typesense
typesense-logsFollow Typesense container logs
typesense-psTypesense compose status
typesense-healthcurl localhost :8108/health