8 More Bash Tips for Working Faster With the Shell (Part 2 of 2)

Written By
Web Webster
Web Webster
Dec 28, 2010

[ 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:

“alias name=’command’

“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
following code:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

“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:”

Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.