What would be the output of the following shell script?
A directory contains the following files: What would be the output of the following shell script? for file in *.txt A . *.txtB . a bC . c.cavD . a.txtE . a. txt b. txtView AnswerAnswer: E
Which of the following commands will search for the file foo.txt under the directory /home?
Which of the following commands will search for the file foo.txt under the directory /home?A . search /home Cfile foo.txtB . search /home foo. txtC . find /home C file foo.txtD . find /home Cname foo.txtE . find /home foo.txtView AnswerAnswer: D
How is the name of the IP address 198.51.100.165 stored on a DNS server?
Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?A . In the A record for 165.100.51.198.ipv4.arpa.B . In the PTR record for 165.100.51.198.in-addr.arpa.C . In the RNAME record for 198-51-100-165.rev.arpa.D . In the ARPA record for 165.100.51.198.rev.E ....
What should be done in order to successfully execute the script?
The current directory contains the following file: -rw-r―r― 1 root exec 24551 Apr 2 12:36 test.sh The file contains a valid shell script, but executing this file using ./test.shleads to this error: bash: ./test.sh: Permission denied What should be done in order to successfully execute the script?A . The file’s...
What keyword is used in a shell script to begin a loop?
FILL BLANK What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional information.)View AnswerAnswer: for
Which of the following tar options handle compression? (Choose two.)
Which of the following tar options handle compression? (Choose two.)A . -bzB . -zC . -gD . -jE . -z2View AnswerAnswer: BD
What information is stored in /etc/passwd? (Choose three.)
What information is stored in /etc/passwd? (Choose three.)A . The user’s storage space limitB . The numerical user IDC . The usernameD . The encrypted passwordE . The users default shellView AnswerAnswer: BCD
Which of the following commands sorts the output of the command export-logs?
Which of the following commands sorts the output of the command export-logs?A . export-logs < sortB . export-logs > sortC . export-logs & sortD . export-logs | sortE . export-logs <> sortView AnswerAnswer: D
Which of the following keys can be pressed to exit less?
Which of the following keys can be pressed to exit less?A . lB . xC . eD . qE . !View AnswerAnswer: D
Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?
Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?A . tar --new work.tar ./work/B . tar Ccf work.tar ./work/C . tar Ccreate work.tgz Ccontent ./work/D . tar work.tar < ./work/E . tar work > work.tarView AnswerAnswer: B