Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 42 pages
Exam (elaborations)

NOS 120 Final Frequently Most Tested Questions and Verified Accurate Answers

Document preview thumbnail
Preview 4 out of 42 pages

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? Require that script writers place comment lines inside the scripts using the # symbol to begin each comment line. Which of the following shells enables the use of scripts? (Choose all that apply.) Bash csh zsh 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 ? alias l=" ls -a" 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.) sh -v sh -x TestTrackers: Unlock Your Exam Potential! | Quality Practice Materials | Boost Your Confidence Today! | Thank You for Choosing Us! © 2024 TestTrackers Customer Support: [] Resources & Updates: [Testtrackers - Stuvia US] Your Success is Our Mission! 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? trap Which of the following commands works well for menus used in a script? (Choose all that apply.) case 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 pat

Content preview

TestTrackers: Unlock Your Exam Potential! | Quality Practice Materials | Boost Your Confidence Today!



NOS 120 Final Frequently Most Tested
Questions and Verified Accurate Answers
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?

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



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

✓ Bash

✓ csh

✓ zsh



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 ?

✓ alias l=" ls -a"



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.)

✓ sh -v

✓ sh -x




|
✓ Thank You for Choosing Us! ✓ Resources & Updates: [Testtrackers - Stuvia US]
✓ © 2024 TestTrackers ✓ Your Success is Our Mission!
✓ Customer Support: [+254707240657]

, TestTrackers: Unlock Your Exam Potential! | Quality Practice Materials | Boost Your Confidence Today!


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?

✓ trap



Which of the following commands works well for menus used in a script? (Choose all that

apply.)

✓ case



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?

✓ echo $PATH



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?

✓ You did not give all users in your department execute permission for that script.



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.)

✓ more account[ a,b,c,d,e ]



|
✓ Thank You for Choosing Us! ✓ Resources & Updates: [Testtrackers - Stuvia US]
✓ © 2024 TestTrackers ✓ Your Success is Our Mission!
✓ Customer Support: [+254707240657]

, TestTrackers: Unlock Your Exam Potential! | Quality Practice Materials | Boost Your Confidence Today!


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

structure? (Choose all that apply.)

✓ if



Which of the following are examples of arithmetic or relational operators? (Choose all that

apply).

✓ !

✓ <

✓ %

✓ *



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?

✓ You need to use the export command so these variables have global use.



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?

✓ Enter the command, set -o noclobber before you start.




|
✓ Thank You for Choosing Us! ✓ Resources & Updates: [Testtrackers - Stuvia US]
✓ © 2024 TestTrackers ✓ Your Success is Our Mission!
✓ Customer Support: [+254707240657]

, TestTrackers: Unlock Your Exam Potential! | Quality Practice Materials | Boost Your Confidence Today!


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.

✓ OSTYPE



What command can you use to view the environment and configuration variables already

configured on your system?

✓ printenv



Which of the following are valid expressions? (Choose all that apply.)

✓ let x=5*9

✓ let x=y+10

✓ let m=12/4

✓ let r=128-80



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?

✓ do



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?

✓ myfiles='ls -l'




|
✓ Thank You for Choosing Us! ✓ Resources & Updates: [Testtrackers - Stuvia US]
✓ © 2024 TestTrackers ✓ Your Success is Our Mission!
✓ Customer Support: [+254707240657]

Document information

Uploaded on
November 20, 2024
Number of pages
42
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$14.59

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ScholarsAscend
3.7
(79)
Sold
469
Followers
39
Items
29397
Last sold
8 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions