Reference no: EM132145398
1. In vi, what does the following accomplish? :1,$s/foo/bar/g
a. Substitute foo for bar on line 1 globally
b. Substitute bar for boo on line 1 globally
c. Substitute foo for bar on every line
d. Substitute foo for bar in the entire file globally
e. None of the above
2. $echo "$HOME * $USER" will output
a. The result of $HOME and $USER multiplied together
b. Display*
c. Display $HOME*$USER literally
d. Result in error
e. None of the above
3. The command that create directory and all parent directories is:
a. rm -r a/b/c
b. mkdir -r a/b/c
c. touch a/b/c
d. mkdir -p a/b/c
e. rmdir -r a/b/c
4. Your current working directory is /home/student/foo and you have a file name bar in that directory. What is the result of the following command:
$cp ./bar ..
a. An error will be displayed
b. A copy of bar will be made in home directory
c. File bar will be moved from /home/student/foo into /home/student
d. A copy of bar will be created in /home/student directory
e. None of the above
5. What is the link count of directory d after the following set of successful commands?
$mkdir d ; cd d ; mkdir subdir
a. 1
b. 2
c. 3
d. 4
e. None of the above
6. Explain the following command and what will it match? Provide the list of matches that regular expression will match.
$egrep '[ab] [0-3]' somefile.txt
7. Explain the following command and what will it match?
$egrep ' [^ (^$) ] ' somefile.txt
8. Explain the following command and what will be the output?
$wc -w < foo > foo
Use the following named funny.txt for the question below. The field separator is a blank space
2014 Cat Ate Dog
2015 Dog Ate Cat
Mouse Chased Cat Dog
Unix Linux Linux Linux
2016 Only Unix Unix
9. What is the output of:
$sed '/201[56] /s/Dog/Cow/g' funny.txt
Test with an array of doubles
: Test with an array of doubles where at least one of the values is greater than 10.Test with an array of longs where ALL the values are greater than 10.
|
What do you manage to live without
: When the power goes out, explain your biggest inconvenience. What do you manage to live without? If the power is out for 3 days or more.
|
Determine which position at vernons restaurant you believe
: From the Vernon's Restaurant simulation, determine which position at Vernon's Restaurant you believe you would be best suited for. Explain your rationale.
|
Detract from the overall message a presentation
: How can text effects, such as WordArt, add to or detract from the overall message a presentation is trying to convey?
|
What does the following accomplish
: 1. In vi, what does the following accomplish? :1,$s/foo/bar/g a. Substitute foo for bar on line 1 globally b. Substitute bar for boo on line 1 globally
|
Why market research is important to an organisation
: BSBMKG506: List five factors that you would need to consider when determining the market research requirements of an organisation.
|
What does literature offer an individual
: What does literature offer an individual? How has the importance of reading changed from earlier eras (pre-digital/audio/visual media) to our present day?
|
What kind of response will you focus on in given course
: As you explored in the The Value of Literature discussion, literature can provide us with a multitude of perspectives, ideas, and experiences.
|
Obtain an estimate of the miles-per-gallon fuel efficiency
: Research the cost of each model (include taxes and title costs). Also, obtain an estimate of the miles-per-gallon fuel efficiency of each model.
|