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

Linux Kernel 4.14 Now Ready for Mass Deployments as First Point Release Debuts

Renowned Linux kernel developer Greg Kroah-Hartman announced today the Linux 4.14.1 kernel, the first point release of the Linux 4.14 kernel series, which is the first to be supported for the next six years. The Linux 4.14.1 kernel is marked as "stable" on the kernel.org website, giving the green light to OS developers to add it to their repositories. Arch Linux developers have already pushed the Linux 4.14.1 kernel to the "Testing" repositories, for early adopters, so we may soon see a rebase of the operating system on Linux kernel 4.14, which brings major new features like support for AMD Secure Memory Encryption, Heterogeneous Memory Management to support upcoming GPUs, and bigger memory limits in x86 hardware. Read more

LibreOffice 6.0 Beta to Arrive by Week's End for Second Bug Hunting Session

Announced today by Mike Saunders, the event will be held for the first time on a Monday, on November 27, 2017, from 8 a.m. UTC to 10 p.m. UTC. During the event, which will take place online, LibreOffice developers will try to triage and fix as many bugs as possible for the first LibreOffice 6.0 Beta. A few days before the event, The Document Foundation will release the LibreOffice 6.0 Beta 1 builds for GNU/Linux distributions using either the DEB or RPM binary formats, as well as for macOS and Microsoft Windows operating systems. These beta builds can run in parallel with the production version, LibreOffice 5.4. Read more

Today in Techrights

Android Leftovers