Certbus > CompTIA > CompTIA Linux+ > LX0-101 > LX0-101 Online Practice Questions and Answers

LX0-101 Online Practice Questions and Answers

Questions 4

In which directory must definition files be placed to add additional repositories to yum?

Browse 124 Q&As
Questions 5

What file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Please enter only a single command and do not enter duplicate answers in this field.)

Browse 124 Q&As
Questions 6

What command is used to display a file in octal format? (Please enter only a single command and do not enter duplicate answers in this field.)

Browse 124 Q&As
Questions 7

The priority of any process can range from -20 to . (Provide only the numerical value).

Browse 124 Q&As
Questions 8

An administrator has written a custom tool on their local system. Following the Filesystem Hierarchy Standard (FHS), where should the administrator install the binaries to be available to all users on the administrator's system?

Browse 124 Q&As
Questions 9

Which of the following is the output when the below shell script executes? cat <

A. The contents of the file foobar

B. Hello

C. No output but a file named foobar is created

D. Hello foobar

E. Hello foobar foobar

Browse 124 Q&As
Questions 10

In bash, inserting 1>and2 after a command redirects:

A. standard error to standard input.

B. standard input to standard error.

C. standard output to standard error.

D. standard error to standard output.

E. standard output to standard input.

Browse 124 Q&As
Questions 11

Which of the following commands will create an ext3 filesystem on /dev/hda2?

A. /sbin/mke2fs -d /dev/hda2

B. /sbin/mke2fs -j /dev/hda2

C. /sbin/mke2fs -m 3 /dev/hda2

D. /sbin/mke2fs -c ext3 /dev/hda2

Browse 124 Q&As
Questions 12

While editing a file in vi, an administrator realizes that the wrong file is being changed. Which of the following vi command sequences will allow the administrator to quit without saving any changes?

A. :Q!

B. :q!

C. :w!

D. :wq!

Browse 124 Q&As
Questions 13

To ensure that a running process continue to execute after you log out, the process should be started with which of the following commands?

A. nohup

B. fg

C. live

D. sh

Browse 124 Q&As
Questions 14

Which of the following commands can be used to instruct the init process to switch runlevels? (Select TWO).

A. telinit

B. initctl

C. init

D. reinit

E. runlevel

Browse 124 Q&As
Questions 15

An administrator is experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf. The administrator does not want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead. Which of the following commands would accomplish this?

A. ln -s /tmp/foo.d/foo.conf /etc/foo.conf

B. ln /tmp/foo.d/foo.conf /etc/foo.conf

C. ln -s /etc/foo.conf /tmp/foo.d/foo.conf

D. ln /etc/foo.conf /tmp/foo.d/foo.conf

Browse 124 Q&As
Questions 16

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

A. cat < myapp | cat > file1.log

B. myapp 0>and1 | cat > file1.log

C. myapp | cat > file1.log

D. myapp | tee file1.log

E. tee myapp file1.log

Browse 124 Q&As
Questions 17

Select the line that BEST represents what permissions the /etc/passwd file should have.

A. -rw------- 1 root root 531 Jun 5 22:45 /etc/passwd

B. -rw-r--r-- 1 root root 531 Jun 5 22:45 /etc/passwd

C. -rw-r--r-- 1 1 1 531 Jun 5 22:45 /etc/passwd

D. All answers listed are not correct.

E. All answers listed are correct.

Browse 124 Q&As
Questions 18

Which is the default process priority when a process is started using the nice command?

A. 0

B. -10

C. -20

D. 10

Browse 124 Q&As
Exam Code: LX0-101
Exam Name: CompTIA Linux+ [Powered by LPI] Exam 1
Last Update: Mar 17, 2025
Questions: 124 Q&As

PDF

$49.99

VCE

$55.99

PDF + VCE

$65.99