Leads4pass > 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?

Buy Now
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.)

Buy Now
Questions 6

Which of the following Debian package system commands will list all partially installed packages and suggest how to get them correctly installed?

A. dpkg -C

B. apt-get -u

C. dpkg -Dh

D. dpkg -l

E. apt-get -y

Buy Now
Questions 7

Which of the following is true when hard-linked files are present?

A. The output of stat will report "hard" instead of "regular file"

B. The hard-linked files may not be empty

C. Both files will share the same inode

D. Issuing a long directory listing with ls -l will indicate the link with "->"

E. The file permissions will be prefixed by an "h", eg. hrwxr-x-r-x

Buy Now
Questions 8

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

Buy Now
Questions 9

To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which of the following options will need to be added to the corresponding line in /etc/fstab?

A. nouidchk

B. alluser

C. user

D. auto

Buy Now
Questions 10

Which of the following would be accomplished if the below line is run as root? chown -R bert /home/bert/*

A. Nothing, this command is invalid.

B. It would revoke bert's ownership from the home directory to root.

C. It would change user ownership of all files in /home/bert to bert.

D. It would set the group ownership of the directory /home/bert to bert.

E. It would set ownership of all files and subdirectories in /home/bert to bert.

Buy Now
Questions 11

An administrator wants to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. Which of the following commands should the administrator issue?

A. rpm -qp apache-xml.i386.rpm

B. rpm -qv apache-xml.i386.rpm

C. rpm -ql apache-xml.i386.rpm

D. rpm -qpl apache-xml.i386.rpm

Buy Now
Questions 12

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

Buy Now
Questions 13

An administrator is having some trouble with a disk partition and needs to do maintenance on this partition. The administrator's users home directories are on it and several are logged in. Which of the following commands would disconnect the users and allow the administrator to safely execute maintenance tasks?

A. telinit 1

B. shutdown -r now

C. killall -9 inetd

D. /bin/netstop --maint

E. /etc/rc.d/init.d/network stop

Buy Now
Exam Code: LX0-101
Exam Name: CompTIA Linux+ [Powered by LPI] Exam 1
Last Update: Jan 16, 2025
Questions: 124
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99