Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Linux Foundation Certified System Administrator · Linux Foundation
Hotspot Scenario
Select the appropriate option to complete the statement. Click Check Answer below to see the marked solution.
Hotspot Solution:
/tmp is the world-writable directory that should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem. The /tmp directory is a world-writable directory that is used to store temporary files that are created by users and programs. It is a good idea to place /tmp on a separate partition, because it is often used to store large files and it is not cleaned up automatically. By placing /tmp on a separate partition, you can prevent users from being able to fill up the / filesystem by filling up /tmp. This is especially important if you have users who have the ability to create large files, or if you have programs that generate a lot of temporary files. For example: mount -t tmpfs -o size=4G tmpfs /tmp This mounts a tmpfs filesystem of size 4 GB at the /tmp mount point. Tmpfs is a filesystem that is stored in memory, and it is used to store temporary files. By mounting a tmpfs filesystem at /tmp, you can ensure that /tmp is always available and that it is not filling up the / filesystem.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
/tmp is the world-writable directory that should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem. The /tmp directory is a world-writable directory that is used to store temporary files that are created by users and programs. It is a good idea to place /tmp on a separate partition, because it is often used to store large files and it is not cleaned up automatically. By placing /tmp on a separate partition, you can prevent users from being able to fill up the / filesystem by filling up /tmp. This is especially important if you have users who have the ability to create large files, or if you have programs that generate a lot of temporary files. For example: mount -t tmpfs -o size=4G tmpfs /tmp This mounts a tmpfs filesystem of size 4 GB at the /tmp mount point. Tmpfs is a filesystem that is stored in memory, and it is used to store temporary files. By mounting a tmpfs filesystem at /tmp, you can ensure that /tmp is always available and that it is not filling up the / filesystem.
To make this change permanent, you can add the following line to the /etc/fstab configuration file: tmpfs /tmp tmpfs defaults,size=4G 0 0 This will mount the tmpfs filesystem at /tmp automatically during system startup.