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 2 out of 7 pages
Exam (elaborations)

Linux Final Exam Prep. | Complete Questions & Answers (Rated 100%)

Document preview thumbnail
Preview 2 out of 7 pages

Linux Final Exam Prep. | Complete Questions & Answers (Rated 100%) Linux Final Exam Prep. | Complete Questions & Answers (Rated 100%) Show the home directory of the current user (Don't list the contents or go there, just print the home directory path) - ANSWER - echo ~ or echo $HOME List everything in the current directory which contains a dot in its name (has some extension) - ANSWER - ls *.* Create subdirectories of the current directory named tom, dick, and harry - ANSWER - mkdir tom dick harry Create two hundred subdirectories of the current directory with the names bill100 through bill299 (No, don't write a command with 200 parameters) - ANSWER - mkdir bill{100...299} Remove every file in the system. (You might not want to actually run it) - ANSWER - rm -r / Find out the number of files stored in the directory /usr/bin - ANSWER - ls -l /usr/bin | wc Remove permission for anyone but the owner to read the file maxie, but leave other existing permissions alone - ANSWER - chmod g-r, o-r maxie Using /ext/passwd, count the number of accounts on the system which contain the string student in their password entry - ANSWER - grep student /etc/passwd | wc Assuming stuff is a sub-directory of the current directory, make sure no one (but root) can create or delete files there - ANSWER - chmod g-w, o-w stuff The types of commands are built-ins, executables, __________, and shell functions - ANSWER - aliases What is the difference between echo Hi there and echo " Hi there"? - ANSWER - Output from the first one omits most of the spaces, but the second preserves them. Which kind of expansion does NOT start with a dollar sign? - ANSWER - pathname expansion The command cat fred{1,2}{3,4,5}.txt is equivalent to - ANSWER - cat What is the | symbol used for in Unix commands? - ANSWER - to use the output of one program as the input to another


Document information

Uploaded on
August 9, 2023
Number of pages
7
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$7.99

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.
Sold
619
Followers
338
Items
3731
Last sold
1 month 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

Whoops! We can’t load your doc right now. Try again or contact support.