Question
1. Given the following: $ cat birthdays ginger 15mar84 jimmy 25dec48 abe 12feb98 bertrand 06apr72 Which command produces the following order? jimmy 25dec48 bertrand 6apr72
1.
Given the following: $ cat birthdays ginger 15mar84 jimmy 25dec48 abe 12feb98 bertrand 06apr72 Which command produces the following order? jimmy 25dec48 bertrand 6apr72 ginger 15mar84 abe 12feb98
Group of answer choices
sort -k2,6 -t' ' birthdays
sort -k2 -k6 -t' ' birthdays
sort -k2 -t' ' birthdays
sort -k2.6 -t' ' birthdays
sort -k13 -t' ' birthdays
2.
Which of the following commands will sort on last name in the fifth field then on first name in fourth field, in a file called NAMES with 10 fields?
Group of answer choices
sort -k4,4 -k5 NAMES
sort -k5,5 -k4 NAMES
sort -n10 -k5 -k4 NAMES
sort -k5,4 NAMES
3.
who | tr "[[:upper:]]" "[[:lower:]]"
Group of answer choices
deletes upper and lower case letters
replaces all upper with lower case
replaces the first occurrance of a lower case letter with an upper case
replaces the first occurrance of an upper case letter with lower case
replaces all lower case with upper case
4.
who | tr "[[:upper:]]" "[[:lower:]]"
Group of answer choices
deletes upper and lower case letters
replaces all upper with lower case
replaces the first occurrance of a lower case letter with an upper case
replaces the first occurrance of an upper case letter with lower case
replaces all lower case with upper case
5.
In vi, which of the following puts me into text-entry mode?
Group of answer choices
a
:
!
the escape key
6.
In vi, to delete three lines beginning with the current line use
Group of answer choices
dd3
3dd
d33
33d
7.
To save work in nano or pico use:
Group of answer choices
^y
^p
^z
^x
8.
In vi to paste line(s) below the cursor I type:
Group of answer choices
PP (this is uppercase)
p (this is lowercase)
P (this is uppercase)
pp (this is lowercase)
9.
In vi to insert text BEFORE the cursor I type:
Group of answer choices
o
p
a
i
10.
In vi what would I type to replace ALL occurrences of the word Unix with the word Linux?
Group of answer choices
s/Unix/Linux/
:%s/Unix/Linux/g
:s/Unix/Linux/
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started