Useful Linux aliases for devops.
Simple commands:
zzweb
: spawn a shell as thewww-data
userzzsshconfig
: tired ofnano $HOME/.ssh/config
? Yeah, I was toozzhosts
: alias forsudo nano /etc/hosts
zzalias
: a complete workflow to edit and run your.bash_aliases
(no more logoff/logon!)zzspacehog
: display top 5 space hog in the current directoryzzcountfiles
: count all the files in the current directory (and its subfolders)zznetstat
: alias forsudo netstat -tuanp
. grep on it at willzzclients
: Number of open connections per IP
More elaborate commands
zzgit
: it's an alias to git as the current directory owner. Or tryzzgit push
for preview, add, commit, pull, push.zzgit flow
will commit dev, merge into staging, merge staging into master.zzws
: manage your webstack config and preview, reload/restart/stop 'em all with one commandzzcd
: quick directory selector to browse the filesystem like a pro (configure it withzzcd edit
)zzxdebug
: turn on|off xdebug for all the installed php versions, both cli and fpmzzsy
: It's an alias for./bin/console
, but also tryzzsy start
to start the webserver stack
Just execute:
sudo apt install curl -y && curl -s https://raw.githubusercontent.com/TurboLabIt/zzalias/master/setup.sh?$(date +%s) | sudo bash ; source /usr/local/bin/zzalias