• Post author:
  • Post category:Blog
  • Reading time:2 mins read
  • Post last modified:June 12, 2024

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.
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments