Author Archives: XZoLMLRU2Pg

How to Write Bash While-Loops

In this tutorial we will show you how to write bash while loops. Linux can be used to enter commands where we can specify the number of times a loop will run. This can be done by writing a script for a bash while loop.
To understand how to create a while-loop in bash, follow the steps given below.


read more »

How to Set a Path in Linux

In this tutorial we will show you how to set a path in Linux.
It is an environment variable through which you can specify the directory in which program files are located.
Setting the path in Linux is not a tedious task and can be done in a short span of time.


read more »

How to Copy Files Using SSH

In this tutorial we will show you how to copy files using SSH. You can transfer files using ssh as per your own requirement and need.
Secure Shell, or SSH, allows you to securely create a remote session which can then be used for ssh file transfer.


read more »

How to Use Unix Grep Command

In this tutorial we will show you how to use Unix Grep command.
GREP stands for Global Regular Expression Print and is used for filtering the searches and finding what you are looking for. This makes the search for different files existing on your system easy. Amongst unix commands grep is one of the easiest to use and work with.
To understand how you can use the grep command, follow the steps given below.


read more »

How to Use Conditions in Bash Scripting (Bash IF Script)

In this tutorial we will show you how to write a bash if script. This allows us to add conditions to the commands we enter. Through this we can also command bash to give an alternate output.
Scripting in bash can become fairly easy once you get the hang of it. To learn how to write a Bash IF command and script follow the steps given below.


read more »

How to Write Bash Sleep Script

In this tutorial we will show you how to write bash sleep script.
Over here we will demonstrate the sleep in bash script function with the date command. By entering the command the system will provide us the date and then will not provide us with the time till the sleep time is over and then will show the time once again in the output.
To understand how this can be done, follow the steps given below.


read more »

How to Check if Bash Variable is a Number

In this tutorial we will show you how to check if bash variable is a number. This can be done very easily through the terminal application present in Linux where you can enter your commands and check if the output is according to your needs and expectations. You can moreover on enter letters in your code to test further if your bash is a number or not.
To understand how in Linux, in bash to check variable follow the steps given below.


read more »

How to Use Find Command in Unix

In this tutorial we will show you how to use unix commands to find certain directories present on your system.
You can use the find unix command to locate files on your hard drive. You can add various filters along with the command to narrow down your search.
To understand how to do this, follow the steps given below.


read more »

How to Write Bash FOR-Loops

In this tutorial we will show you how to write a Bash FOR-Loop script. A loop is basically something that repeats itself unless told to stop. Over here the Bash FOR-Loop command allows you to repeat words or numbers in a given string. In the tutorial below, the string consists of the numbers from one till ten which skip internally inside the string from a difference of three.
To understand how the bash for-loops script works look at the steps given below.


read more »