Language Selection

English French German Italian Portuguese Spanish

6 cool BASH tricks

Filed under
Software

In this article, I'm going to show you a number of simple, yet highly useful tricks that will make your scripting life easier. True, this article may appeal to the more geeky segment of my readers, but there's no reason to stop reading. As usual, I'll try to make my examples as simple and elegant as possible, with screenshots aplenty.

Scripts are an important part of Linux life. They are not necessary, but they can make your life easier by automating tasks. Most users will get along fine without ever bothering with scripts. But if you're lazy and would like your system to work hard rather than the other way around, learning how to write and use scripts is a good exercise.

BASH stands for Bourne Again SHell, the default Linux shell. If you're wondering what shell is, then think of its an interpreter between you (the user) and the system. You type in commands and the systems translates them into actual work. Most of the time, the results of this work are printed on your screen, inside the terminal.

Writing scripts is BASH can be as simple as entering commands one after another, then pasting them all into a text file that will become a script. Still, there are few tricks that can make a lot of difference.

Let's see them.




More in Tux Machines

Here’s How to Create the Perfect Ubuntu Origami Unicorn - Video

After announcing last week the Ubuntu Origami Unicorn contest, which can bring an awesome new BQ Aquaris E4.5 Ubuntu Edition phone to a user that folds the best-looking Unicorn, today Canonical decided that it’s finally time to show the world how to make the perfect origami unicorn. Read more Also: Canonical Eyes Telecom, NFV Innovation with Ericsson Cloud Partnership

Docker 1.6 Coming April 7

Some of the big additions set to debut in Docker 1.6 will be a native Windows client. Building Docker images will also get a boost with the ability to building images from an image ID as well as having the ability to impose constraints (memory etc) on images. Read more Also: Could Docker replace package management?

Linux Mint Needs a Huge, Modern Overhaul, More Artists and Web Developers Are Needed

We’ve announced earlier today, March 30, that the Linux Mint developers have released their monthly newsletter where they’ve reported the changes implemented in the upcoming releases of the LMDE 2 (Linux Mint Debian Edition), dubbed Betsy, as well as the Linux Mint 17.2 (Rebecca) operating systems. Read more

Creating a Unified Ubuntu Experience

On it's own, Ubuntu is a solid desktop Linux experience. It offers ample application choices and it's easy to use. But one area I would like to see greater focus is mirroring one desktop to another. That is, being able to find the same documents and other files I use on both desktop machines. In this article I'll explore options I've found useful in creating a unified Ubuntu Experience. Read more Also: The big lesson from Ubuntu, Windows and Coca Cola