Announcement

Collapse
No announcement yet.

How can I delete folders as root?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How can I delete folders as root?

    I need to delete some old doom3 demo how do I delete it as a root user in konsole?

    #2
    Re: How can I delete folders as root?

    Originally posted by elfshadow14
    I need to delete some old doom3 demo how do I delete it as a root user in konsole?
    You can issue commands 'as root' in konsole with sudo (as in 'sudo rm')

    You can also start konqueror filemanager 'as root' with:
    Code:
    kdesu 'konqueror --profile filemanagement'

    Comment


      #3
      Re: How can I delete folders as root?

      Would you also know how to remove a dir.

      Comment


        #4
        Re: How can I delete folders as root?

        To remove a directory with all contents and all subdirectories, including write protected files, issue the command

        rm -Rf nameofdirectory

        If you want to do this as root:

        sudo rm -Rf nameofdirectory

        Comment


          #5
          Re: How can I delete folders as root?

          Cuation: -Rf (f = force) deletes everything in a path without confirmation. These flags do the same thing, but with confirmation (just in case):

          rm -rvi /path

          or

          sudo rm -rvi /path (if you don't own the directory)

          The switches

          r = recursive = delete a directory and everything in it
          v = verbose mode (tells you what it's doing)
          i = confirmation

          john

          Comment


            #6
            Re: How can I delete folders as root?

            Just my $ 0.02. When it comes to deleting multiple files or a directory with files in it, I think it's much safer to do it from Konqueror rather than the command line, specially since "sudo rm -rf" have very destructive consequences, and that there is no undelete/restore function in the command line. I also find it quite easy to get lost or confused about your location and/or target directories in the command line.
            Jucato's Data Core

            Comment


              #7
              Re: How can I delete folders as root?

              Code:
              sudo rm -rf
              is a very bad way to do anything. You might accidentally delete your entire filesystem if you hit the Enter key too early.

              I agree with Jucato--use
              Code:
              kdesu konqueror
              instead.
              Linux is ready for the desktop--but whose desktop?<br />How to install software in Kubuntu

              Comment


                #8
                Re: How can I delete folders as root?

                Thanks a TON!@!!! I used your command to create a short cut on the desktop for 'root filemanager'..... All is good in Kubuntuhoodom..

                Originally posted by kubicle
                Originally posted by elfshadow14
                I need to delete some old doom3 demo how do I delete it as a root user in konsole?
                You can issue commands 'as root' in konsole with sudo (as in 'sudo rm')

                You can also start konqueror filemanager 'as root' with:
                Code:
                kdesu 'konqueror --profile filemanagement'

                Comment


                  #9
                  Re: How can I delete folders as root?

                  I just discovered myself as a newbie an even easier way to delete files as root for us used to the windows way of doing things go to K Menu>system>krusader - root mode. Krusader opens. Find the file and delete it.
                  That worked for me.

                  Comment


                    #10
                    Re: How can I delete folders as root?

                    Originally posted by tmray
                    I just discovered myself as a newbie an even easier way to delete files as root for us used to the windows way of doing things go to K Menu>system>krusader - root mode. Krusader opens. Find the file and delete it.
                    That worked for me.
                    Of course one has to install Krusader first to use Krusader :P

                    You can make a launcher in kmenu for Konqueror - root mode, too

                    Comment

                    Working...
                    X