Inspirational journeys

Follow the stories of academics and their research expeditions

Comptia Linux + 2023 Questions and answer - Part 25

Mary Smith

Mon, 24 Mar 2025

Comptia Linux + 2023 Questions and answer - Part 25

1. Each entry in a crontab must end with what character?

A) A. Tab
B) B. Space
C) C. Backslash
D) D. Newline



2. To prevent a specific user from scheduling tasks with at, what should the administrator do?

A) A. Add the specific user to /etc/at.allow file.
B) B. Add the specific user to [deny] section in the /etc/atd.conf file.
C) C. Add the specific user to /etc/at.deny file.
D) D. Add the specific user to nojobs group.
E) E. Run the following: atd --deny [user].


3. Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

A) A. 0 * * * 30 myscript
B) B. 30 * * * 6 myscript
C) C. 30 0 * * 0 myscript
D) D. 30 0-23 * * 0 myscript
E) E. 0 0-23 * * 30 myscript


4. Which of the following files assigns a user to its primary group?

A) A. /etc/pgroup
B) B. /etc/shadow
C) C. /etc/group
D) D. /etc/passwd
E) E. /etc/gshadow


5. Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program toPortuguese (pt)?

A) A. export LANGUAGE='pt'
B) B. export MESSAGE='pt'
C) C. export UI_MESSAGES='pt'
D) D. export LC_MESSAGES='pt'
E) E. export ALL_MESSAGES='pt'


1. Right Answer: D
Explanation:

2. Right Answer: C
Explanation:

3. Right Answer: D
Explanation:

4. Right Answer: D
Explanation:

5. Right Answer: D
Explanation:

0 Comments

Leave a comment