Skip to main content

Posts

Showing posts with the label groups

All is File - Test 1

5.4 Special Files and Directories Understanding /tmp and link Practice Exam Questions 1 Scenario : 1. A developer needs to store temporary files that should persist between reboots. Which directory should the developer choose? a) /tmp b) /var/tmp c) /run d) /var/run /* --------------------- */ -------------------------- Answer 1 Below:  -------------------------- /* --------------------- */ Explanation : According to the Filesystem Hierarchy Standard (FHS), the /var/tmp directory is intended for storing temporary files that should not be cleared during system boot-up. Files stored in this directory are expected to persist between reboots, making it suitable for temporary data that needs to be retained across system restarts. Explanation of incorrect answers : a) /tmp: The /tmp directory is recommended for temporary files that do not need to persist between invocations of a program. It is cleared during system boot-up, so files stored here will not survive a r...

LPI E C1 - umask test

LPIC-1 (Linux Administrator) 104.5 Manage file permissions and ownership Candidates should be able to control file access through the proper use of permissions and ownership. Some questions taken from this blog: https://www.certificationmethods.com/2023/05/lpi-e-umask-control.html   Practice Test Questions 1. Which of the following statements best describes the purpose of the "umask" command in Linux? a) It displays the current system time. b) It sets the permissions for a file or directory when it is created. c) It changes the ownership of a file or directory. d) It lists all the files and directories in a given directory. /* --------------------- */ -------------------------- Answer 1 Below:  -------------------------- /* --------------------- */ Explanation: It sets the permissions for a file or directory when it is created. The umask command allows you to determine the default permissions that are subtracted from the maximum allowable default permiss...