How to use vi?

Discussion in 'Suggest HOWTO' started by bravadoman, Aug 11, 2006.

  1. bravadoman

    bravadoman New Member

    It's been over 20 years since using AIX and now I find myself needing the basic shell commands as well as vi editor commands. I did look on other forums for the answers first. However the suggested commands such as wq to write quit vi did not work.
    [Help needed on Ubuntu Server]
    1) How to use vi?

    2) How to copy the text from the Dapper Drake "The Perfect Setup" from my Windows box and use on my Ubuntu box? I do not mind doing some work in vi; but doing lots of typing leads to errors. http://www.howtoforge.com/perfect_setup_ubuntu_6.06

    3) Basic shell commands at the Ubuntu command line

    Thanks very much.
    B
     
  2. sjau

    sjau Local Meanie Moderator

    you could use another editor. I use nano a lot, since you are on ubuntu I think it's already installed:

    nano file.txt

    if not, apt-get install nano

    :)
     
  3. edge

    edge Active Member Moderator

    I'm more a Midnight Commander (MC) person.
    MC is a file manager, but using it to navigate to the file, and when needed editing the file is so easy!

    apt-get install mc was all that I needed
     
  4. Ben

    Ben Active Member Moderator

    1.) try "aptitude install vim" to install vi extended, due to debian comes with the "old" vi. vim is a bit more comfortable. But anyway vi as well as vim alsways worked fine.

    3.) these "basic shell commands" are most of all the same accross the popular linux distros, so what escpecially are you looking for?
     
  5. bravadoman

    bravadoman New Member

    basic shell commands

    3a. How to create a new user account?
    3b. How to transfer files between two PCs perhaps using a USB drive or floppy media (my Ubuntu box is not networked)?

    Thanks for taking the time to help.
    B
     
  6. Ben

    Ben Active Member Moderator

    3a: useradd / userdel, for groups the same with groupadd, groupdel
    try --help or the manpages (man useradd) for more info on them.

    3b: don't know if ubuntu comes with automount. otherwise just mount your device using mount, also depinding on the content of fstab.
     
  7. mystix

    mystix New Member HowtoForge Supporter

    Look here:
    http://www.dynamic-apps.com/linux_vim.jsp



    To logon to your linux server via ssh you need 'putty'. You can download it here:
    http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe

    After you logged on your server, you can copy the commands from the tutorial and paste it in the putty window with a rightclick.

    Look here:
    http://members.tripod.com/~earthen/linuxcom.htm

    Have fun
     
  8. falko

    falko Super Moderator Howtoforge Staff

  9. MisterVlad

    MisterVlad New Member

    just to resurect an old article... PICO works really nice.

    I use it on Debian 3.0, 3.1 and now 4.0. I think it is pre-installed as I have never installed it, but found it by mistake in an article. Not to mention, I have NO Idea how to use VI.
     
  10. falko

    falko Super Moderator Howtoforge Staff

Share This Page