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

This Chart Shows How The Radeon RX 580 vs. GeForce GTX 1060 Now Compete Under Linux

It was just last year that open-source RadeonSI/RADV developers were trying to get the Radeon RX 580 "Polaris" GPU to be competitive with the GeForce GTX 1060 as it is under Windows given each GPU's capabilities. We've seen the RX 580 and GTX 1060 dancing under Linux the past few months and yesterday's 20-way GPU comparison with Rise of the Tomb Raider was quite significant -- perhaps most surprising being how well the RX 580 performed. Heck, just one or two years ago it was an accomplishment seeing any official Radeon driver support at-launch for new Linux game releases. So here are some extensive tests looking closer at the GTX 1060 vs. RX 580 battle in this latest Vulkan-powered Linux game port. Read more

Linux 4.9.95

I'm announcing the release of the 4.9.95 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser: http://git.kernel.org/?p=linux/kernel/git/stable/linux-st... Read more

Openwashing Apple and Microsoft Proprietary Frameworks/Services

Viperr Linux Keeps Crunchbang Alive with a Fedora Flair

Do you remember Crunchbang Linux? Crunchbang (often referred to as #!) was a fan-favorite, Debian-based distribution that focused on using a bare minimum of resources. This was accomplished by discarding the standard desktop environment and using a modified version of the Openbox Window Manager. For some, Crunchbang was a lightweight Linux dream come true. It was lightning fast, easy to use, and hearkened back to the Linux of old. Read more