CISCO NETWORKING ACADEMY - LINUX MIDTERM EXAM MODULES
1- 8 FULLY SOLVED #19
To go to the end of an info page, press: - correct answer ]
N
**END
N
To go to the next match of a search on a man page, press: - correct answer }
**n
N
]
When interpreting the SYNOPSIS of a command found on a man page, the "|" means: -
correct answer **The items it separates cannot be used together
The items it separates can be used together
After performing a search, you can use the ____ key to return to a previously found
match: - correct answer n
**N
U
D
To move a page forward one at a time while viewing a man page, press the following: -
correct answer Enter
**Spacebar
A
M
The ls command without options or arguments... - correct answer ...lists the contents of
a user's home directory.
...prompts for a directory to list.
**...lists the contents of the current directory.
...generates an error as this command requires arguments.
Which option can be used with the rm command to prompt before deleting? - correct
answer I
**-i
A
-P
The rm command can delete multiple files at once.
True or False? - correct answer **True
False
Which of the following commands can be used to rename a file? - correct answer rn
, Cp
Name
**mv
The touch command can be used to:
(choose two) - correct answer Change a file's name
**Update the time stamp of existing files
Change ownership of a file
**Create new files
You try to compress a file that is already compressed. Which of the following statements
is true? - correct answer The file will be deleted
The file changed while you were compressing it
The compression algorithm needs to be set to the "currently compressed" mode for it to
be compressed further
The file will actually be uncompressed
**The file will not be compressed any further than it already was
Which of the following commands can be used to compress a file?
(choose three) - correct answer cat
Bunzip2
**zip
**bzip
**gzip
The three main modes of tar are:
(choose three) - correct answer **Create
**Extract
**List
Compress
Copy
In the command tar -czf foo.tar.gz bar, what is the purpose of the f flag? - correct
answer Tells tar to read from the file that follows the flag
Tells tar to copy only files, and not directories
Specifies extra compression is to be used
**Tells tar to write to the file that follows the flag
Tells tar to print the name of each file as it is processed
Which two commands do the same thing?
(choose two) - correct answer tar -xzf foo.tar.gz
Tar -x foo | gzip
Tar -tzf foo.tar.gz
**tar -czf foo.tar.gz foo
**tar -c foo | gzip > foo.tar.gz
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 YOURVERIFIEDEXAMPLUG. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.09. You're not tied to anything after your purchase.