Find the answer to your Linux question:
Results 1 to 6 of 6
How do you save the GNU nano 2.0.7 sources.list file after you have edited it?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    18

    [SOLVED] save sources.list?


    How do you save the GNU nano 2.0.7 sources.list file after you have edited it?

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Control-X should exit nano and give you a chance to save the file. Check at the bottom of the opened nano window or in the console for this option, and others.
    oz

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You must have root privileges to save sources.list file. Execute su - command to gain root privileges first.
    Code:
    su -
    nano /etc/apt/sources.list
    Edit file and press Ctrl+X, Y and hit Enter key to save file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Just in case you need it, more info on using nano can be found on the manual page:

    Code:
    man nano
    oz

  5. #5
    Just Joined! sathiya's Avatar
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    97
    If you are new to these, it is good to use Graphical editors..

  6. #6
    Just Joined!
    Join Date
    Apr 2010
    Posts
    18
    thank you. i got it.

Posting Permissions

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