Variables are important components of every programming language and are used to hold different data. Scripting languages do not require to declare variable type first. In Bash shell, the value of variable is a string, even if we specify the value of that variable to be enclosed in double quotes or quotes or not. In addition, there are many variables used by the shell environment and the operating system environment to store default values, called environment variables.
In Linux, echo and printf are 2 commands that are used commonly when we need to print text to the screen. In this article, we will learn how to use and the difference between these 2 commands.