- Docker Aliases
- Docker Compose Aliases
- Docker Compose Profile Aliases
- CrowdSec Aliases
- Web Stack Aliases
- Docker Traefik 1 Swarm Aliases
- File Compression Aliases
- File Navigation Aliases
- Sync and Copy Aliases
- Search and Find Aliases
- Trash Aliases
- File Size and Storage Aliases
- Bash Aliases
- Git and Site Management Aliases
- Mail Server Testing Aliases
- UFW Firewall Aliases
- Systemd Start, Stop, and Restart Aliases
- Installation and Upgrade Aliases
- Cleaning Aliases
- Shutdown and Restart Aliases
- Networking Aliases
- Synology DSM Commands
- Miscellaneous Aliases
- System Monitoring Aliases
- Rclone Aliases
- YouTube-DLP Aliases
- Auto-Traefik Aliases
- Pi-Hole Aliases
- VNC Aliases
Fill in the environment variables in the bash aliases file:
The script already copies the bash_aliases.env.example file to $SHARED/config/bash_aliases.env. You just need to fill in the environment variables in $SHARED/config/bash_aliases.env.
nano $SHARED/config/bash_aliases.env-
dstop: Stops a running Docker container.-
Usage:
dstop my_container
-
-
dstopall: Stops all running Docker containers. -
drm: Removes a stopped Docker container.-
Usage:
drm container_name
-
-
dprunevol: Removes unused Docker volumes. -
dprunesys: Removes all unused Docker data (volumes, networks, images). -
ddelimages: Deletes all unused Docker images. -
derase: Stops, removes containers, and prunes the system (Deletes everything!). -
dprune: Safely cleans up Docker (unused images, volumes, and system). -
dexec: Executes a command inside a running container (interactive mode).-
Example:
dexec my_container /bin/bash
-
-
dps: Shows all Docker processes. -
dpss: Shows Docker processes in a formatted table. -
ddf: Shows Docker data usage. -
dlogs: Shows the latest 50 logs of a container.-
Usage:
dlogs container_name
-
-
dlogsize: Displays the size of Docker container logs. -
dips: Shows IP addresses of Docker containers. -
dp600: Locks down the permissions for$SECRETSand$ENV_FILE. -
dp777: Opens permissions for$SECRETSand$ENV_FILEfor editing.
-
dcrun: Runs Docker Compose with the appropriate file. -
dclogs: Displays the logs for Docker Compose containers. -
dcup: Starts Docker Compose services and builds missing images. -
dcdown: Stops and removes Docker Compose services. -
dcrec: Recreates Docker Compose containers.-
Usage:
dcrec container_name
-
-
dcstop: Stops Docker Compose services. -
dcrestart: Restarts Docker Compose services. -
dcstart: Starts stopped Docker Compose services. -
dcpull: Pulls the latest images for services defined in Docker Compose.
-
startcore: Starts the "core" services. -
createcore: Builds and starts "core" services (removing orphaned containers). -
stopcore: Stops the "core" services.
-
stopmedia: Stops the "media" services. -
createmedia: Builds and starts "media" services (removing orphaned containers). -
startmedia: Starts the "media" services.
-
stopdownloads: Stops the "downloads" services. -
createdownloads: Builds and starts "downloads" services (removing orphaned containers). -
startdownloads: Starts the "downloads" services.
-
stoparrs: Stops the Starr apps services. -
createarrs: Builds and starts the Starr apps services (removing orphaned containers). -
startarrs: Starts the Starr apps services.
-
stopdbs: Stops the database services. -
createdbs: Builds and starts the database services (removing orphaned containers). -
startdbs: Starts the database services.
-
cscli: Executes CrowdSec CLI commands. -
csdecisions: Lists current CrowdSec decisions. -
csalerts: Displays CrowdSec alerts. -
csinspect: Inspect CrowdSec alerts in detail. -
cshubs: Lists available CrowdSec hub resources. -
csparsers: Lists available CrowdSec parsers. -
cscollections: Lists CrowdSec collections. -
cshubupdate: Updates CrowdSec hub resources. -
cshubupgrade: Upgrades CrowdSec hub resources. -
csmetrics: Displays CrowdSec metrics. -
csmachines: Lists CrowdSec registered machines. -
csbouncers: Lists CrowdSec registered bouncers. -
csfbstatus: Shows the status of the CrowdSec firewall bouncer service. -
csfbstart: Starts the CrowdSec firewall bouncer service. -
csfbstop: Stops the CrowdSec firewall bouncer service. -
csfbrestart: Restarts the CrowdSec firewall bouncer service. -
tailkern: Tails the kernel log file. -
tailauth: Tails the authentication log file. -
tailcsfb: Tails the CrowdSec firewall bouncer log file. -
csbrestart: Restarts both Traefik bouncer and CrowdSec firewall bouncer.
webrs: Recreates the web stack services (PHP 7, Redis, Nginx).
-
dslogs: Shows the logs of the Docker service in real-time, tailing the last 50 entries. -
dsps: Displays the processes running in thezstackDocker Swarm stack. -
dsse: Lists the services in thezstackDocker Swarm stack. -
dsls: Lists all Docker Swarm stacks. -
dsrm: Removes a Docker Swarm stack.-
Usage:
dsrm stack_name
-
-
dsup: Deploys thezstackDocker Swarm stack using the specified Compose file. -
dshelp: Displays a quick list of all Docker Swarm-related commands.
-
untargz: Extracts a.tar.gzfile.-
Usage:
untargz archive.tar.gz
-
-
untarbz: Extracts a.tar.bzfile.-
Usage:
untarbz archive.tar.bz
-
-
lstargz: Lists contents of a.tar.gzarchive.-
Usage:
lstargz archive.tar.gz
-
-
lstarbz: Lists contents of a.tar.bzarchive.-
Usage:
lstarbz archive.tar.bz
-
-
targz: Compresses files into a.tar.gzarchive.-
Usage:
targz archive_name.tar.gz directory_or_file
-
-
tarbz: Compresses files into a.tar.bzarchive.-
Usage:
tarbz archive_name.tar.bz directory_or_file
-
-
cd..: Moves up one directory. -
..: Moves up one directory (alternative shortcut). -
...: Moves up two directories. -
.3: Moves up three directories. -
.4: Moves up four directories. -
.5: Moves up five directories.
-
scp: Copies files and directories recursively usingscp.-
Usage:
scp source destination
-
-
rsynce: Executesrsyncwith progress, force, delete, and an exclude list.-
Usage:
rsynce source destination
-
-
rsyncne: Executesrsyncwith progress, force, and delete.-
Usage:
rsyncne source destination
-
-
cpn: Native copy with verbose output.-
Usage:
cpn source destination
-
-
cp: Copies files usingrsyncwith progress.-
Usage:
cp source destination
-
-
mv: Moves files usingrsyncand removes the source files.-
Usage:
mv source destination
-
-
mvn: Native move with verbose output.-
Usage:
mvn source destination
-
-
gh: Searches your Bash history usinggrep.-
Usage:
gh keyword
-
-
findr: Finds files or directories by name.-
Usage:
findr filename
-
-
grep,egrep,fgrep: Grep commands with color-enabled output.-
Usage:
grep pattern file egrep pattern file fgrep pattern file
-
-
rm: Moves files to trash instead of permanently deleting.-
Usage:
rm file
-
-
rmv: Deletes files with verbose output.-
Usage:
rmv file
-
-
tempty: Empties the trash. -
tlist: Lists items in the trash. -
srmt: Deletes files with sudo privileges using trash.-
Usage:
srmt file
-
-
fdisk: Lists disk partitions and sizes. -
uuid: Retrieves the UUID of a volume.-
Usage:
uuid /dev/sda1
-
-
ls: Lists directory contents with color and sorting directories first. -
ll: Lists all files in a detailed format with human-readable file sizes. -
lt: Lists files sorted by size. -
lsr: Lists files sorted by recently modified. -
mnt: Lists mounted drives. -
dirsize: Shows the size of directories. -
dirusage: Shows the disk usage of the current directory. -
diskusage: Shows total disk usage. -
partusage: Shows partition usages excluding temporary memory. -
usage10: Shows the top 10 items using the most space in the current directory.
-
baupdate: Reloads your Bash configuration. -
baedit: Opens your Bash aliases file for editing. -
bacopy: Copies your Bash aliases to the root directory. -
baget: Downloads the latest Bash aliases from the internet.
-
gcpush: Pushes changes to the Docker-Traefik repository.-
Usage:
gcpush ../commits/date.txt
-
-
gpush: Pushes changes to your Git repository. -
ggraph: Displays a visual Git log graph.
-
nullsend: Sends a null mail to trigger the mail server. -
tmail1: Sends a test email fromtmail1. -
tmail2: Sends a test email fromtmail2with a provided email address.-
Usage:
tmail2 email@example.com
-
-
ufwenable: Enables the UFW firewall. -
ufwdisable: Disables the UFW firewall. -
ufwallow: Allows a service or port through the firewall.-
Usage:
ufwallow service_name_or_port
-
-
ufwlimit: Limits access to a service or port.-
Usage:
ufwlimit service_name_or_port
-
-
ufwlist: Lists firewall rules with numbered entries. -
ufwdelete: Deletes a firewall rule.-
Usage:
ufwdelete rule_number
-
-
ufwreload: Reloads the firewall settings.
-
Systemctl Aliases:
-
ctlreload: Reloads systemd daemon. -
ctlstart: Starts a systemd service. -
ctlstop: Stops a systemd service. -
ctlrestart: Restarts a systemd service. -
ctlstatus: Shows the status of a systemd service. -
ctlenable: Enables a systemd service at boot. -
ctldisable: Disables a systemd service at boot. -
ctlactive: Checks if a systemd service is active. -
Usage:
ctlstart service_name ctlstop service_name
-
-
Service-specific Aliases:
-
ShellInABox service management:
shellstart,shellstop,shellrestart,shellstatus
-
SSH service management:
sshstart,sshstop,sshrestart,sshstatus
-
UFW firewall management:
ufwstart,ufwstop,ufwrestart,ufwstatus
-
Webmin management:
webminstart,webminstop,webminrestart,webminstatus
-
Samba service management:
sambastart,sambastop,sambarestart,sambastatus
-
NFS service management:
nfsstart,nfsstop,nfsrestart,nfsstatusnfsreload: Reloads NFS exports.
-
-
update: Runsapt-get update. -
upgrade: Updates and upgrades packages. -
install: Installs packages. -
finstall: Fixes broken package installations. -
rinstall: Reinstalls packages. -
uninstall: Removes packages. -
search: Searches for packages. -
addkey: Adds a GPG key to the system.-
Usage:
update install package_name
-
-
clean: Cleans the package cache. -
remove: Removes unused packages. -
purge: Purges packages. -
deborphan: Removes orphaned packages. -
cleanall: Runs all cleaning commands.-
Usage:
cleanall
-
-
shutdown: Shuts down the system immediately. -
reboot: Reboots the system.-
Usage:
shutdown reboot
-
-
portsused: Displays used ports. -
showports: Shows listening ports usingnetstat. -
showlistening: Displays active listening services usinglsof. -
ping: Pings a host 5 times. -
ipe: Displays the external IP. -
ipi: Displays the internal IP. -
header: Fetches web server headers.-
Usage:
portsused ping example.com
-
-
servicelist: Lists services (DSM 6 only). -
servicestatus,servicestop,servicestart,servicerestart: Manage Synology system services. -
servicehstop,servicehstart: Hard stop/start services (DSM 6 only). -
restartdocker: Restarts Docker on Synology.-
Usage:
servicelist restartdocker
-
-
wget: Resumes downloads withwget. -
nano: Edits files usingnanowith syntax highlighting. -
scxterm: Starts an Xterm session.-
Usage:
wget url nano file
-
-
meminfo: Displays memory usage. -
psmem,psmem10: Shows processes consuming the most memory. -
pscpu,pscpu10: Shows processes consuming the most CPU. -
cpuinfo: Displays CPU info. -
gpumeminfo: Displays GPU memory usage. -
free: Displays memory in human-readable format.-
Usage:
meminfo psmem10
-
-
rcdlogs,rcclogs: Tail Rclone logs. -
rcupmedia,rcupmedialogs: Upload media to cloud. -
rcupdump,rcupdumplogs: Upload database dump. -
rcrestart,rcstop,rcstart: Manage Rclone service. -
rcstatus: Check Rclone status. -
rcps: List running Rclone processes. -
rcupdate: Update Rclone. -
rcpurge: Purge Rclone cache. -
rcforget: Forget Rclone VFS cache.-
Usage:
rcstart rcupdate
-
-
ytupdate: Updateyt-dlp. -
ytlist: List formats available for download. -
ytdump: Dump video information as JSON. -
ytdv,ytdvc: Download videos using config. -
ytda,ytdac: Download audio using config.-
Usage:
ytlist video_url ytda video_url
-
-
sshagent: Starts the SSH agent and adds the GitHub key. -
atpush: Pushes changes to the Auto-Traefik Git repository.-
Usage:
atpush
-
-
pidis: Disables Pi-Hole. -
pien: Enables Pi-Hole. -
pi10: Temporarily disables Pi-Hole for 10 minutes. -
piup: Updates Pi-Hole. -
rpi3up,rpi0up: Updates Raspberry Pi systems.-
Usage:
pidis piup
-
-
vnc1: Starts a VNC server session with specific resolution. -
vnckill1: Kills the VNC session on display:1.-
Usage:
vnc1 vnckill1
-
These aliases are designed to optimize workflow and system management, making it easier to perform complex tasks with simple commands.