Linux Bash exec Command Tutorial

Linux Bash exec Command Tutorial

Linux Bash shell provides the exec command in order to create a new process for the provided command and replace it with the current bash shell process. The exec command derived from the bash low-level exec() method. The exec command executes provided command with the provided arguments. exec Command Syntax The bash exec command has … Read more

Passing Function Parameters In Bash

Passing Function Parameters In Bash

As a flexible and advanced scripting environment bash provides the ability to create and run functions. Functions can be created without parameters or with parameters. By using functions with parameters the functions can be used more efficiently by using different data for different cases. In this tutorial, we will examine how to pass parameters into … Read more

Linux tee Command Tutorial

Linux tee Command Tutorial

The Linux tee command is used to process the standard input and copy the input data into another output or a file. The tee command is generally used with other commands in order to save their input into a file and also redirect to the other commands for processing. tee Command Syntax The Linux tee … Read more

Linux passwd Command Tutorial

Linux passwd Command Tutorial

Linux provides the passwd command in order to manage password and related configurations. The passwd can be used for the current user and other users. In order to use passwd command for other users, the root privileges should be provided by logging in to the root or using the sudo command. passwd Command Syntax The … Read more

Linux /etc/passwd File

Linux /etc/passwd File

All of the Linux distributions stores user information in a central file named /etc/passwd. The /etc/passwd file is a simple text based flat database which contains the current Linux system users with information like user name, user ID, default shell etc. Decades ago the /etc/passwd was also containing the user password hashes but because of … Read more

Linux route add Command Tutorial with Examples

Linux route add Command Tutorial with Examples

Linux provides the “route add” command in order to add new network routes. The route add command can be used to add a new gateway to access other networks and the internet. Also, explicit routes can be added to access other networks by specifying the first hop. During connection to a network or internet default … Read more

How To Run Shell Script (.sh File) In Linux?

How To Run Shell Script (.sh File) In Linux?

The Bash and Bash Shell is the main management component for the Linux systems. Commands run on bash in order to complete tasks or jobs. These commands can be stored in a file which is called a shell script. The shell script is used to run single or more commands by just calling the shell … Read more

Linux dstat Command – Monitor Linux Performance and Resource Usage

Linux dstat Command - Monitor Linux Performance and Resource Usage

Linux provides a lot of tools and commands to monitor performance and resource usage. But dstat is one of the most popular commands used by users and system administrators. The dstat command is a replacement for the vmstat, iostat, and ifstat command. It merges all these commands into a single command and a single screen … Read more