Find the answer to your Linux question:
Results 1 to 3 of 3
I am trying to add repositories to my sources.list. When I scroll to the end of the file to add the pages I am not able to edit the list. ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    1

    editing sources list in itripid

    I am trying to add repositories to my sources.list. When I scroll to the end of the file to add the pages I am not able to edit the list. I am using vi, can anyone help?

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Vi is a powerful program, but rather complicated. vi Editor Commands Press i to be able to insert text. Press esc when you're done editing the text, and enter :wq to save and exit.

    I suggest just using gedit.

    Code:
    sudo gedit /etc/apt/sources.list
    Or, if you want a command line text editor for quick basic editing, install nano.

    GNU nano

  3. #3
    Just Joined! Sunnyside's Avatar
    Join Date
    Dec 2008
    Posts
    50
    If you use "vim cheat sheet" as keywords in a Google search, you'll find tons of links on how to use vi enhanced or "vim". Vi is the predecessor to vi enhanced (vim) which is what is now installed by default in all Linux OSs, either as vim tiny or the full version.
    If you have the full version of Vim installed, type: vim tutor in a terminal to take a half hour course to learn basic usage of vim.
    EDIT: In Ubuntu, you must add sudo to you vi command, for example: sudo vim /etc/apt/sources.list
    Last edited by Sunnyside; 04-20-2009 at 09:38 AM. Reason: Added Ubuntu specific instructions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...