Language Selection

English French German Italian Portuguese Spanish

A Bash Primer

Filed under
HowTos

With the graphical interfaces within Linux distributions becoming more and more enhanced, the number of users avoiding the command line is increasing. And that's a shame; there's so much power and possibility within the shell that to steer clear of it is to overlook a mighty gem.

If you're one of those avoiding the command line, this primer is for you.

The Linux command interpreter is called a "shell" and the default shell in many Linux distributions is "bash." When you open a terminal window or log in at a text console, the bash shell is what prompts you for commands. Then, when you type a command, the shell executes it.

Just as there are multiple GUIs (GNOME or KDE) for Linux, there are a number of shells besides bash. For example, the C shell is one that some people prefer. You can easily change your default shell to this by using the chsh command.

In addition to the standard Linux commands, bash can execute any computer program. So you can type the name of an application (the name is usually more cryptic than what you see in GNOME or KDE menus) at the shell prompt, and the shell starts that application.

Understanding the Syntax of Shell Commands




More in Tux Machines

Android L Will Keep Your Secrets Safer

Hard on the heels of increased security measures in Apple's newly released iOS 8, Google this week confirmed that encryption will be turned on by default in the next release of Android. Android has offered encryption for more than three years, and keys are not stored off the device, so they can't be shared with law enforcement, Google said. In the next Android release, encryption will be enabled by default. Read more

WHAT THE GNOME RELEASE TEAM IS DOING

At the release team BoF at this years Guadec, I said I would write a blog post about the whats and hows and ifs of release team work. I’m a little late with this, but here it is: a glimpse into the life of a GNOME release team member. We are in the end phase of the development cycle, when the release team work is really kicking into high gear. Read more

Global Web Literacy Gets a Boost From Maker Party 2014

This week we celebrated the record-breaking 2,513 events in 86 countries that made up Maker Party 2014. The campaign, which officially began on July 15th and ended this week, brought nearly 130,000 adults and children together to learn valuable digital literacy skills in classrooms, libraries, cafes, and living rooms around the world. Whether creating their first mobile apps with Appmaker, discussing the nuances of net neutrality during our global teach-in, or turning libraries into full-fledged maker spaces, this year’s crop of Maker Party events unleashed the creativity of a global community of web makers. Read more

India yet to catch up with FOSS, says Rushabh Mehta of ERPNext

We got a chance to interact with Rushabh Mehta, the founder of Web Notes Technologies, a company based in Mumbai, India. ERPNext is the major product of the company. It is a free and Open Source web based ERP (Enterprise Resource Planning) solution for small and medium sized businesses with its presence in more than 60 countries. In addition to the regular discussions on their Open Source product, strategy, customers etc. we also got a chance to understand how hard it is to thrive in an environment where the “Open Source” philosophy is not a familiar term yet. A software developer by passion and an Industrial Engineer by training, Rushabh also informed us about their imminent product conference in Mumbai he is quite excited about. Read more