Anyone help me with a few UNIX questions?

Number 1 : When pressing the backspace key, you have noticed that it does not work correctly. What command can be used to find out about the command which allows this to be fixed?

Number 2: How do you replace words in the vi editor? I.e replace the word Credit to APL.

Number3: How do you move block of text in the vi editor?

Hope you can help me, thanks!

7 Comments

Ah, strugglign with the homework, are we?

It's been a while but I think

1. stty erase
2. go into command mode and then ///g for global change
3. dont remember

Original Poster

dxx;5442834

Ah, strugglign with the homework, are we?

lol, nah... It's my son, he asked me yesterday and I didnt have the foggiest idea :P So I thought id find out today and help him when he is back from college

1. stty erase
2a. to replace a single instance of the word use the arrow keys to go to the word and then hit keys "cw" (without quotes) then type the new word, press ctrl + c when finished typing new word.
2b. to replace multiple instances of the word press ":" (without quotes) then type g//s//,new word>/g
3. Say you want to move a block of text thats 10 lines long, go to the first line and type "10 dd" (without quotes), then use the arrow keys to go to the new area where you want the text and press "p" (without quotes). You can do the same procedure using copy "yy" rather than using "dd" but this leaves the original text in place like copy & paste in windows.

SAVE4IT;5442953

lol, nah... It's my son, he asked me yesterday and I didnt have the … lol, nah... It's my son, he asked me yesterday and I didnt have the foggiest idea :P So I thought id find out today and help him when he is back from college



It's not MUOS as part of an HNC Computing course he's doing, is it?

Original Poster

dxx;5443205

It's not MUOS as part of an HNC Computing course he's doing, is it?



haha yeah, it is :P how do you know that?! :P Teach it?
Post a comment
Avatar
@
    Text
    Top Discussions
    1. Walnut snip: Nestlé cuts nut out of chocolate after prices surge - The Guar…1517
    2. GOT Leaks again415
    3. Cheapo tips for around the home. Aka "life hacks"2242
    4. jeremy hunt £44.000 for a new bathroom ??1212

    See more discussions