Results 1 to 7 of 7

Thread: [SOLVED] how do i delete and rename files as root?

  1. #1
    Join Date
    Sep 2008
    Location
    North Carolina, USA
    Beans
    109

    [SOLVED] how do i delete and rename files as root?

    i want to delete: /etc/rc2.d/S19rc.local
    i want to rename: /etc/rc2.d/S99rc.local to S19rc.local

    S19rc.local is a file i made up and i want to delete it b/c it doesn't work.

  2. #2
    Join Date
    Sep 2006
    Beans
    3,165
    Distro
    Ubuntu Karmic Koala (testing)

    Re: how do i delete and rename files as root?

    sudo rm /etc/rc2.d/S19rc.local
    sudo mv /etc/rc2.d/S99rc.local /etc/rc2.d/S19rc.local

  3. #3
    Join Date
    Sep 2008
    Beans
    226
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: how do i delete and rename files as root?

    from the terminal:
    sudo rm /etc/rc2.d/S19rc.local
    sudo mv /etc/rc2.d/S99rc.local /etc/rc2.d/S19rc.local

    from the nautilus:
    (use terminal)
    sudo nautilus
    (now nautilus)
    navigate to /etc/rc2.d/ and do your stuff.


    edit:binbash beat me to it...

  4. #4
    Join Date
    Mar 2008
    Beans
    1,755

    Re: how do i delete and rename files as root?

    sudo rm /etc/rc2.d/S19rc.local

    sudo mv /etc/rc2.d/S99rc.local /etc/rc2.d/S19rc.local


    sudo nautilus
    This should be:

    gksu nautilus


    but they both work

  5. #5
    Join Date
    Aug 2008
    Location
    WA
    Beans
    2,186
    Distro
    Ubuntu

    Re: how do i delete and rename files as root?

    open a terminal and do:

    Code:
    gksu nautilus

  6. #6
    Join Date
    Sep 2008
    Location
    North Carolina, USA
    Beans
    109

    Re: how do i delete and rename files as root?

    what's the diffrence between gsuk or whatever and sudo?

  7. #7
    Join Date
    Mar 2008
    Beans
    1,755

    Re: how do i delete and rename files as root?

    gksu should be used when launching graphical programs as root.

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
  •