题目内容

Your shell script uses an "if" statement to see if the word "yes" was entered. This "if" statement looks like:

A. if ( $RESPONSE = "yes" ) ; then
B. if [ RESPONSE = "yes" ) ; then
C. if [ $RESPONSE == "yes" ] ; then
D. if ( RESPONSE = "yes" ) ; then

查看答案
更多问题

Why should we use shell scripts?

A. They combine long, possibly repetitive commands into one simple command
B. They allow you to create new commands and share these procedures among several users
C. They automate tasks and reduce risk of errors
D. All of the above

Which of following could you use to check the status of all your printers?

A. status –a
B. lp status –all
C. lprm my-printers
D. lpstat –a

The command wc –l some_file will print out the number of:

A. lines in some_file
B. words in some_file
C. characters in some_file
D. bytes in some_file

How would you use sed to replace all the occurrences of the word "tiger" with "lion" in the file named "data"?

A. sed ‘s/tiger/lion/’ data
B. sed ‘s/lion/tiger/’ data
C. sed -i ‘s/tiger/lion/g’ data
D. sed –i ‘r/lion/tiger/’ data

答案查题题库