How To Cat EOF For Multi-Line String In Linux Bash?

How To Cat EOF For Multi-Line String In Linux Bash?

The cat command is used to put given content to the specified output. If the content is a multiline string, text, or script putting it directly from the command line is a bit tedious. the “Here Documents” can be used to put content to the specified file in an interactive way. The cat, EOF, << … Read more

What Is sh Shell In Linux?

What Is sh Shell In Linux?

Linux is a command-line operating system. As a command-line or shell-based operating system, it provides a different shell in order to use, manage and execute commands. The sh is a popular term and shortcut used to describe the Bourne shell in Linux. Bourne shell is a very simple shell that is provided with most of … Read more

Make Bash Shell Safe with “set -euxo pipefail”

Make Bash Shell Safe with "set -euxo pipefail"

Linux Bash provides the scripting capabilities which is very familiar with programming languages. By using the Bash shell complex applications can be developed. For example, years ago a lot of CGI web applications are developed with the Linux Bash scripting language. But while developing bash scripts there are a lot of pitfalls because it is … Read more

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

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 history Command Tutorial

Linux history Command Tutorial

Linux command-line interface or bash is one of the most strong and popular parts of it. A regular system administrator spends a lot of his time on the terminal and types a lot of commands. Daily operations generally repeat where previously executed commands are generally executed again and again. The history command is used to … Read more

How To Install and Configure oh-my-zsh On Linux (Ubuntu, Debian, Mint, CentOS, Fedora)?

How To Install and Configure oh-my-zsh On Linux (Ubuntu, Debian, Mint, CentOS, Fedora)?

The zsh is a shell provided by Linux distributions. Even it is not much popular as bash it has a geek user base. The oh-my-zsh is a popular tool used to manage the zsh shel configuration in easier and more configureable way. The Oh My Zsh is open source and a community driven framework which … Read more

Linux .bash_profile File

Linux .bash_profile File

Linux bash is a shell provided by most of the Linux distributions. The bash is the easiest to learn and use the shell. The bash shell provides a lot of features that can be configured by using bash configuration files like /etc/profile , ~/.bash_profile , ~/.bash_login etc. The .bash_profile file is located in the current … Read more