1. Which of the following commands makes / bin / foo executable for everyone but write access only for its owner?
A) No chmod + rwx, a + rx / bin / foo B) chmod 775 / bin / foo C) chmod 577 / bin / foo D) chmod u = rwx, go = rx / bin / foo E) None
2. Which of the following commands determines the type of a file by using the virus definition database file that contains information about all common file types?
A) file B) Magic- C) type D) pmagic E) hash
3. Which of the following commands is used to change options and positional parameters for running Bash?
A) bashconf B) history C) place D) setsh E) envsetup
4. Which of the following commands, always replace the occurrence of 'Bob' in the file the letter 'Bob' and writes the output to a file newletter?
A) sed 's / Bob Bob / letter> newletter B) sed / Bob / Bob 'letter> newletter C) sed n / bob / BOB / g 'letter> newletter D) sed 's / Bob / Bob' letter> newletter E) sed s / Bob / Bob / letter
5. From the Bash shell, which is the following commands directly executes the command file without opening the /usr/local/bin/runme.sh subshell? (Select two answers.)(Select 2answers)
A) . /usr/local/bin/runme.sh B) source /usr/local/bin/runme.sh C) run /usr/local/bin/runme.sh D) /usr/local/bin/runme.sh E) / Bin / bash /usr/local/bin/runme.sh
Leave a comment