I spend a good chunk of time in a terminal and sometimes need to run a long command to get specific tasks done. I've known about aliases for a while but only recently began using them. Below are some aliases I've set up permanently in my .bashrc config. Aliases must be set up in the format of 'alias [name]='[command]' and saved into .bashrc in the home folder. For example, alias music='cmus'
will launch cmus whenever I enter 'music' into my terminal.
Here is a list of aliases I've set up that range from fun to boring, but are all useful nonetheless. Entering the alias in a terminal will automatically run the corresponding command.
weather
curl wttr.in/austin
define
sdcv
flac2ogg
find . -name "*flac" -exec oggenc -q 9 {} \;
wifi
nmcli dev wifi show-password
unmountBackup
umount /run/media/chuck/Backup
Purpose: I often mount and unmount my external drive. Typing "unm" then tabbing will autocomplete 'unmountBackup', so I don't have to type out the entire path every time.ddg
w3m lite.duckduckgo.com
rm
rm -r
cp
cp -r
rss
newsboat
vpn
protonvpn-cli
I also have another alias which will SSH into my shared hosting, shortening ~70 characters down to just sshchuck
.
Thanks for reading. Feel free to send comments, questions, or recommendations to hey@chuck.is.