CompTIA XK0-004 CompTIA Linux+ Certification Exam Online Training
CompTIA XK0-004 Online Training
The questions for XK0-004 were last updated at Nov 23,2024.
- Exam Code: XK0-004
- Exam Name: CompTIA Linux+ Certification Exam
- Certification Provider: CompTIA
- Latest update: Nov 23,2024
A Linux administrator implemented a new HTTP server using the default configuration. None of the users on the network can access the server.
If there is no problem on the network or with the users’ workstations, which of the following steps will BEST analyze and resolve the issue?
- A . Run netstat to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
- B . Run route to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
- C . Run netcat to ensure the port is correctly bound, and configure a static route to the web to allow access on ports 80 and 443
- D . Run route to ensure the port is correctly bound, and configure SELinux to allow access on ports 80 and 443
A junior systems is configuring localization option environment variables.
The administrator is given a checklist of tasks with the following requirements:
View current settings of the LC_ALL environment variable only.
Modify the LANG environment variable to US English Unicode.
Given this scenario, which of the following should be performed to meet these requirements? (Choose two.)
- A . echo $LC_ALL
- B . locale
- C . cat $LC_ALL
- D . export LANG = en_US.UTF-8
- E . export $LANG = en_US.UTF
- F . stty
A system administrator has set up third-party log aggregation agents across several cloud instances. The systems administrator wants to create a dashboard of failed SSH attempts and the usernames used.
Which of the following files should be watched by the agents?
- A . /var/log/audit/audit.log
- B . /var/log/kern.log
- C . /var/log/monitor
- D . /etc/rsyslog.conf
A Linux administrator needs to schedule a cron job to run at 1:15 p.m. every Friday to report the amount of free disk space on the system and to send the output to a file named “freespace”.
Which of the following would meet this requirement?
- A . 13 15 * * 5 df > /freespace
- B . 15 13 * * 5 df > /freespace
- C . 15 1 * * 6 df > /freespace
- D . 15 13 6 * * df > /freespace
An administrator needs to see the type of CPU that a server is running.
Which of the following files contains this information?
- A . /proc/cpuinfo
- B . /etc/devices/info.conf
- C . /dev/proc/cpu
- D . /sys/dev/cpuinfo
A Linux system is running normally when the systems administrator receives an alert that one application spawned many processes. The application is consuming a lot of memory, and it will soon cause the machine to become unresponsive.
Which of the following commands will stop each application process?
- A . kill ‘pidof application’
- B . killall application
- C . kill -9 ‘ps Caux | grep application’
- D . pkill -9 application
CORRECT TEXT
Find the file named core and remove it from the system.
INSTRUCTIONS
Type “help” to display a list of available commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
A systems administrator wants to download a package from a remote server.
Which of the following are the BEST commands to use for this task? (Choose two.)
- A . curl
- B . wget
- C . make
- D . tar
- E . zip
- F . nc
An administrator needs to change the IP address on a server remotely. After updating the configuration files, a network restart is needed. However, the administrator fears that when the network connection drops, the network restart script will be killed before the new IP address has been set.
Which of the following commands would prevent the script from being killed?
- A . nohup service network restart
- B . service network restart &
- C . echo “service network restart” | at now
- D . dg service network restart
Ann, a user, has created a new directory and noticed that permissions on the new directory are as follows:
drwx——. 1 ann ann 0 Jun 11 08:20 work
Which of the following should the administrator do to restore default permissions for newly created directories?
- A . Change umask value in /etc/profile.
- B . Run chmod command to update permissions.
- C . Modify directory ownership to ann:ann with chown.
- D . Execute chattr command to restore default access.
No comment