CompTIA Linux+ exam questions with
answers
Which of the following would be the BEST solution for a
systems administrator to access the graphical user
environment of a Linux machine remotely
VNC
A technical support engineer receives a ticket from a user
who is trying to create a 1KB file in the /tmp directory and
is getting the following error: No space left on device. The
support engineer checks the /tmp directory, and it has
20GB of free space.
Which of the following BEST describes a possible cause
for this error?
The /tmp directory has been set with an immutable
attribute.
Which of the following is the BEST reason for not storing
database files in the /var directory?
If log files fill up /var, it might corrupt the database.
,A junior system administrator had trouble installing and
running an Apache web server on a Linux server. You
have been tasked with installing the Apache web server
on the Linux server and resolving the issue that
prevented the junior administrator from running Apache.
INSTRUCTIONS
Install Apache and start the service. Verify that the
Apache service is running with the defaults.
Typing "help" in the terminal will show a list of relevant
commands.
If at any time you would like to bring back the initial state
of the simulation, please click the Reset All button.
The lead Linux admin has added a disk, /dev/sdd, to a VM
that is running out of disk space. Place the following steps
in the correct order from first (1) to last (4) to add the
disk to the existing LVM.
1. pvcreate /dev/sdd
,2. vgextend vgdata /dev/sdd
3. lvexstend -L +10GB ?dev/mapper/vgdata-data
4. resize2fs /dev/mapper/vgdata-data
An administrator receives a warning about a filesystem
filling up, and then identifies a large file located at
/tmp/largelogfile. The administrator deletes the file, but
no space is recovered on the
filesystem.
Which of the following commands would BEST assists the
administrator in identifying the
problem?
lsof | grep largelogfile
Which of the following can be used to boot a DVD from a
remote device to initialize a Linux system setup on bare
metal hardware as if it is a local DVD?
UEFI
After starting a long-running script, a systems
administrator needs to verify the frequency of what is
, filling up the /var partition and kill it because it is
consuming too much space.
Which of the following is the correct sequence given only
a terminal is available?
1. CTRL-Z
2. bg
3. watch df /var
4. CTRL-C
5. fg
6. CTRL-C
A Linux administrator must identify a user with high disk
usage. The administrator runs the # du -s /home/*
command and gets the following output:
43 /home/User1
2701 /home/User2
133089 /home/User3
3611 /home/User4
Based on the output, User3 has the largest amount of
disk space used. To clean up the file space, the
answers
Which of the following would be the BEST solution for a
systems administrator to access the graphical user
environment of a Linux machine remotely
VNC
A technical support engineer receives a ticket from a user
who is trying to create a 1KB file in the /tmp directory and
is getting the following error: No space left on device. The
support engineer checks the /tmp directory, and it has
20GB of free space.
Which of the following BEST describes a possible cause
for this error?
The /tmp directory has been set with an immutable
attribute.
Which of the following is the BEST reason for not storing
database files in the /var directory?
If log files fill up /var, it might corrupt the database.
,A junior system administrator had trouble installing and
running an Apache web server on a Linux server. You
have been tasked with installing the Apache web server
on the Linux server and resolving the issue that
prevented the junior administrator from running Apache.
INSTRUCTIONS
Install Apache and start the service. Verify that the
Apache service is running with the defaults.
Typing "help" in the terminal will show a list of relevant
commands.
If at any time you would like to bring back the initial state
of the simulation, please click the Reset All button.
The lead Linux admin has added a disk, /dev/sdd, to a VM
that is running out of disk space. Place the following steps
in the correct order from first (1) to last (4) to add the
disk to the existing LVM.
1. pvcreate /dev/sdd
,2. vgextend vgdata /dev/sdd
3. lvexstend -L +10GB ?dev/mapper/vgdata-data
4. resize2fs /dev/mapper/vgdata-data
An administrator receives a warning about a filesystem
filling up, and then identifies a large file located at
/tmp/largelogfile. The administrator deletes the file, but
no space is recovered on the
filesystem.
Which of the following commands would BEST assists the
administrator in identifying the
problem?
lsof | grep largelogfile
Which of the following can be used to boot a DVD from a
remote device to initialize a Linux system setup on bare
metal hardware as if it is a local DVD?
UEFI
After starting a long-running script, a systems
administrator needs to verify the frequency of what is
, filling up the /var partition and kill it because it is
consuming too much space.
Which of the following is the correct sequence given only
a terminal is available?
1. CTRL-Z
2. bg
3. watch df /var
4. CTRL-C
5. fg
6. CTRL-C
A Linux administrator must identify a user with high disk
usage. The administrator runs the # du -s /home/*
command and gets the following output:
43 /home/User1
2701 /home/User2
133089 /home/User3
3611 /home/User4
Based on the output, User3 has the largest amount of
disk space used. To clean up the file space, the