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 11 pages
Exam (elaborations)

DCOM 142 FINAL PAPER 2025 QUESTIONS WITH ANSWERS RATED A+

Document preview thumbnail
Preview 2 out of 11 pages

DCOM 142 FINAL PAPER 2025 QUESTIONS WITH ANSWERS RATED A+

Content preview

DCOM 142 FINAL PAPER 2025 QUESTIONS WITH ANSWERS
RATED A+
✔✔Which are appropriate editors for writing shell scripts? (choose two) - ✔✔nano

vi

✔✔Given the following script:

while [ ! -f /tmp/foo ]; do

echo -n "."

process_data > /tmp/foo

done



Which of the following are true? (choose two) - ✔✔process_data will be called at most
once

If a file called /tmp/foo exists, process_data won't be run

✔✔The visudo command uses which text editor by default? - ✔✔vi

✔✔Which of the following commands will display the groups that the user bob belongs
to? (choose one) - ✔✔id bob

✔✔Which user can view the /etc/shadow file? - ✔✔The root user

✔✔Which of the following commands will display how long the system has been running
since the last boot? (choose two) - ✔✔w
uptime

✔✔Which files contain user account information? (choose two) - ✔✔/etc/passwd

/etc/shadow

✔✔Which of the following commands will allow you to switch to the user, branch?
(choose three) - ✔✔su -l branch

su - branch
.

, su branch

✔✔Which command can be used to view the /etc/passwd file entries? - ✔✔getent

✔✔Which command will display the UID, GID and groups your current user belongs to?
- ✔✔id

✔✔In distributions that do not allow the root user to login directly or via the su
command, the installation process automatically configures one user account to be able
to use the sudo command to execute commands as if they were executed by the root
user. - ✔✔True

✔✔The /etc/group file follows what structure? -
✔✔group_name:password_placeholder:GID:user_list

✔✔Which of the following commands will display the group(s) a user belongs to? - ✔✔id

✔✔The /etc/sudoers file should be edited directly by root using the visudo command. -
✔✔True

✔✔A GID is associated with a group name. - ✔✔True

✔✔The /etc/shadow file contains plain-text passwords. - ✔✔False

✔✔The sudo command allows regular users to. - ✔✔...run certain commands as the
root user.

✔✔Sudo privileges can be used to specify which user can use the sudo command to
execute commands as other users. - ✔✔True

✔✔Each user belongs to at least one group. - ✔✔True

✔✔A user can belong to. - ✔✔At least 16 groups

✔✔Which command will display the users that are currently logged in to the system? -
✔✔who

✔✔Which of the following files contains encrypted user password information? -
✔✔/etc/shadow

✔✔Which of the following files contains user IDs? - ✔✔/etc/passwd

Document information

Uploaded on
May 10, 2025
Number of pages
11
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.49

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.
Pyramids
4.0
(2)
Sold
22
Followers
4
Items
7208
Last sold
3 weeks 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