nerdexam
Oracle

1Z0-100 · Question #109

The dailyrun.sh shell script run by the user hr on a daily basis suddenly returns an error. You investigate this by running the commands manually as user hr and discovered that this line of shell…

The correct answer is D. The hr user environment has set on the noclobber option. See the full explanation below for the reasoning.

Question

The dailyrun.sh shell script run by the user hr on a daily basis suddenly returns an error. You investigate this by running the commands manually as user hr and discovered that this line of shell cod is responsible:

1s als > /home/prodrun/files.1st Bash: files.1st:cannot overwrite existing file What is the cause of this error?

Options

  • AThe hr user has no write permissions on the /home/prodrun/files.1st file.
  • BThe hr user has no write permissions on the /home/prodrun directory.
  • CThe dailyrun.sh shell script has the setuid bit turned off.
  • DThe hr user environment has set on the noclobber option.

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    13% (3)
  • C
    4% (1)
  • D
    79% (19)

Community Discussion

No community discussion yet for this question.

Full 1Z0-100 Practice