SIMULATION - Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
/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.
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Buruguduystunstugudunstuy
6 months, 1 week agoBuruguduystunstugudunstuy
6 months, 1 week ago