Given the following output, what is the script for it?
Welcome to Shell scripting
Your home directory is
/home/Amal
You are located now in
/home/Amal/testExam
Your running kernel version is
Linux rehab-virtual-machine 4.13.0-37-generic #42-16.04.1-ubentu SMP … etc
please give the answer in linux
CODE:
#!/bin/sh
echo Welcome to Shell scripting
echo Your home directory is
echo $HOME
echo You are located now in
pwd
echo Your running kernel version is
cat /proc/version
save this file as first.sh in your machine and run the following command:
bash first.sh
SAMPLE OUTPUT:
Get Answers For Free
Most questions answered within 1 hours.