Slide

  • LINUX

    LINUX:In 1969 AT&T made a decision to withdraw Multics and go with GECOS (General Electric Comprehensive Operating Supervisor / System), with AT & T in Bells Lab when Multics was withdrawn some of the programmers named Ken Thompson and Dennis Ritchie decided to rewrite operating system in order to support low cost computer..To Know More

    CLICK HERE

  • MICROSOFT

    MICROSOFT:Microsoft was established to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the home computer operating system market with MS-DOS in the mid-1980s,followed by the Microsoft Windows line of operating systems. To Know More

    CLICK HERE

  • CISCO

    CISCO:During the early 1980s, there was a married couple namely Len and Sandy Bosack who used to work in two different departments of computer located in Stanford University. This couple was facing problem in making their computers communicate with each other To Know More

    CLICK HERE

showinfo=1

VI editor Tutorial


VI Editor
 1. Command Mode :- In this mode you can edit  the files using basic commands.
2. Insert Mode :- In this mode you can edit the file normally.
3. ESC Mode :- this mode is used to escape from certain mode. Eg. Escape from insert mode and go to command mode.

Command Mode Commands
1. x                  To delete the character.
2. alt+u                        To undo the changes.
3. $                  To take the cursor end of the line.
4. ^                  To take the cursor start of the line.
5. {                  To take the cursor start of the paragraph.
6. }                  To take the cursor end of the paragraph.
7. (                   To take the cursor start of the sentence.
8. )                   To take the cursor end of the sentence.
9. w                 To take the cursor next word.
10. b                To take the cursor back word.
11. k                Used for up arrow key.
12. j                 Used for down arrow key.
13. h                Used for left  arrow key.
14. l                 Used for right arrow key.
15. yy              To copy a specific no.’s of lines.
16.p                 To paste copied lines.
17. dd              To delete specific no.’s of lines.
18. shift+r or R            To replace the line
19. r                 To replace the character.
20. o                To create a blank line below the cursor.
21. O               To create a blank line above the cursor.
22. i               Go to Insert mode
23. :q               To exit without saving the file.
24. :q!              To exit without saving the file forcefully.
25. :wq                        To save and exit the file.
26. :wq!           To save and exit the file forcefully.
27. :se nu          To see numbers
28:  :se no nu      To remove numbers


VI editor Tutorial
1. To create file using VI
[root@server1~]# vi  filename                ………
to inter into insert mode and type the following text in it

Hello!!!!!!!!
Good Morning Everyone
Welcome to CMS Computer Institute

  ESC>                                 ………. TO EXIT FROM INSERT MODE
:wq!                                                    ……… TO SAVE AND EXIT
[root@server1~]# cat filename
Hello!!!!!!!!
Good Morning Everyone
Welcome to CMS Computer Institute

2. To Copy and Paste the lines using Vi editor
[root@server1~]# vi  filename         ………
Hello!!!!!!!!
Good Morning Everyone                                 [ move your cursor to specific line which you want to copy and type yy and move your cursor were you want to paste that line
Welcome to CMS Computer Institute              and type p ]
Good Morning Everyone

PRESS  ESC>                                      ………. TO EXIT FROM INSERT MODE
:wq!                                                        ……… TO SAVE AND EXIT
[root@server1~]#

3. To Delete the lines using Vi editor
[root@server1~]# vi  filename                   ………
Hello!!!!!!!!
Good Morning Everyone                               [ move your cursor to specific line which you want to delete and type dd ]
Welcome to CMS Computer Institute              
Good Morning Everyone

PRESS  ESC>                                  ………. TO EXIT FROM INSERT MODE
:wq!                                                   ……… TO SAVE AND EXIT
[root@server1~]#

4. Move the Cursor end of the line.
[root@server1~]# vi  filename         ………


Hello!!!!!!!!
Good Morning Everyone                                [ take your cursor start of the line and type shift+$ to move end on the line]
Welcome to CMS Computer Institute

  ESC>                                 ………. TO EXIT FROM INSERT MODE
:wq!                                                     ……… TO SAVE AND EXIT

5. Move the Cursor  start of the line.
[root@server1~]# vi  filename         ………

