exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 29 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 29
Topic #: 1
[All LFCS Questions]

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.)

Show Suggested Answer Hide Answer
Suggested Answer: /tmp -or- tmp -or- /var/tmp -or- /tmp/ -or- /var/tmp/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Buruguduystunstugudunstuy
6 months, 1 week ago
/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.
upvoted 1 times
Buruguduystunstugudunstuy
6 months, 1 week ago
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
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago