Language Selection

English French German Italian Portuguese Spanish

A Bash Primer

Filed under

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

These Are the 5 Best Android Phones

But this kind of high-powered mobile computing won’t work on just any old Google handset. Here are the five best Android phones available today, all of which are either rumored or confirmed to get Marshmallow. Read more

LibreOffice 5.0.3 to Bring GTK+, DOCX Fixes, and More

The Document Foundation has revealed that the first Release Candidate for the LibreOffice 5.0.3 branch has been released and is now available for download. Read more

Mozilla, GSMA Publish Study on Mobile Opportunity in Emerging Markets

Mozilla has released a new report — — co-authored with the GSMA. Titled “Approaches to local content creation: realising the smartphone opportunity,” our report explores how the right tools, coupled with digital literacy education, can empower mobile-first Web users as content creators and develop a sustainable, inclusive mobile Web. Read more

Katharina Borchert to Join Mozilla Leadership Team as Chief Innovation Officer

We are excited to announce that Katharina Borchert will be transitioning from our Board of Directors to join the Mozilla leadership team as our new Chief Innovation Officer starting in January. Read more