Which directory is used for variable data such as database files and log files?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

Which directory is used for variable data such as database files and log files?

Explanation:
Variable data refers to files that grow or change over time. The directory that holds this kind of data is /var, which is designated for files that accumulate, such as log files, databases, mail spools, and cache data. Logs live under /var/log, which is a subdirectory of /var, illustrating how /var serves as the broad category for data that varies in size and content. In contrast, /tmp is for temporary files that may be cleaned up, /etc contains static configuration files, and /var/log is specifically for logs rather than the entire set of variable data. Therefore, the best fit for variable data like database and log files is /var.

Variable data refers to files that grow or change over time. The directory that holds this kind of data is /var, which is designated for files that accumulate, such as log files, databases, mail spools, and cache data. Logs live under /var/log, which is a subdirectory of /var, illustrating how /var serves as the broad category for data that varies in size and content. In contrast, /tmp is for temporary files that may be cleaned up, /etc contains static configuration files, and /var/log is specifically for logs rather than the entire set of variable data. Therefore, the best fit for variable data like database and log files is /var.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy