Tag Archive: bash

Aug 27 2017

How to Pass Arguments to a Bash-Script

You can write a bash script such that it receives arguments specified when the script is called from the command line. This method is used when a script has to perform a slightly different function depending on the values of input parameters (the arguments). For example, you may have a script called “stats.sh” that performs …

Continue reading »

Mar 13 2017

Series on Bash Scripts from Like Geeks

Like Geeks recently published an interesting series on writing Bash shell scripts: Today we are going to talk about bash script or shell scripting actually, they are called shell scripts in general but we are going to call them bash scripts because we are going to use bash among the other Linux shells. There are …

Continue reading »

Mar 02 2017

An Introduction to Useful Bash Aliases and Functions | DigitalOcean

The more time you spend on the Linux command line, the more you will begin to realize that you tend to use the same commands, parameters, and sequences repeatedly. Luckily, bash allows you to create aliases and and bash functions to help reduce typing Source: An Introduction to Useful Bash Aliases and Functions | DigitalOcean

Dec 29 2016

Your Own Linux..! series on Linux / Unix Shell (Bash) Scripting

Your Own Linux..! recently published a multi-part series on Unix/Linux shell scripting, that would be useful to anyone desiring to write a bash script. The articles are: Introduction – Linux / Unix Shell (Bash) Scripting Bash Scripting Variables – Environment and Special Shell Variables Bash Scripting – Arithmetic, Logical, Relational and Bitwise Operators Bash Scripting …

Continue reading »

Nov 13 2016

How to Run Bash Script as Root During Startup on Linux – Make Tech Easier

Have you ever wanted to run bash script as a root user during startup? Here’s how you can harness the power of cron and set your scripts to run at startup. Source: How to Run Bash Script as Root During Startup on Linux – Make Tech Easier

Sep 04 2015

Change shell properties with Linux shopt command

Bash shopt command explained  with examples Shopt(SHell OPTions) is a built-in command to change the properties of a shell such as.. Its history behavior Spell check Enable special characters for echo command by default and many more. This is an excellent command which give more control on Shell for you when you are working on bash …

Continue reading »

Apr 13 2015

Link: Bash One-Liners Explained, Part I: Working with files

I love being super fast in the shell so I decided to do a new article series called Bash One-Liners Explained. It’s going to be similar to my other article series – Awk One-Liners Explained, Sed One-Liners Explained, and Perl One-Liners Explained. After I’m done with this bash series, I’ll release an e-book by the …

Continue reading »

Apr 02 2015

Links: Bash by Example, Parts 1-3

You might wonder why you ought to learn Bash programming. Well, here are a couple of compelling reasons: You’re already running it  If you check, you’ll probably find that you are running bash right now. Even if you changed your default shell, bash is probably still running somewhere on your system, because it’s the standard …

Continue reading »

Nov 27 2014

Link: How to set the PATH variable in Bash

So, how do you set the PATH variable in Bash? That’s a very simple task, which should take less than a minute to complete. However, for the benefit of those not familiar with the Bash shell or the PATH variable, let’s start with a very brief introduction. Full article here: How to set the PATH …

Continue reading »

Oct 18 2014

Link: Alien’s Bash Tutorial

First you probably need to read a UNIX command bible to really understand this tutorial, but I will try to make it as clear as possible, there is about 100-150 UNIX commands explained later in this tutorial. You are to have some UNIX experience before starting on this tutorial, so if you feel that you …

Continue reading »

Older posts «

%d bloggers like this: