Home > Archive > Linux/Unix > December 2003 > Terminal QOD for 12-1-03





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Terminal QOD for 12-1-03
Boulware5

2003-11-29, 10:43 pm

Here is a matching question about vi editor commands. For each number, give the correct letter answer.

1. Set line numbers
2. Delete the current line
3. Execute the uptime command within vi
4. Search for the word "Linux" in the current file.
5. Quit the current file without saving.



a. o
b. !uptime
c. \Linux
d. :set nu
e. dl
f. :wq
g. dd
h. /Linux
i. :set linenumb
j. :quit
k. ^W Linux
l. ctrl-q
m. :!uptime
n. Q
o. :q!

Hope this is challenging enough but not too challenging for Linux+.
Polarity Bear

2003-12-01, 6:52 am

HINT: Use "man vi" or "man vim" to research a question like this.
mindmesh

2003-12-01, 2:01 pm

1) i
2) g
3) m
4) h
5) o
Boulware5

2003-12-03, 12:58 am

Only 1 person attempted to answer?!?! Where are all the Linux people, not many on EN.

Anywho, mindmesh almost got it. You got 1 wrong. Answers are:

1) d
2) g
3) m
4) h
5) o

:set nu is to set line numbers.
me? I dunno...

2003-12-03, 2:12 am

quote:
Only 1 person attempted to answer?!?! Where are all the Linux people, not many on EN.
too hard for me, reading too much already...
mindmesh

2003-12-03, 8:32 am

quote:
Originally posted by Boulware5
Only 1 person attempted to answer?!?! Where are all the Linux people, not many on EN.

Anywho, mindmesh almost got it. You got 1 wrong. Answers are:

1) d
2) g
3) m
4) h
5) o

:set nu is to set line numbers.



Brain fart. Forgot that most :set commands are use two characters. I use :set ai most. This way I dont' have to manually indent everytime I'm writing a new line of code.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2009 examnotes.net