Hello!!!!!!!!
Good Morning Everyone                                 [ take your cursor start of the line and type shift+^ to move start on the line]
Welcome to CMS Computer Institute

  ESC>                            ………. TO EXIT FROM INSERT MODE
:wq!                                                ……… TO SAVE AND EXIT

6. Move the Cursor end of the paragraph.
[root@server1~]# vi  filename         ………


Hello!!!!!!!!
Good Morning Everyone                               [  take your cursor start of the line and type shift+} to move end on the paragraph ]
Welcome to CMS Computer Institute

  ESC>                             ………. TO EXIT FROM INSERT MODE
:wq!                                                ……… TO SAVE AND EXIT

7. Move the Cursor  start of the paragraph.
[root@server1~]# vi  filename         ………

Hello!!!!!!!!
Good Morning Everyone                                [ take your cursor end of the paragraph and type shift+{ to move start of the paragraph ]
Welcome to CMS Computer Institute

  ESC>                                ……….
:wq!                                                  ………

To replace the character.
[root@server1~]#vi  filename                         [ move your cursor to specific word which you want to
Welcome to CSS                                              replace             and press r and do the changes ]
 

Welcome to CMS
:wq!                                                 ………






17 comments:

  1. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
    www.harrisdasilva.co.uk |

    ReplyDelete
  2. Superbly written article, if only all bloggers oered the same content as you, the internet would be a far better place..
    www.virtualofficesforsmallbusiness.com |

    ReplyDelete
  3. This is very interesting news website running 24 hours a day to keep their viewer updated all the time. 
    stourfinancial |

    ReplyDelete
  4. This blog is an exact representation of skills. I appreciate the blogger for posting the most excellent thought. This topic posted by you is trustworthy. 
    homewardboundnews.com |

    ReplyDelete
  5. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
    auto-dalmacija.com |

    ReplyDelete
  6. I am very happy to find this site. I wanted to thank you for this immense read!! I absolutely enjoying every petite bit of it and I have you bookmarked to test out new substance you post. -
    electricbicycletechnologies |

    ReplyDelete
  7. I must say that while reading your post I found my thoughts in agreement with the topic that you have discussed, which happens very rare.
    benwebmaster |

    ReplyDelete
  8. Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you.
    sdbridgetobenefits |

    ReplyDelete
  9. It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks.
    leedsbusinesscentres |

    ReplyDelete
  10. I have subscribed to your rss feed which really should do the trick! Have a nice day!
    chewfoodtour |

    ReplyDelete
  11.  It is very helpful for all the people on the web.I wanted to say that it's nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere.
    Kama Foods |

    ReplyDelete
  12. شركة نقل عفش بالدمام الشرق الاوسط متحصصه فى نقل عفش واثاث بالدمام ونقل العفش بالخبر كما انها توفر شركة نقل عفش بالجبيل والخبر وشركة نقل عفش بالقطيف والاحساء وجميع خدمات نقل العفش والاثاث بالمنطقة الشرقية بارخص اسعار نقل عفش بالدمام وتقدم ايضا شركة تخزين عفش بالدمام والخبر
    نقل عفش بالدمام
    شركة نقل اثاث بالدمام
    شركة نقل اثاث بالخبر
    شركة نقل اثاث بالجبيل
    شركة نقل عفش بالخبر
    شركة نقل عفش بالقطيف
    شركة نقل اثاث بالاحساء

    ReplyDelete

  13. شركة تنظيف خزانات بالمدينة المنورة وشقق بالمدينة المنورة شركة غسيل خزانات ومكافحة حشرات بالمدينة المنورة ونقل عفش بالمدينة المنورة مؤسسة صفوة المدينة
    شركة تنظيف خزانات بالمدينة المنورة
    شركة مكافحة حشرات بالمدينة المنورة مؤسسة صفوة المدينة انها الاولى فى مكافحة ورش الحشرات بالمدينة المنورة رش البق رش الصراصير مكافحة النمل الابيض بالمدينة المنورة
    شركة مكافحة حشرات بالمدينة المنورة

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........

For Latest Updates: Subscribe Now | | Test Your Knowledge, Take a Quiz now Click Here | | Site Best Viewed In Firefox

X