Question

Given the following output, what is the script for it? Welcome to Shell scripting Your home...

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

Homework Answers

Answer #1

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:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT