In Linux, the 'umask' command is used to: MCQ with Answer and Explanation

In Linux, the 'umask' command is used to:
A. Unmask system files
B. Change user ID
C. Set default file permissions for newly created files
D. Delete files securely
Answer: Option C
Solution (By JKSSB Mock Tests)
umask defines which permissions are removed (masked) by default when a file or directory is created.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
Which of the following is a scheduling algorithm that allows a process to run until it blocks or is preempted by a higher priority process?
A. Preemptive priority scheduling
B. Non-preemptive priority scheduling
C. Multilevel feedback queue
D. Round Robin

Correct Answer: Option B


Explanation:
Non-preemptive priority scheduling allows a process to keep the CPU until it finishes or voluntarily yields, unless a higher priority process arrives (which would preempt in preemptive scheduling).

This question belongs to: Computer Operating Systems
Question #2
In Linux, what does the command 'echo $SHELL' display?
A. A list of available shells
B. The system's shell version
C. The current shell's path
D. The user's home directory

Correct Answer: Option C


Explanation:
$SHELL environment variable holds the path to the current user's default shell, e.g., /bin/bash.

This question belongs to: Computer Operating Systems
Question #3
In Android, which component allows an app to run in the background even when the user is not interacting with it?
A. Activity
B. Broadcast Receiver
C. Service
D. Content Provider

Correct Answer: Option C


Explanation:
Services are designed for background operations without a UI, like playing music or downloading files.

This question belongs to: Computer Operating Systems