To locate the web server logs on a Linux system, which directory should be checked?

Advance your skills with our Digital Forensics Test. Explore detailed questions, explanations, and suggestions. Ace your exam!

Multiple Choice

To locate the web server logs on a Linux system, which directory should be checked?

Explanation:
Logs sit where variable system data is kept, and that’s under /var. Web server logs are stored in /var/log, with specific server folders like /var/log/apache2/ or /var/log/nginx/ containing access and error logs. The other directories serve different purposes: /home for user data, /usr for applications and libraries, and /tmp for temporary files. So starting in /var is the correct approach to locate web server logs. If needed, you can use commands like ls /var/log or cat /var/log/apache2/access.log to inspect them.

Logs sit where variable system data is kept, and that’s under /var. Web server logs are stored in /var/log, with specific server folders like /var/log/apache2/ or /var/log/nginx/ containing access and error logs. The other directories serve different purposes: /home for user data, /usr for applications and libraries, and /tmp for temporary files. So starting in /var is the correct approach to locate web server logs. If needed, you can use commands like ls /var/log or cat /var/log/apache2/access.log to inspect them.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy