Menu

[Solved] Using Ubuntu Linux Please Following Providing Screen Shots Task Complete 1 Turn Daemon Cro Q37176224

Using Ubuntu, in Linux please do the following, while providingscreen shots of each task being complete.

1) Turn on the daemon and cron logging features.

2) Set the daemon log to ‘error’ and the cron log to ‘debug’status.

3) create a script that rotates these logs every day and placethem in the following directories:

a) /var/log/cron/$year/$month/$today’sDate-Cron.log

b) /var/log/daemon/$year/$month/$today’sDate-Daemon.log

4) If the year (2019) or month (04) doesn’t exist, then createit

5) Zero out the log of both of these from their original source.example.

cat /dev/null > /var/log/cron.log or daemon.log

6) Put an entry into root’s crontab that will accomplish thisfeat every day at 00:01 AM

Please provide the code for the script (including comments) andthe entry into the crontab.

Expert Answer


Answer to Using Ubuntu, in Linux please do the following, while providing screen shots of each task being complete. 1) Turn on the… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *