Inspirational journeys

Follow the stories of academics and their research expeditions

Comptia Linux + 2023 Questions and answer - Part 13

Mary Smith

Thu, 04 Jun 2026

1. Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

A) A. chown dan/staff file.txt
B) B. chown dan:staff file.txt
C) C. chown -u dan -g staff file.txt
D) D. chown dan -g staff file.txt



2. Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

A) A. chmod u=rwx,go=rx /bin/foo
B) B. chmod o+rwx,a+rx /bin/foo
C) C. chmod 577 /bin/foo
D) D. chmod 775 /bin/foo



3. Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

A) A. apropos
B) B. which
C) C. find
D) D. query
E) E. whereis


4. What does the command mount -a do?

A) A. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.
B) B. It shows all mounted file systems that have been automatically mounted.
C) C. It opens an editor with root privileges and loads /etc/fstab for editing.
D) D. It ensures that all file systems listed with the option auto in /etc/fstab are mounted.
E) E. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.


5. Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?

A) A. 0017
B) B. 0640
C) C. 0038
D) D. 0027



1. Right Answer: B
Explanation:

2. Right Answer: A
Explanation:

3. Right Answer: C
Explanation:

4. Right Answer: D
Explanation:

5. Right Answer: D
Explanation:

0 Comments

Leave a comment