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

Android Leftovers

Linux Devices

Red Hat and Fedora

GitHub's Atom and GitHub Enterprise 2.5

  • GitHub's Atom 1.5 Hackable Text Editor Out Now, Atom 1.6 Enters Beta Testing
    On February 9, 2016, GitHub's devs made some big announcements for its awesome and acclaimed Atom open-source hackable text editor, which reached stable version 1.5 for all supported operating systems.
  • Big? GitHub Enterprise 2.5 thinks massive
    Keeping up its push to be an enterprise presence, GitHub has announced the latest version of the for-pay, enterprise edition of its code-hosting platform. The company says GitHub Enterprise 2.5's focus is "companies operating at massive scale" -- enterprises with more than 10,000 developers and exponential year-over-year growth. The new toolset for GitHub Enterprise 2.5 helps large teams add new users, collaborate safely on large projects, and deal with GitHub-related performance issues that can crop up around such large projects.