Correct
Line at the beginning of bash files #!/bin/bash
Character to search at the beginning of the line ^
Character to search at the end of the line $
Character to match any single character (with the exception of the newline character) .
Character to match zero or more of the previous expression *
Character to match the previous expression one of more times +
The flag in the grep command that ignores commented lines -v
What does this regular expression search?
,RHCSA - part 1 Questions With Solutions 100%
Correct
c.\{2\}t any word beginning with a c, followed by exactly any two characters, and ending
with a t
(i.e coat, cart)
Command to get an overview of pending jobs for the current user atq
(OR at -l)
Command to remove jobs atrm JOBNUMBER
Command to inspect commands that will run when a job is executed at -c JOBNUMBER
Command used to manage jobs crontab
Command to list the jobs for the current user crontab -l
Command to remove all jobs for the current user crontab -r
, RHCSA - part 1 Questions With Solutions 100%
Correct
Command to edit jobs for the current user crontab -e
Command to remove all jobs, and replace with the jobs read from filename. (If no file is
specified, stdin is used.) crontab FILENAME
Order of fields in crontab file minutes (0-59), hours (0-23), day of month (1-31), month
(1-12), day of week (0-6), command
Character to specify "Do not care"/always in crontab file *
How to indicate an interval of x in the crontab file */x
(i.e */7 in the minutes column will run every 7 minutes)
What two locations are recurring system jobs defined? /etc/crontab
/etc/cron.d