Question 139Asked in DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)

Which of the following is a default permission for the text file in Linux?

  1. Arwx r-- r--
  2. Brw- r-- r--
  3. Crwx rwx rwx
  4. Drwx --- ---
Show answerHide answer

Correct answer: (B) rw- r-- r--

Explanation

New files are created with 666 permissions, and the default umask 022 turns that into 644, which is rw-r--r--.

From DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM)

This is question 139 of DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.