Vcehome > CompTIA > CompTIA Linux+ > LX0-102 > LX0-102 Online Practice Questions and Answers

LX0-102 Online Practice Questions and Answers

Questions 4

Which of the following configuration files should be modified to set default shell variables for all users?

A. /etc/bashrc

B. /etc/profile

C. ~default/.bash_profile

D. /etc/skel/.bashrc

E. /etc/skel/.bash_profile

Browse 177 Q&As
Questions 5

Which of the following crontab entries could be used to set the system time at regular intervals?

A. 1 0 * * * date $d $t $24

B. 1 0 * * * settime $d $t $24

C. 1 0 * * * date

D. 1 0 * * * /usr/sbin/runcron date

E. 1 0 * * * /usr/sbin/ntpdate ntp1.digex.net > /dev/null 2>and1

Browse 177 Q&As
Questions 6

An administrator is running an email server configured with the default settings. In which directory will the administrator commonly find the delivered mail for the user foo?

A. /var/spool/mail

B. /home/foo/mail

C. /var/mail/spool

D. /var/users/mail

Browse 177 Q&As
Questions 7

Which of the following is pool.ntp.org?

A. A deprecated feature for maintaining system time in the Linux kernel.

B. A website which provides binary and source packages for the OpenNTPD project.

C. A virtual cluster of various timeservers.

D. A community website used to discuss the localization of Linux.

Browse 177 Q&As
Questions 8

On a dual boot system, every time the system is booted back into Linux the time has been set backward by two hours. Which of the following commands will correct the problem so it will not occur again?

A. ntpdate pool.ntp.org

B. date -d 'two hours'

C. hwclock --hctosys --localtime

D. time hwclock

Browse 177 Q&As
Questions 9

Identify the statement that would create a default route using a gateway of 192.168.1.1.

A. netstat -add default gw 192.168.1.1

B. route add default gw 192.168.1.1

C. ip route default 192.168.1.1

D. route default gw 192.168.1.1

E. ifconfig default gw 192.168.1.1 eth0

Browse 177 Q&As
Questions 10

A user was not given permission to use the CRON scheduling system. What file needs to be modified to provide that access? (Please specify the full path to the file).

Browse 177 Q&As
Questions 11

By default, which directories contents will be copied to a new user's home directory when the account is created, passing the -m option to the useradd command?

Browse 177 Q&As
Questions 12

By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Please provide the full path)

Browse 177 Q&As
Questions 13

What command will display the group names and GIDs to which a user belongs? (Provide only the command name with or without path information)

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

PDF

$49.99

VCE

$59.99

PDF + VCE

$67.99