A systems administrator created a user cron to run a scheduled database backup cronjob on the server at 1 a.m. every day. The following is the cronjob syntax:
0 1 * * * /bin/sh backup.sh
The backups, however, are not being created. When checking the crontab file, the administrator sees the following error:
/var/spool/cron/crontab/cron: Permission denied
Which of the following will permit the cronjob to execute?
The error indicates that the cron user does not have permission to run the cronjob. Creating a cron.allow file and adding the user cron to it will allow that user to run cronjobs. The cron.allow file is a security feature that controls which users are allowed to use cron.
A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?
The commandsudo fdisk -lshould be issued to verify the device name of the partition. Thesudocommand allows the administrator to run commands as the superuser or another user. Thefdiskcommand is a tool for manipulating disk partitions on Linux systems. The-loption lists the partitions on all disks or a specific disk. The commandsudo fdisk -lwill show the device names, sizes, types, and other information of the partitions on all disks. The administrator can identify the device name of the partition by looking at the output. This is the correct command to use to accomplish the task. The other options are incorrect because they either do not list the partitions (sudo fdisk /dev/sdaorsudo fdisk -h) or do not exist (sudo fdisk -s /dev/sda).Reference:CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 10: Managing Storage, page 317.
A systems administrator is working on an SFTP server configuration. Which of the following commands will best enable the connectivity to that service from the 10.10.0.0/24 network?
Step-by-Step Comprehensive Detailed
Command
A: This command explicitly allows traffic from the 10.10.0.0/24 network to port 22 (SSH/SFTP).
Why Other Options are Incorrect:
B: Does not specify the source network.
C: Does not specify the port.
D: Syntax is invalid for ufw.
CompTIA Linux+ Study Guide: Firewall Management
man ufw
Which of the following Git commands would send committed changes to a remote repository?
Comprehensive and Detailed Step-by-Step
git push origin master pushes committed changes to the remote repository.
git stash temporarily saves changes but does not push them.
git commit -a commits changes but does not send them to the remote repository.
git add . stages changes but does not commit or push them.
A Linux administrator is configuring crontab and needs to schedule a task to run only on Saturday and Sunday at 9:00 a.m. every week of the year. Which of the following should the administrator use?
Comprehensive and Detailed Step-by-Step
0 9 * * 6,0 ensures execution at 9:00 AM on Saturdays (6) and Sundays (0).
1-5 would run the script Monday-Friday.
*/3 is incorrect because it runs every three days.
1 * * runs only on the 1st day of each month.
Jonell
10 days agoMaddie
1 months agoTrina
2 months agoMicheline
3 months agoAlona
3 months agoLanie
4 months agoVeronica
4 months agoLashon
5 months agoViki
5 months agoNenita
5 months agoNoe
6 months agoMyong
6 months agoFlo
6 months agoCristy
7 months agoOmega
7 months agoLore
7 months agoGarry
7 months agoLynette
8 months agoKrissy
8 months agoMiriam
8 months agoVeda
9 months agoRickie
9 months agoQueen
10 months agoLeota
10 months agoYolando
10 months agoMatilda
10 months agoLynette
11 months agoFabiola
11 months agoValentine
11 months agomeezo
12 months agohekeho
12 months agoMark james
12 months agotokyo
12 months agoarmstrong
12 months ago