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

LX0-101 Online Practice Questions and Answers

Questions 4

Which command will display messages from the kernel that were output during the normal bootup sequence? (Please enter only a single command and do not enter duplicate answers in this field.)

Browse 124 Q&As
Questions 5

An administrator wants to display all currently mounted file systems. Which command would be used? (Please enter only a single command without arguments or options).

Browse 124 Q&As
Questions 6

Which program finds only files that are in an administrator's PATH?

Browse 124 Q&As
Questions 7

What command with all options and/or parameters will send the signal USR1 to any executing process of program apache2?

Browse 124 Q&As
Questions 8

An administrator is planning a partition scheme for a new Linux installation. Which of the following directories should the administrator consider for separate partitions? (Select THREE).

A. /etc

B. /home

C. /var

D. /lib

E. /tmp

Browse 124 Q&As
Questions 9

All of the following commands will update the Modify timestamp on the file /tmp/myfile.txt EXCEPT:

A. file /tmp/myfile.txt

B. echo "Hello" >/tmp/myfile.txt

C. sed -ie "s/1/2/" /tmp/myfile.txt

D. echo -n "Hello" >/tmp/myfile.txt

E. touch /tmp/myfile.txt

Browse 124 Q&As
Questions 10

An administrator is looking for an executable file foo. Which of the following commands would search for foo within directories set in the shell variable, PATH?

A. locate

B. which

C. find

D. query

E. whereis

Browse 124 Q&As
Questions 11

The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. Which of the following does this indicate?

A. The kernel was unable to execute /bin/init

B. The next Stage cannot be read from the hard disk because GRUB was unable to determine the size and geometry of the disk

C. One or more of the filesystems on the hard disk has errors and a filesystem check should be run

D. The BIOS was unable to read the necessary data from the Master Boot Record to begin the boot process

Browse 124 Q&As
Questions 12

Bob accidentally created the subdirectory \bobsdir in his home directory. He tried to remove the subdirectory with the command rmdir \bobsfile only to receive the error, "No such file or directory." . Which of the following commands will remove the directory?

A. rmdir '~bob/\bobsdir'

B. rmdir "~bob/\bobsdir"

C. rmdir ~bob/'bobsdir'

D. rmdir ~bob/\bobsdir

E. rmdir ~bob/\\bobsdir

Browse 124 Q&As
Questions 13

Which of the following commands will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?

A. /bin/grep ^# foobar

B. /bin/grep -v ^# foobar

C. /bin/grep #$ foobar

D. /bin/grep -v #$ foobar

Browse 124 Q&As
Questions 14

Which of the following keys should an administrator press to switch to normal mode in vi?

A. Alt

B. Esc

C. Ctrl

D. Shift

Browse 124 Q&As
Questions 15

How can an administrator update a package only if an earlier version is currently installed on the system?

A. rpm --update rpmname

B. rpm -U rpmname

C. rpm -F rpmname

D. rpm --force rpmname

E. rpm -u rpmname

Browse 124 Q&As
Questions 16

Which of the following commands will show the contents of a gzip compressed tar archive?

A. gzip archive.tgz | tar xvf

B. tar ztf archive.tgz

C. gzip -d archive.tgz | tar tvf

D. tar cf archive.tgz

Browse 124 Q&As
Questions 17

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 18

In compliance with the FHS, in which of the following places are man pages typically found?

A. /usr/share/man

B. /opt/man

C. /usr/doc/

D. /var/pkg/man

E. /usr/local/man

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

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99