010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 20


The current directory contains the following file:

-rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh

Given that the file is a valid shell script, how can this script be executed? (Choose two.)

Show Answer
Correct Answer: DE

The script can be executed directly if it has execute permissions, which is indicated by the 'rwxr-xr-x' part of the file details. Option D './test.sh' runs the script directly from the current directory. Option E 'bash test.sh' correctly executes the script using the bash shell, which is another valid way to run a shell script.

Discussion

3 comments
Sign in to comment
beazzlebubOptions: DE
Jul 25, 2021

D & E is the correct answer

VovanichOptions: DE
Dec 20, 2022

D. ./test.sh E. bash test.sh

linvidiaOptions: DE
Oct 26, 2022

The answer: D , E