Refer to the exhibit. Examine both the output and the source code of the Linux shell script sample.sh. Which two statements describe the variables contained in the sample.sh script? (Choose two.)

Last Updated on March 11, 2021 by Admin

Refer to the exhibit. Examine both the output and the source code of the Linux shell script sample.sh. Which two statements describe the variables contained in the sample.sh script? (Choose two.)

ITE v7.0 – IT Essentials ( Version 7.0) – IT Essentials 7.0 & 7.02 Final Exam 1 – 14 Answers 12

ITE v7.0 – IT Essentials ( Version 7.0) – IT Essentials 7.0 & 7.02 Final Exam 1 – 14 Answers 12

 

  • The $uname variable contains the username of the logged in user.
  • The $HOSTNAME variable is defined within the script.
  • The $DAY variable is a standard environmental variable in Linux.
  • The $HOSTNAME variable is an environmental variable initialized by the system.
  • The value of the $HOME variable is the same for all logged in users.
  • The $uname variable is an input variable defined within the script.
0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments