How to use Shell?
How to use Shell?
shell commands list | shell script | unix shell | shell commands windows | what is shell | linux shell | bash shell commands | -z option in shell script
shell commands list | shell script | unix shell | shell commands windows | what is shell | linux shell | bash shell commands | -z option in shell script
shell commands list | shell script | unix shell | shell commands windows | what is shell | linux shell | bash shell commands | -z option in shell script
shell commands list | shell script | unix shell | shell commands windows | what is shell | linux shell | bash shell commands | -z option in shell script
shell commands list | shell script | unix shell | shell commands windows | what is shell | linux shell | bash shell commands | -z option in shell script
shell commands list | shell script | unix shell | shell commands windows | what is shell | linux shell | bash shell commands | -z option in shell script shell commands list shell script unix shell shell commands windows what is shell linux shell bash shell commands -z option in shell script
Share
The shell provides you with an interface to the linux system.Using this environment we can run our commands, programs, and shell scripts.
{1} Open a text editor you want to write the script. It can be a command-line editor like vi.
{2} Add the following lines:
#!/bin/bash
echo "Hi Aviance user!"
{3} Save the file in the your workplace as “welcome.sh”.
{4} Move from the text editor to a command shell.
{5} From the command shell, type this to terminal:
$ chmod +x welcome.sh
{6} To execute the script, type this to terminal:
$ ./welcome.sh
OUTPUT: Hi Aviance user!