Short bio: Computer Scientist, FOSS supporter (read more)
Tux Machines (TM)-specific
Bash is that tool in *NIX-land that you’re really only thankful for when you need it. Of course, most people don’t realize it, but that’s most of the time. So many things in *NIX-land depend upon bash. The command line is the biggie. But you wouldn’t be pulling off fantastic shell scripting if it weren’t for bash. So I thought it apt (pun intended) to offer these tips to make your bash life all the easier.
1: Use aliases
An alias is a shortcut for a command that’s challenging to type (or to remember). Instead of typing sudo apt-get update and sudo apt-get upgrade, you could add the alias alias update=”sudo apt-get update ; apt-get upgrade” to your ~/.bashrc file. Then, you’d just have to issue the command update to do the work. Aliases are simple ways to keep the typing in the command line down to a minimum, as well as saving you the trouble of remembering tricky commands.