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

Intel Dominates The Perf Changes For Linux 4.2

For those using perf for Linux profiling with performance counters, the Linux 4.2 kernel will bring many improvements to benefit Intel customers. Read more Also: Exciting Features Merged So Far For The Linux 4.2 Kernel

BeagleCore Open Source Internet Of Things Development Board (video)

BeagleCore is a new Internet of Things development board that has been created to be 100 percent open source and provide an easy way for makers, developers and hobbyists to have access to all all the core features of BeagleBone Black in a miniaturised computer module. Read more

Red Hat CEO Warns About Faux Open Source

Red Hat CEO Jim Whitehurst spent last week’s annual Summit praising the progress made in open source, but during his opening keynote he also warned attendees about companies that claim to be open source without actually encouraging open participation and innovation from a broad group of users. Read more

Check the Ubuntu Touch Wish List for Apps and New Features

If you have any questions regarding new features and apps that are present, absent, or in the works for the Ubuntu Touch platform, you need to know that there is already a comprehensive wish list out there that takes care of everything. Read more Also: Unity 8 Just Got a Cool 3D App Switcher for the Desktop