100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
NOS 120 Final Exam Questions and Answers $12.49   Add to cart

Exam (elaborations)

NOS 120 Final Exam Questions and Answers

 0 view  0 purchase
  • Course
  • Prep Tests
  • Institution
  • Prep Tests

NOS 120 Final Exam Questions and Answers Require that script writers place comment lines inside the scripts using the # symbol to begin each comment line. - ANSWER-Your organization routinely uses scripts, but as some employees have left, there are scripts that contain only command lines and no ...

Preview 3 out of 29  pages

  • November 11, 2024
  • 29
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Prep Tests
  • Prep Tests
avatar-seller
OliviaWest
Copyright © OLIVIAWEST 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED




NOS 120 Final Exam Questions and Answers


Require that script writers place comment lines inside the scripts using the # symbol to begin each

comment line. - ANSWER✔✔-Your organization routinely uses scripts, but as some employees have left,

there are scripts that contain only command lines and no one is certain of their purpose.What steps can

be taken to ensure a way for others to know the purpose of a script?


Bash


csh


zsh - ANSWER✔✔-Which of the following shells enables the use of scripts? (Choose all that apply.)


alias l=" ls -a" - ANSWER✔✔-You frequently use the command ls -a and want to save time by just

entering l to do the same thing.Which of the following commands enables you to set your system to view

hidden files by only entering l ?


sh -v


sh -x - ANSWER✔✔-You have written a script, but when you run it there is an error. Which of the

following commands can you use to debug your script? (Choose all that apply.)


trap - ANSWER✔✔-You have written a shell program that creates four temporary files.Which of the

following commands can you use to remove these files when the script has completed its work?


case - ANSWER✔✔-Which of the following commands works well for menus used in a script? (Choose all

that apply.)




Copyright ©Stuvia International BV 2010-2024 Page 1/29

, Copyright © OLIVIAWEST 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED


echo $PATH - ANSWER✔✔-You are currently in the source directory, which is the new directory you have

just created for storing and running your scripts.You want to make certain that the source directory is in

your default path.Which of the following commands enables you to view the current default path

settings?


You did not give all users in your department execute permission for that script. - ANSWER✔✔-You have

created a script for use by your entire department in a commonly accessed directory. Only you are able

to run the script, which works perfectly.Which of the following is likely to be the problem?


more account[ a,b,c,d,e ] - ANSWER✔✔-Your current working directory contains a series of files that

start with the word "account" combined with a, b, c, d, and e, such as accounta, accountb, and so on.

Which of the following commands enables you to view the contents of all of these files? (Choose all that

apply.)


if - ANSWER✔✔-For which of the following logic structures used within a script is fi the final line for that

logic structure? (Choose all that apply.)


!


<


%


* - ANSWER✔✔-Which of the following are examples of arithmetic or relational operators? (Choose all

that apply).


You need to use the export command so these variables have global use. - ANSWER✔✔-You have created

a series of scripts that use the same environment variables. However, when you run these scripts, some

of them do not seem to recognize the environment variables you have set. What is the problem?


Copyright ©Stuvia International BV 2010-2024 Page 2/29

, Copyright © OLIVIAWEST 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED


Enter the command, set -o noclobber before you start. - ANSWER✔✔-You have spent the last two hours

creating a report in a file and afterwards you use cat to create a new file. Unfortunately the new file

name you used was the same as the name you used for the report, and now your report is gone.What

should you do next time to prevent this from happening?


OSTYPE - ANSWER✔✔-You have remotely logged into a computer running UNIX or Linux, but you are not

certain about which operating system you are using. However, when you display the contents of the

variable it shows which operating system you are using.


printenv - ANSWER✔✔-What command can you use to view the environment and configuration

variables already configured on your system?


let x=5*9


let x=y+10


let m=12/4


let r=128-80 - ANSWER✔✔-Which of the following are valid expressions? (Choose all that apply.)


do - ANSWER✔✔-When you type for wood maple spruce oak pine at the command line and then press

Enter, what should you type next at the > prompt?


myfiles='ls -l' - ANSWER✔✔-You want to store a long listing of your files in a variable called myfiles.Which

of the following commands enables you to do this?


There should be a dollar sign in front of selection, as in "$selection" - ANSWER✔✔-What error is in the

following script code?




Copyright ©Stuvia International BV 2010-2024 Page 3/29

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller OliviaWest. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80796 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.49
  • (0)
  Add to cart