QuestionQ71

VerifiedSecurity and File Permissions

The current directory includes the following file:

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

Assuming the file is a valid shell script, how can it be executed?

Choose two
Explanation

An executable script in the current directory can be run directly with its relative path, ./test.sh. It can also be supplied as an argument to the Bash interpreter with bash test.sh.

Community Discussion

No comments yet. Be the first to start the discussion!