Oracle
1Z0-100 · Question #128
The dailyrun.sh Bash shell script has the permissions as listed here: -rw-r- -r- - 1 hr hradmin 8 Apr 2 06:57 dailyrun.sh Which three methods will be successful at avoiding permissions errrors when…
The correct answer is A. executing the shell script using an alias created with the alias dailyrun='bash dailyrun.sh' C. executing the shell script from the shell prompt using the bash command D. executing the shell script from the shell prompt using the sh command. See the full explanation below for the reasoning.
Question
The dailyrun.sh Bash shell script has the permissions as listed here:
-rw-r- -r- - 1 hr hradmin 8 Apr 2 06:57 dailyrun.sh Which three methods will be successful at avoiding permissions errrors when attempting to run the script? (Choose three.)
Options
- Aexecuting the shell script using an alias created with the alias dailyrun='bash dailyrun.sh'
- Bexecuting the shell script using an alias created with the alias dailyrun=dailyrun.sh
- Cexecuting the shell script from the shell prompt using the bash command
- Dexecuting the shell script from the shell prompt using the sh command
- Eexecuting the shell script from within a shell function using an alias created with the alias
How the community answered
(63 responses)- A71% (45)
- B19% (12)
- E10% (6)
Community Discussion
No community discussion yet for this question.