Question: Red Hat: 1 : sudo - s 2 : cd / var / log 3 : ls - altr | tail 4 : tail /
Red Hat:
: sudo s
: cd varlog
: ls altr tail
: tail varlogsecure
: grep uservarlogsecure tail
: sudo systemctl restart exim
: find varlog mmin
: tail varlogeximmainlog # adjust this path based on the actual location if exim is installed
: grep irl rcconf
: tail varlogdnflog
: last
: lastlog
: logger localalert "I am a kitty, sittin in ur system watchin u work
: ls altr tail : tail varlogmessages
For this assignment run the commands above, submit Screenshot of Commands and Output: Screenshots showing each command executed along with its output in the terminal.
This includes:
The directory listing ls altr tail
tail and grep command outputs for varlogsecure or other specified log files.
Confirmation of the exim service restart command sudo systemctl restart exim
outputs from last, lastlog, and the custom logger message to show they successfully executed these commands.
Logger Command Output: A specific screenshot showing the output of the logger command:
logger localalert "I am a kitty, sittin in ur system watchin u work
This might not directly display on the screen, but it can be checked in varlogmessages or varlogsecure to confirm it was logged successfully.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
