Inspirational journeys

Follow the stories of academics and their research expeditions

Comptia Linux + 2023 Questions and answer - Part 35

Mary Smith

Sat, 21 Feb 2026

Comptia Linux + 2023 Questions and answer - Part 35

1. Which of the following commands can be used to create a USB storage media from a disk image?

A) A. gdisk
B) B. dd
C) C. cc
D) D. fdisk
E) E. mount


2. In Bash, inserting 1>&2 after a command redirects

A) A. standard error to standard input.
B) B. standard input to standard error.
C) C. standard output to standard error.
D) D. standard error to standard output.
E) E. standard output to standard input.


3. What command will generate a list of user names from /etc/passwd along with their login shell?

A) A. column -s : 1,7 /etc/passwd
B) B. chop -c 1,7 /etc/passwd
C) C. colrm 1,7 /etc/passwd
D) D. cut -d: -f1,7 /etc/passwd



4. In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

A) A. -dirmax
B) B. -maxdepth
C) C. -maxlevels
D) D. -n
E) E. -s


5. Which of the following statements is correct regarding the command foo 1> bar?

A) A. The stdout from the command foo is appended to the file bar.
B) B. The stdout from the command foo overwrites the file bar.
C) C. The command foo receives its stdin from the file bar.
D) D. The command foo receives its stdin from the stdout of the command bar.
E) E. The stderr from the command foo is saved to the file bar.


1. Right Answer: B
Explanation:

2. Right Answer: C
Explanation:

3. Right Answer: D
Explanation:

4. Right Answer: B
Explanation:

5. Right Answer: B
Explanation:

0 Comments

Leave a comment