A developer is compiling a large software application from source on a Linux server. The compilation process generates numerous intermediate files that are only needed during the build process and can be safely deleted afterward. According to the Filesystem Hierarchy Standard (FHS), which directory is the most appropriate location for these transient files?
The correct answer is /tmp. The Filesystem Hierarchy Standard (FHS) designates the /tmp directory for programs that require temporary files. These files are not expected to be preserved across reboots or even between program invocations, making it the ideal location for transient build artifacts.
/dev is incorrect because it contains special device files that provide an interface to hardware, not for storing user data or temporary files.
/etc is incorrect as it is reserved for host-specific system configuration files and should not contain binaries or temporary data.
/var is incorrect in this context. While its subdirectory /var/tmp is used for temporary files, those are typically ones that need to be preserved between system reboots. The /var directory itself holds variable data like logs and spool files, but /tmp is the primary standard location for short-lived, non-persistent temporary files as described in the scenario.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between /tmp and /var/tmp?
Open an interactive chat with Bash
Why is /etc not suitable for storing temporary files?
Open an interactive chat with Bash
What types of files are found in the /dev directory?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access