Results 1 to 5 of 5

Thread: How do I open a file to write?

  1. #1
    Join Date
    Mar 2012
    Beans
    13

    How do I open a file to write?

    I've been through a bunch of guides, FAQs and boards and tried all these lines of code, but I just can't figure out how to open a file to edit it and save what I've changed. I'm trying to edit /etc/pulse/default.pa. After making a backup, I use this code:

    gksu gedit /etc/pulse/default.pa

    A lot of people have told me to do this. But when I enter it into the Terminal, nothing happens. It thinks for a couple seconds and then prompts me for another line of code. So I tried to prepend it with "sudo", but I get the same results. So what do I do?

  2. #2
    Join Date
    Mar 2012
    Beans
    13

    Re: How do I open a file to write?

    I also tried entering the code with Ctrl+F2, and it prompts me for my password, but still nothing happens.

  3. #3
    Join Date
    Aug 2012
    Beans
    104

    Re: How do I open a file to write?

    This works on my system:

    Code:
    gksudo gedit /etc/pulse/default.pa
    and the only prompt is for my password. Can you give a screenshot or direct quote of the subsequent prompt on your system?

  4. #4
    Join Date
    Mar 2012
    Beans
    13

    Re: How do I open a file to write?

    When I said that it prompts me for another line of code, I just mean that the process finishes, and the next line pops up:

    username@ubuntu:~$

    But I tried that code with "gksudo" instead of "gksu", and it actually prompted me for my password, but that's still all that happens.

    I guess I don't understand when I get to edit the file and save what I've done? Is it supposed to open automatically after I've entered the code? I tried opening it and changing it after I entered the code and put in my password, but when I try to save, I still get the error message that says "Can't open file to write".

  5. #5
    Join Date
    Mar 2012
    Beans
    13

    Re: How do I open a file to write?

    Got it. I found another thread that said to use "sudo nano filepath". Worked perfectly

    Thanks for the help though, I appreciate it.

Bookmarks

Posting Permissions

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