nerdexam
Oracle

1Z0-821 · Question #42

You are the administrator for a group of shell script developers. They use vi, and have asked you to make their scripts automatically executable when they save their files. How can this be…

The correct answer is E. It is not possible to automatically set the execute bit on with the umask setting, or vi option. See the full explanation below for the reasoning.

Question

You are the administrator for a group of shell script developers. They use vi, and have asked you to make their scripts automatically executable when they save their files. How can this be accomplished?

Options

  • AEnter set -o vi on the command line, or include it in each user's startup script.
  • BEnter umask -s on the command line, or include it in each user's startup script.
  • CEnter umask 000 on the command line, or include it in each user's startup script.
  • DEnter umask 777 on the command line, or include it in each user's startup script.
  • EIt is not possible to automatically set the execute bit on with the umask setting, or vi option.
  • FEnter umask 766 the command line, or include it in the global startup script for the default shell.

How the community answered

(27 responses)
  • A
    4% (1)
  • D
    11% (3)
  • E
    78% (21)
  • F
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-821 Practice