Search Header Logo

System Logging Linux

Authored by Thomas Martinez

Computers

Professional Development

System Logging Linux
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Where are Linux system logs typically stored?

/var/log/system_logs

/var/log/syslog

/var/logs/linux_logs

/var/system_logs

Answer explanation

Explanation: Linux system logs are typically stored in the /var/log directory. Among the given options, /var/log/syslog is the correct location for system logs.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the /var/log/auth.log file store?

System startup messages

Kernel events and errors

Security-related events like logins and root user actions

Information about scheduled tasks

Answer explanation

/var/log/auth.log stores security-related events such as logins, root user actions, and output from PAM (Pluggable Authentication Modules).

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can you search for patterns in a log file using less?

Press n for next match

Press q to quit

Press / to initiate search

All of them

Answer explanation

All of the above. You can use / to initiate a search, n for the next match, and q to quit less.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In which log file would you investigate problems with the Linux operating system kernel?

/var/log/syslog

/var/kern/kern.log

/var/log/kern.log

/var/log/cron

Answer explanation

/var/log/kern.log stores kernel events, errors, and warning logs, which are helpful for troubleshooting problems with the operating system kernel.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a common method to investigate events in a syslog?

Search for specific timestamps

Narrow down search criteria

Use grep with a specific pattern

All of them

Answer explanation

When investigating syslog events, it's common to search for specific timestamps, narrow down search criteria, and use tools like grep for pattern matching.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To view events in a log file with less, what privileges are needed?

Read-only privileges

Root privileges

Write privileges

Execute privileges

Answer explanation

The main system logs are created with read-write permissions for the 'root' user only, so root privileges are needed to read them.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What log file would you inspect to identify unsuccessful SSH login attempts?

/var/log/syslog

/var/log/auth.log

/var/log/kern.log

/var/log/cron

Answer explanation

/var/log/auth.log is the log file where unsuccessful SSH login attempts are typically recorded.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?