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

today's leftovers

FOSS in the European Union

  • Competition authorities first to implement DMS services
    The DRS are published as open source software using the European Union’s open source software licence EUPL, and are available on Joinup. The software provides connectors for most commonly-used document management systems, and includes scripts to create a database to implement the connecting web services.
  • Czech Republic is at the forefront of an open data international project
    With the beginning of the new year, an international project “Open crowdsourcing data related to the quality of service of high-speed Internet” was launched, which aims to encourage the development of open data in the user’s measurement of high-speed Internet.

Arch Linux News

  • Linux Top 3: Arch Anywhere, Bitkey and Vinux
    Arch Linux is a powerful rolling Linux distribution, that hasn't always been particularly easy for new users to install and deploy. The goal of the Arch Anywhere system is to provide new and old users with the ability to install a fully custom Arch Linux system in minutes.
  • Arch Linux Preparing To Deprecate i686 Support
    Arch Linux is moving ahead with preparing to deprecate i686 (x86 32-bit) support in their distribution. Due to declining usage of Arch Linux i686, they will be phasing out official support for the architecture. Next month's ISO spin will be the last for offering a 32-bit Arch Linux install. Following that will be a nine month deprecation period where i686 packages will still see updates.
  • News draft for i686 deprecation
    Finally found some time to write a draft for news post on i686. Here it is: Title: i686 is dead, long live i686 Due to the decreasing popularity of i686 among the developers and the community, we have decided to phase out the support of this architecture. The decision means that February ISO will be the last that allows to install 32 bit Arch Linux. The next 9 months are deprecation period, during which i686 will be still receiving upgraded packages. Starting from November 2017, packaging and repository tools will no longer require that from maintainers, effectively making i686 unsupported. However, as there is still some interest in keeping i686 alive, we would like to encourage the community to make it happen with our guidance. Depending on the demand, an official channel and mailing list will be created for second tier architectures.

LinuxCon Europe on 100G Networking

  • The World of 100G Networking
    Capacity and speed requirements keep increasing for networking, but going from where are now to 100G networking isn’t a trivial matter, as Christopher Lameter and Fernando Garcia discussed recently in their LinuxCon Europe talk about the world of 100G networking. It may not be easy, but with recently developed machine learning algorithms combined with new, more powerful servers, the idea of 100G networking is becoming feasible and cost effective.
  • The World of 100G Networking by Christoph Lameter
    The idea of 100G networking is becoming feasible and cost effective. This talk gives an overview about the competing technologies in terms of technological differences and capabilities and then discusses the challenges of using various kernel interfaces to communicate at these high speeds.