Interview Questions

How will you print messages in console?

1. Use the "echo" command to print messages in the console.
Example:

echo "Hello World"

2. Echo command can also be used to print the value of the Shell Script variable.
For example, echo $PATH. This will print the value of the PATH variable