Question: A shell script named foo is executed as follows: ./foo a b c 'a ' Inside the script is the line: head $* How many

A shell script named foo is executed as follows: ./foo a "b c" 'a ' Inside the script is the line: head "$*" How many arguments are passed to the head command inside the script?

1
4
3
2 2)

What would be the output echo Hero of the Alliance | tr -d o

Her f the Alliance
Hero of the Alliance
Her of the Alliance
Herd of the Alliance 3)Which grep command will search for a string in the current directory AND all subdirectories?
grep string *
grep "string"
grep -sub "string" *
5)What command would you use to list all files with a third character of r, g or i?
ls [..i*]
ls *[rgi]*
ls ??[rgi]*
ls ?3[rgi]* 6)The runlevel system command is used for which of the following?
setting the runlevel attribute of the system in the inittab file
getting the present and previous runlevel of the system
can be used to restart or reboot the system
all of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!