exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 4 discussion

Actual exam question from RedHat's EX200
Question #: 4
Topic #: 1
[All EX200 Questions]

SIMULATION -
Configure a task: plan to run echo hello command at 14:23 every day.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
# which echo
# crontab -e
23 14 * * * /bin/echo hello
# crontab -l (Verify)

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
surac
Highly Voted 4 years, 2 months ago
crontab -u mary -e 23 14 * * * echo "Hello World."
upvoted 8 times
datboy16
2 years, 10 months ago
why are u user mary? this that necessary
upvoted 5 times
...
Mayowa15
2 years ago
there is no user for this question so no need to use -u and any user.
upvoted 2 times
...
...
MisterR0B0T
Most Recent 3 months ago
# crontab -e 23 14 * * * echo "hello" # systemctl restart crond # crontab -l
upvoted 2 times
...
PENNSHARK
11 months ago
vim /etc/crontab 23 14 * * * echo "hello "
upvoted 2 times
...
Rahul95
1 year, 6 months ago
crontab -e min hr * * * /bin/echo "hello" crontab -l #to verify vi /etc/cron.deny #to stop a user from creating a cron job username #add the username in the file
upvoted 1 times
...
zqc
1 year, 7 months ago
23 14 * * * echo "hello" can't display hello on terminal. should force echo "hello" > /dev/pts/0(may different to your tty). I test on RockyLinux Rocky Linux 8.4 (Green Obsidian). Please correct if I am wrong.
upvoted 1 times
cloudsinair
1 year, 6 months ago
Question doesn't ask to echo on specific terminal, user could be log in to tty2 or pts/0. to make it simple, don't add more input.
upvoted 1 times
...
...
2022G
2 years, 7 months ago
#crontab -e 23 14 * * * echo "hello" :wq! #crontab -l =>to check the cronjob
upvoted 2 times
...
AbidBajwa
3 years, 2 months ago
23 14 * * * user echo "hello"
upvoted 1 times
...
DANG257315
3 years, 11 months ago
crontab -e "open editor vi" --> key i insert text 23 14 * * * echo "test" save --> esc :x
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...