How To Create Linux Alias for Two Commands?

How To Create Linux Alias for Two Commands?

Linux alias is used to create an alias for the Linux commands with their options or parameters. The alias is generally used for a single command but there is no restriction on the command count. We can use the Linux alias to create an alias for two or more commands or simply multiple commands. Create … Read more

.bashrc vs .bash_profile

.bashrc vs .bash_profile

Linux, Unix, and MacOS operating systems provide the bash shell in order to provide a command-line environment and shell. The bash shell has different configurations which can be configured using the .bashrc and .bash_profile files. The .bash and .bash_profile files can be used to set different bash configurations like $PATH, history, alias, command prompt, etc. … Read more

What Does Bash “set -x” do?

What Does Bash "set -x" do?

Bash provides the set command in order to enable or disable different features. The set -x command is used to debug bash script where every executed statement is printed to the shell for debugging or troubleshooting purposes. The set -x command can be directly executed in an interactive bash shell or can be used inside … Read more

Bash Function Tutorial

Bash Function Tutorial

Bash is a command-line interface for the Linux and Unix operating systems where also provides some programming features like functions. The purpose of the bash function is to execute single or multiple commands again and again just calling the function not all commands. Also, the programming languages provide functions but they are more advanced than … Read more

What Is SSH (Secure Shell)?

SSH or Secure Shell is a network protocol used to connect remote systems in a secure way. The SSH provides easy access to the remote systems command-line interface. SSH is very popular between network devices, Linux systems in order to access their management command-line interfaces. SSH provides authentication and authorization features and asks for login … Read more

Linux watch Command Tutorial

Linux watch Command Tutorial

Linux provides the watch command in order to run specified commands at the specified periods regularly. The specified command is executed over and over again at the specified intervals and the output is generally printed to the terminal. We can run the disk, process, memory-related commands to monitor them regularly by using the watch command. … Read more

Linux Bash Reading File Tutorial

Linux Bash Reading File Tutorial

Bahs is the most popular shell for Linux distributions and provides different ways and commands to read a file from the command-line interface. Bash can be used to read a file and process it in different ways by using different commands. The file can be a text file or a binary no matter what type … Read more