bash – Page 2 – POFTUT

Linux Bash Comments Inline or Outline

Linux bash have a lot of different type of programming features. While using these features we can create very complex scripts or applications in bash. In order to take notes in a script we should use comments. Comments provides useful information for system administrators. Comment Bash In bash comments starts with # . In the … Read more

Linux Multipurpose Relay Socat Command Tutorial with Examples

Linux provides different philosophy and use cases from system point of view. `socat` is very interesting command which provides us the ability to redirect input and outputs from different type of system resources like network, file, command, socket etc. Install For Debian, Ubuntu, Mint and Kali socat can be install dpkg based distributions like below … Read more

How To Check If File Exists In Linux Bash?

Linux bash have different file and directory related functions to create, delete, change and check existence. In this tutorial we will look how to check a file or directory if it exists. Check File Existence We will use bash test mechanism. Bash test mechanism have two formats where we can use followings. test -f FILENAME … Read more

Linux Echo Bash Variables Accordingly with Special Characters

Bash shell provides environment and shell variables in order to hold data. These variables helps system administrators during the operations by giving clues and helpers. echo command is used to put these variables to the standard output but in some cases some characters may misinterpreted and not work. In this tutorial we will look how … Read more

Difference Between Korn Shell (ksh) and Bash

Bash is very popular Linux and Unix shell used system administrators. Even most of the users do not know that they are using bash shell because of it is provided by default in the operating system. There are different shell types supported by Linux, Unix and BSD. Korn shell is another but less popular shell. … Read more

What Is Kornshell or ksh?

Linux and Unix provides different flavors of command line interface. bashis the most popular and use one. But we have alternatives too. kshor Korn Shell is one of them. Kornshell is mainly developed for shell based application development. ksh provides better performance for shell script. Install Kornshell We can install Kornshell for most of the Linux, … Read more

How To Pass and Parse Linux Bash Script Arguments and Parameters

Bash is a powerful scripting language provides by various Linux distributions, Unix and BSD. If we need to make our script dynamic we generally use arguments. Arguments are provided to the script through the command line. In this tutorial, we will examine different use cases of argument passing and examples. Syntax In order to use … Read more

How To Linux Bash For Loop In Files?

Bash provides a lot of useful programming functionalities. for loop is one of the most useful of them. We can use for loop for iterative jobs. Linux system administrators generally use for loop to iterate over files and folder. In this tutorial, we will look at how to use for loop to iterate over files … Read more

Linux Bash For Loop Range Examples

Bash for loop is popular programming structure used by a lot of Linux system administrators. For loops can be used in a lot of different cases. We have all ready examined the bash while and for loop in the following tutorial. Bash For and While Loop Examples In this tutorial we will look more specific … Read more

Linux Bash Tutorial Index

Introduction To Linux Bash Programming Linux Bash Directories and Files Linux Bash Environment Variables Linux Bash Variables Linux Bash Functions Linux Bash If Else Conditionals Linux Bash Create and Run Script Files Linux Bash Operators Linux Bash Arrays Linux Bash Input, Output and Redirection Linux Bash History Linux Bash Alias Linux Bash .bashrc File Linux … Read more