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

Open source Chromecast competitor, Matchstick, is dead

Nearly a year ago, Matchstick hit Kickstarter with the goal of bringing a more open HDMI dongle to challenge the likes of the Chromecast and Fire TV Stick. Today, however, its creators made a painful revelation. They’re not going to be able to deliver a satisfactory product, and that means around 17,000 backers won’t be getting their hands on the Firefox OS-based Matchsticks they were hoping for when they pledged their support to the project last fall. Read more

Lockheed Open Sources Its Secret Weapon In Cyber Threat Detection

The cybersecurity team at Lockheed Martin will share some defensive firepower with the security community at Black Hat this week with the open source release of an internal advance threat tool it has been using in house for three years now. Dubbed Laika BOSS, this malware detection platform is meant to help security analysts better hunt down malicious files and activity in an enterprise environment. Read more

Bodhi Linux 3.1.0 Pre Invites Users to Test the New Moksha Desktop Environment

Bodhi, a Linux operating system based on Ubuntu that features a minimalist approach and really low system requirements, has just received a testing version for the upcoming 3.1.0 release. Read more

Ubuntu Personal Will Have Unity 8 and Mir by Default and Will Run X Legacy Apps

Ubuntu is planning on converging its operating systems, and this approach will become a lot more obvious in the next couple of years. In the meantime, we found out some interesting things about the future of Ubuntu desktop and Canonical's plans for it. Read more