100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
NOS 120 STUDY CHAPTER 7 EXAM QUESTIONS AND ANSWERS $11.49   Add to cart

Exam (elaborations)

NOS 120 STUDY CHAPTER 7 EXAM QUESTIONS AND ANSWERS

 6 views  0 purchase
  • Course
  • NOS 120
  • Institution
  • NOS 120

NOS 120 STUDY CHAPTER 7 EXAM QUESTIONS AND ANSWERS...

Preview 2 out of 8  pages

  • October 17, 2024
  • 8
  • 2024/2025
  • Exam (elaborations)
  • Unknown
  • NOS 120
  • NOS 120
avatar-seller
luzlinkuz
NOS 120 STUDY CHAPTER 7 EXAM
QUESTION AND ANSWERS

When writing shell scripts and using an if statement to determine
whether a set of code should be executed, what is the proper syntax to
end the if construct? Answer: ________________________________ -
ANSWER fi

The subdirectory newdir does not currently exist in the current directory
that you are in. Which of the following commands will create a new
directory named newdir and then change into that directory? (Choose
two.)
Select one or more:
a. mkdir newdir; cd newdir
b. mkdir newdir || cd newdir
c. mkdir newdir >> cd newdir
d. mkdir newdir && cd newdir - ANSWER mkdir newdir && cd newdir
mkdir newdir; cd newdir

How many times will the following loop execute as part of a script:

#!/bin/bash
COUNTER=0
while [ $COUNTER -lt 7 ]
do
echo "hello world"
done
Select one:
a. 7
b. 0
c. 1
d. until ctrl-c is used to terminate it - ANSWER until ctrl-c is used to
terminate it

Which of the following will the split command do on a file when no other
options are specified?

, Select one:
a. It will split a file into new files that are 1 kilobyte each.
b. It will split a file into new equally sized files that are 1/10th of the
original file size.
c. It will split a file into new files that are 1 megabyte each.
d. It will split a file into new files that are 1,000 lines each. - ANSWER It
will split a file into new equally sized files that are 1/10th of the original
file size.

Match the file with the order in which the BASH shell environment files
are read:
/etc/profile, /etc/bashrc, ~/.bashrc, /etc/profile.d/* - ANSWER Second
/etc/profile.d/*
Fourth
~/.bashrc
Third
/etc/bashrc
First
/etc/profile

Which of the following is a valid method of running a script named
myscript.sh? (Choose two)
Select one or more:
a. source myscript.sh
b. run myscript.sh
c. ./myscript.sh
d. exec ./myscript.sh - ANSWER ./myscript.sh
source myscript.sh

Which of the following would be the results of running the command seq
7?
Select one:
a. 6 through 0 being displayed one number per line.
b. 7 through 1 being displayed one number per line.
c. 0 through 6 being displayed one number per line.
d. 1 through 7 being displayed one number per line. - ANSWER 1
through 7 being displayed one number per line.

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 luzlinkuz. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79223 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
$11.49
  • (0)
  Add to cart