• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

Category: Linux Commands

20 November 2020

Bash Arrays

Written by Admin
Arrays are set of data and fundamental requirement for any programming language. We can say that it’s a variable with multiple child variables. This article shows you basics and use of arrays in Bash scripts. Bash Arrays# One dimensional array with numbered index and associative array types supported in Bash. Those are referenced using...
Read More about Bash Arrays
Linux Commands Leave a Comment
13 November 2020

How to Read a File Line By Line in Bash

Written by Admin
At the time of writing of Bash scripts, sometimes you need to read a file line by line. In this tutorial, we will show you how to read file line by line in Bash. Syntax for Read File Line by Line# The following is the common syntax for reading a file line-by-line: Single line...
Read More about How to Read a File Line By Line in Bash
Linux Commands Leave a Comment
12 November 2020

Bash Heredoc

Written by Admin
A Heredoc (Here document) is a redirection type which allows to pass multiline lines of input to a command. Sometimes while writing shell scripts you need to pass multiline block of code or text with the command like cat, sftp or tee. In this guide, you will learn how to use the Heredoc in...
Read More about Bash Heredoc
Linux Commands Leave a Comment
10 November 2020

Bash Concatenate Strings

Written by Admin
In any programming language the concatenation is the commonly used string operations. String concatenate is used to joining the two or more strings together by appending one to end of another string. In this tutorial, you will learn how to concatenate strings in Bash. Concatenating Strings# It’s very easy to concatenate multiple string variables...
Read More about Bash Concatenate Strings
Linux Commands Leave a Comment
09 November 2020

Bash until Loop

Written by Admin
Loops are primary requirement of any programming languages. Loops are useful when you want to execute a series of commands until the certain condition is satisfied. In Bash, loops are useful for automating repetitive tasks. There are three basic loops for loop, while loop , and until loop. In this tutorial, we will see...
Read More about Bash until Loop
Linux Commands Leave a Comment
08 November 2020

Bash Functions

Written by Admin
A Bash function is a predefined set of commands and can be use n number of times. It is useful to avoid repeatedly writing same code. In this tutorial, we will show you the basics of Bash functions. Create Bash Functions# It is very easy and straightforward to create a bash function. You can...
Read More about Bash Functions
Linux Commands Leave a Comment
05 November 2020

How to Create Bash Aliases

Written by Admin
Bash aliases are shortcuts for the long commands. It allows you to set a memorable shortcut command for a longer command. This guide explains how to create bash aliases on Linux system. Creating Bash Aliases# It is very easy to create bash aliases. Following is the general syntax: alias alias_name="command_to_run" You should put the...
Read More about How to Create Bash Aliases
Linux Commands Leave a Comment
01 November 2020

Bash while Loop

Written by Admin
Loops are primary requirement of any programming languages. Loops are useful when you want to execute a series of commands until the certain condition is satisfied. In Bash, loops are useful for automating repetitive tasks. In this tutorial, we will see basics of while loop in Bash. There are three basic loops for loop,...
Read More about Bash while Loop
Linux Commands Leave a Comment
30 October 2020

Bash break and continue

Written by Admin
Using loops you can run multiple commands until the condition is satisfied. But sometimes you need to divert the flow of loop or terminate the loop iteration. In such cases, you can use break and continue statements in bash to handle the loop execution. In this guide we will how to use break and...
Read More about Bash break and continue
Linux Commands Leave a Comment
27 October 2020

Bash Sequence Expression (Range)

Written by Admin
Using Bash sequence expression you can generates a range of integers or characters by providing the start and the end point of the range. In this guide, we will show you the basics of the sequence expression in Bash. Bash Sequence Expression# Below is the basic form of the sequence expression: {START..END[..INCREMENT]} The expression...
Read More about Bash Sequence Expression (Range)
Linux Commands Leave a Comment
← Previous 1 2 3 … 13 Next →

Popular Posts

© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook