A Linux administrator is migrating a physical server to a virtual instance.
Which of the following commands would allow the administrator to create a new initial RAM disk to use in the boot process?
A. mkinitrd
B. grub-install
C. grub2-mkconfig
D. initramfs
A Linux administrator needs to update a script that is stored in the team's Git repository.
After the administrator clones the repository, which of the following is the BEST method to ensure merging changes in the future will not overwrite other users' commits to the repository?
A. Create a new repository based on the existing repository
B. Create a new folder with the changes under the administrator's name
C. Create a new script and commit it to the master branch
D. Create a new branch and make modifications to the code
A junior Linux administrator receives a request to add a user, Ann, to the secondary group "cashiers". Ann is also a member of the secondary group, "managers". The administrator issues the following command:
usermod -G cashiers Ann
Later, Ann reports that she is unable to access any of the files or directories in "managers".
Which of the following commands should the administrator issue to resolve Ann's group memberships?
A. usermod -G cashiers,managers Ann
B. usermod -g cashiers,managers Ann
C. groupmod -G Ann cashiers,managers
D. groupmod -ga Ann cashiers,managers
A technician wants to implement a firewall ACL to block external access to the company's SSH server.
Which of the following should the technician implement to configure the firewall so it will inform the source of the action taken by the ACL?
A. Use the LOG option
B. Use the REJECT option
C. Use the CONNTRACK option
D. Use the DROP option
A company's httpd server has stopped working and restarting the service does not fix the issue. A junior systems administrator is investigating log files for clues. Which of the following commands should the administrator execute?
A. journalctl -u httpd
B. journalctl -l httpd
C. systemctl -s httpd
D. systemctl -l httpd
A systems administrator is investigating degraded server performance. The administrator executes diagnostic commands that result in the following output:
Which of the following is the MOST likely cause of the degraded server performance?
A. The processes running in the background are causing high load averages
B. The server has not been rebooted for 1,055 days causing old processes to utilize the CPU
C. Too many write operations are happening on the server, causing the IO to wait for requests to be served
D. The server has little free memory available and is not using any swap memory, causing slow operations
An administrator clones a Git repository onto a local laptop. While inspecting the code, the administrator notices a bug and wants to fix it. Which of the following is the BEST command for the administrator to use to test a patch for the script prior to updating the version saved in master?
A. init
B. branch
C. stash
D. commit
E. merge
A technician wants to archive and compress all files and folders contained within the /home/user directory. Which of the following commands should the technician execute?
A. tar xvfz /home/user user.tar.z
B. tar cvfz ./user.tar.gz /home/user
C. tar cvfx user.tar.zip /home/user
D. tar xfvZ user.tar.Z ./home/user
A system shows high utilization of swap space but low utilization of physical memory.
Which of the following commands should an administrator run to free up usable swap space?
A. mkswap ; swapon -a
B. free andand swapon -a
C. swapoff -a andand swapon -a
D. swapon -a ; swapoff -a
A user needs to access the GUI of an application on a remote console using encrypted x-forwarding. Which of the following BEST accomplishes this?
A. scp -X user@server "./GUIapplication.bin"
B. ssh user@server "./GUIapplication.bin"
C. ssh -X user@server "./GUIapplication.bin"
D. ssh-copy-id user@server "./GUIapplication.bin"
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your XK0-004 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.