Question

2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemo...

2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type?

Which daemon on Ubuntu Server Linux uses this file and what is its purpose?

3. At the command prompt, type less /etc/rsyslog.conf and press Enter to view the configuration file for the System Log Daemon. Are there any entries that specify facilities, priorities, or log file locations? What does the last line of the file specify? Press q when finished to quit the less utility.

4. At the command prompt, type less /etc/rsyslog.d/50-default.conf and press Enter. Where do kernel messages of any priority get logged to by default? What does the – character next to the filename indicate? Press q when finished to quit the less utility.

5. At the command prompt, type tail /var/log/kern.log and press Enter. Observe the entries.

6. At the command prompt, type ls /var/log/cups and press Enter. What daemon cre- ates the log files within the /var/log/cups directory?

7. At the command prompt, type cat /etc/cron.daily/logrotate and press Enter to observe the logrotate command that is run each day.

8. At the command prompt, type less /etc/logrotate.conf and press Enter to view the configuration file for the logrotate command. How many copies of old log files are kept by default? When finished, press q to quit the less utility.

9. At the command prompt, type ls /etc/logrotate.d and press Enter. How many files are in this directory? Will entries in these files override the same entries in /etc/log- rotate.conf?

10. At the command prompt, type cat /etc/logrotate.d/cups-daemon and press Enter. How many copies of old log files are kept for the log files in the /var/log/cups directory? Will the log files be rotated if they contain no contents?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

2. ls –l /dev/log is the symbolic link of the file. Syslogd is the daemon that uses the storing the logs.

3. Yes, there any entries that specify facilities, priorities, or log file locations.

remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional 

4. kernel messages of any priority get logged to by default under the modules.

the - character indicates the file where it is stored.

5. The entries of the /var/log/kern.log contains the entries of the Kernel's messages of any log level.

6. /var/log/cups is the regular file. cupsd creates the log.

7. It will rotate the logs everyday.

8. For 4 weeks the logs are kept.

9. There are 28 files.

10. 10 files of log files are kept. yes the logs files can be rotated if it contains no content.

Add a comment
Know the answer?
Add Answer to:
2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemo...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Project 4-4 In this hands-on project, you make and view links to files and directories. Switch to...

    Project 4-4 In this hands-on project, you make and view links to files and directories.Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.At the command prompt, type cd samples and press Enter. Next, type ls -F at the command prompt and press Enter. What files do you see? Next, type ls -l at the command prompt and press Enter. What is the link...

  • Login to Suse Linux as root. Complete the task working as the root user. 1. What...

    Login to Suse Linux as root. Complete the task working as the root user. 1. What is your current directory. What did you enter at the command prompt to determine your current working directory? 2. Change directories if needed to find your foods (or food) file. Use vi to make the file contain 10 food items. Save your file and quit. Use the cat command, and option, and the argument food to display the food file with numbered lines. Use...

  • 1. Explain the difference between the /etc/profile and the ~/.bash_profile file. Which one is executed first?...

    1. Explain the difference between the /etc/profile and the ~/.bash_profile file. Which one is executed first? 2. Edit your .bash_profile file as follows: 1. Welcome the user 2. Add your home directory to the path if it is not there 3. Set erase to the Backspace key using stty. 4. Type source .bash_profile. What is the function of the source command? 3. What is the default primary prompt? 1. Change the prompt to include the time of day and your...

  • LUNIX (Please Label) Exit vi (:q) and from the command line, type viscript4.sh. For this script,...

    LUNIX (Please Label) Exit vi (:q) and from the command line, type viscript4.sh. For this script, we will iterate through all files in the current directory print out their name using the for loop. Example (do not type yet): foriin*;do …;done where the…does some operation on$I, which stands for the current file. To do this, enter the following in your script4.sh file:           #!/bin/bash           for i in *; do                echo $i           done Once the above works, change the for loop to...

  • Edit a C program based on the surface code(which is after the question's instruction.) that will...

    Edit a C program based on the surface code(which is after the question's instruction.) that will implement a customer waiting list that might be used by a restaurant. Use the base code to finish the project. When people want to be seated in the restaurant, they give their name and group size to the host/hostess and then wait until those in front of them have been seated. The program must use a linked list to implement the queue-like data structure....

  • I'm not getting out put what should I do I have 3 text files which is...

    I'm not getting out put what should I do I have 3 text files which is in same folder with main program. I have attached program with it too. please help me with this. ------------------------------------------------------------------------------------ This program will read a group of positive numbers from three files ( not all necessarily the same size), and then calculate the average and median values for each file. Each file should have at least 10 scores. The program will then print all the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT