Inspirational journeys

Follow the stories of academics and their research expeditions

Comptia Linux + 2023 Questions and answer - Part 23

Mary Smith

Sat, 24 May 2025

Comptia Linux + 2023 Questions and answer - Part 23

1. Which of the following commands will convert files from one character encoding to another?

A) A. convert
B) B. enc2utf
C) C. iconv
D) D. transcode



2. Which environment variable will override all LC_* variables?

A) A. LANG
B) B. LC_ALL
C) C. LC_COLLATE
D) D. LOCALE



3. Which command will set the local machine's timezone to UTC?

A) A. cat UTC > /etc/timezone
B) B. ln -s /usr/share/zoneinfo/UTC /etc/localtime
C) C. date --timezone=UTC
D) D. mv /usr/timezone/UTC /etc



4. Which of the following actions prevents a specific user from scheduling tasks using at or batch?

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


5. What is the main difference between the batch and at commands?

A) A. The batch command will run multiple times. The at command will only run once.
B) B. The commands of a batch job run sequentially one after another while the commands in at jobs may run in parallel.
C) C. The at command reads commands from standard input. The batch command requires a command line argument.
D) D. The at command e-mails results to the user. The batch command logs results to syslog.



1. Right Answer: C
Explanation:

2. Right Answer: B
Explanation:

3. Right Answer: B
Explanation:

4. Right Answer: C
Explanation:

5. Right Answer: B
Explanation:

0 Comments

Leave a comment