What output will the following command sequence produce?
What output will the following command sequence produce? echo ‘1 2 3 4 5 6’ | while read a b c; do echo result: $c $b $a; done A. result: 3 4 5 6 2 1 B. result: 1 2…
What output will the following command sequence produce? echo ‘1 2 3 4 5 6’ | while read a b c; do echo result: $c $b $a; done A. result: 3 4 5 6 2 1 B. result: 1 2…
Which of the following is the best way to list all defined shell variables? A. env B. set C. env -a D. echo $ENV
Which command allows you to make a shell variable visible to subshells? A. export $VARIABLE B. export VARIABLE C. set $VARIABLE D. set VARIABLE E. env VARIABLE
Which of the following configuration files should be modified to set default shell variables for all users? A. /etc/bashrc B. /etc/profile C. ~/.bash_profile D. /etc/.bashrc
Which of the following SQL statements will select the fields name and address from the contacts table? A. SELECT (name, address) FROM contacts; B. SELECT (name address) FROM contacts; C. SELECT name, address FROM contacts; D. SELECT name address FROM…
What output will the following command produce? seq 1 5 20 A. 1 B. 1 C. 1 D. 2 E. 5
Which command will print the exit value of the previous command to the screen in bash? A. echo $? B. echo $# C. echo $exit D. echo $status E. echo $&
The xinetd service will be used instead of inetd. In order to create a similar configuration as inetd, what main file must be created or edited for xinetd? (Please specify the full path)
Which file contains a set of services and permitted hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Please enter the full path)
Which file lists which users can execute commands using sudo? (Provide the full path and filename)