Announcement

Collapse
No announcement yet.

Remove Directory

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

    Remove Directory

    I want to remove a directory in my /opt directory but I need sudo rights. To do it in Konsol, I'd use sudo rmdir /opt/whatever but the directory isn't empty and I'm not going to go through and delete every file and directory under it. How can I recursively remove this directory?

    #2
    Re: Remove Directory

    Being pretty GUI-centric, I would do Alt-F2,
    Code:
    kdesu konqueror
    and start sending things to trash.

    Comment


      #3
      Re: Remove Directory

      A powerful but dangerous command. Use with extreme caution:

      Code:
      sudo rm -r directory
      The -r option is recursive, it will go through all files and folders no matter how deep they are.

      Be extremely careful with what directory you target. targetting the wrong one can have very adverse consequences.
      Jucato's Data Core

      Comment


        #4
        Re: Remove Directory

        yeah, even more dangerous:
        Code:
        sudo rm -rf
        extreme caution
        <br />

        Comment

        Working...
        X