A Linux administrator needs every new file created on a directory to maintain the group permissions of the same directory. Which of the following commands would satisfy this requirement?
A. chmod o+s
B. chmod u+s
C. chmod +s
D. chmod g+s
A Linux administrator needs to back up the folder /usr/domain, and the output must be a gzip compressed tar. Which of the following commands should be used?
A. tar -cv domain.tar.gz /usr/domain
B. tar -cvf /usr/domain domain.tar.gz
C. tar -czvf domain.tar.gz /usr/domain
D. tar -cxzv /usr/domain domain.tar.gz
Which of the following is modified to reconfigure the boot environment?
A. grub-mkconfig
B. grub.cfg
C. update-grub
D. grub2-mkconfig
A company wants to ensure that all newly created files can be modified only by their owners and that all new directory content can be changed only by the creator of the directory. Which of the following commands will help achieve this task?
A. umask 0022
B. umask 0012
C. chmod -R 0644 /
D. chmod -R 0755 /
A user attempts to use the mount -a command but gets the following error:
mount: mount point /mnt/test does not exist
Which of the following commands best describes the action the Linux administrator should take NEXT?
A. mount -a /mnt/test
B. mkdir -p /mnt/test
C. mdadm -p /mnt/test
D. mkfs /mnt/test
E. touch /mnt/test
While creating a file on a volume, the Linux administrator receives the following message: No space left on device. Running the df -m command, the administrator notes there is still 50% of usage left. Which of the following is the NEXT step the administrator should take to analyze the issue without losing data?
A. Run the df -i command and notice the inode exhaustion
B. Run the df -h command and notice the space exhaustion
C. Run the df -B command and notice the block size
D. Run the df -k command and notice the storage exhaustion
A Linux administrator built a GitLab server. Later that day, a software engineer tried to access the server to upload the repository during the final step of installation. The software engineer could not access the website. Which of the following firewall rules would allow access to this site?
A. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate NEW, ESTABLISHED -j ACCEPT
B. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate ESTABLISHED -j ACCEPT
C. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate RELATED, ESTABLISHED -j ACCEPT
D. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate NEW, ESTABLISHED -j REJECT
A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?
A. pvcreate
B. vgcreate
C. lvcreate
D. mkfs.xfs
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
Which of the following is the template for the grub.cfg file?
A. /etc/default/grub
B. /etc/grub2.cfg
C. /etc/sysct1.conf
D. /boot/efi
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.