8 More Bash Tips for Working Faster With the Shell (Part 2 of 2)
Dec 28, 2010, 11:04 (0 Talkback[s])
(Other stories by Craciun Dan)
Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers
[ Thanks to Chris7mas for this link.
"This is the second article in this series, and brings
eight additional tips for working faster with the shell. Here is
the first article of the series, containing 10 tips. Create aliases
for quick access to commands or one-liners
"Aliases are handy custom commands which can be used to make
shortcuts to various commands, scripts or one-liners. Aliases can
be added in the ~/.bashrc file like this:
"Alternately, you can specify an external file and load it in
.bashrc, like for example the default one, called .bash_aliases.
Edit .bashrc and uncomment or add (if it doesn't already exist) the
if [ -f ~/.bash_aliases ]; then
"This code checks to see if the file ~/.bash_aliases exists, and
if it does, it reads the contents from it. Here are examples of
aliases and what they do:"