Inspirational journeys

Follow the stories of academics and their research expeditions

Comptia Linux + 2023 Questions and answer - Part 11

Mary Smith

Wed, 26 Mar 2025

Comptia Linux + 2023 Questions and answer - Part 11

1. Which of the following steps prevents a user from obtaining an interactive login session?

A) A. Run the command chsh -s /bin/false with the user name.
B) B. Set the UID for the user to 0.
C) C. Remove the user from the group staff.
D) D. Add the user to /etc/noaccess.
E) E. Create a .nologin file in the user's home directory.


2. Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

A) A. *
B) B. -
C) C. s
D) D. x



3. Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)(Select 2answers)

A) A. Year
B) B. Minute
C) C. Username
D) D. Command



4. Which command can be used to delete a group from a Linux system?

A) A. groupdel
B) B. groupmod
C) C. groups
D) D. groupedit



5. What is the purpose of the iconv command?

A) A. It converts bitmap images from one format to another such as PNG to JPEG.
B) B. It verifies that the root directory tree complies to all conventions from the Filesystem Hierarchy Standard (FHS).
C) C. It displays additional meta information from icon files ending in .ico.
D) D. It changes the mode of an inode in the ext4 file system.
E) E. It converts files from one character encoding to another.


1. Right Answer: A
Explanation:

2. Right Answer: D
Explanation:

3. Right Answer: B,D
Explanation:

4. Right Answer: A
Explanation:

5. Right Answer: E
Explanation:

0 Comments

Leave a comment