Results 1 to 4 of 4

Thread: Delete file/folder in console

  1. #1
    STS301 NNTP User

    Default Delete file/folder in console

    hi

    I have a problem.
    I created a folder with su rights, but now I can't delete it normally.
    How can I delete the folder in the console with su rights using KDE 4.2 beta 2?

    Sebastian

  2. #2
    careta NNTP User

    Default Re: Delete file/folder in console

    sudo rm -r path-to-folder

  3. #3
    Join Date
    Jul 2008
    Location
    Netherlands
    Posts
    1,140

    Default Re: Delete file/folder in console

    rm -R /where/you/put/it
    to delete a folder and EVERYTHING in it recursively (that's were the r comes in)

    rmdir /dir/location
    to remove an empty directory

    As root if you created them somewhere or somehow were normal permissions don't allow you to remove it.
    Be careful with the rm -R one, you can delete a lot of things you don't want to delete if you don't watch it and press enter too soon. There will be no extra question 'Are you certain' press enter and it's gone.
    Special effects <- KDE 4.2 Showing off
    More KDE -> PINK KDE

  4. #4
    STS301 NNTP User

    Default Re: Delete file/folder in console

    ok, thank you

Posting Permissions

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