Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2.1 Initiate a script named lab2pt1, and do the following: Tell us what terminal

ID: 3782138 • Letter: 2

Question

2.1 Initiate a script named lab2pt1, and do the following:

Tell us what terminal options are currently set Tell us the name of the terminal you are currently using Calculate the value of the following: 101 * 54.2 - 317 / 47 What is the value of 64 in base 8 Echo the following: Hello World! Set your erase key to be e^, change it back if you want to Type in a nonsense command and kill it close your script logout

2.2 uname, whoami and who Login to the system Initiate a script named lab2pt2, and do the following: Tell us what time it is What’s the name of the system you are using Who are you Who else is logged in right now Close your script logout

Explanation / Answer

2.1)

lab2pt1.sh
==========
# Tell us what terminal options are currently set?
stty -a

# Tell us the name of the terminal you are currently using?
tty

# Calculate the value of the following: 101 * 54.2 - 317 / 47
echo `expr 101 * 54.2 - 317 / 47`

# Echo the following: Hello World!
echo "Hello World!"

# Set your erase key to be e^
stty erase e^

#

# logout - exit from a login shell session or secure shell session.

# close your script
exit

# Test
echo "Won't be printed."

--------------------------------------------------------------------------------------------------------------------------------------------------------------

2.2)

lab2pt2.sh
==========
# what time it is?
date
  
# what's the name of the system you are using?
uname -a
  
# who are you?
whoami
  
# who else is logged in right now?
who   
  
# logout - exit from a login shell session or secure shell session.   
  
# close your script   
exit
  
# Test
echo "Won't be printed."

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote