Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a small problem with Kubuntu. I cannot detele some folders and files, it always says to me, the file or folder /src/ doesn't exist? and now I need to delete them, but i don't know how. someone may help me please. Regards

share|improve this question
    
    
My guess is that this is a problem of relative vs absolute path. /home/user/src is not the same location as /src (or src for the matter) , and /home/XXX is not the same as /home/user/XXX –  bodhi.zazen Dec 2 '13 at 18:36
    
do you want to delete a folder inside home or what ?? elaborate it a little more.. –  Sushantp606 Dec 2 '13 at 18:36
    
thanks a lot mec, it works as well I wanted~~ –  xiaofu Dec 2 '13 at 18:36
    
Please show us your command. On top of that can you post the results of two commands: pwdand ls –  Stefano Mtangoo Dec 2 '13 at 19:12

1 Answer 1

to remove the folder use -

sudo rm -f /path/to/the/folder

to remove the folders inside it recursively use-

sudo rm -r -f /path/to/the/folder

here -r stands for recursive and -f stands for force , please make sure to write exact path and exact name of folder.

hope thats what you want.

share|improve this answer
    
Well, OP is asking about a directory in "/home/XXX" and "/src/" so ... /home/src != src != /src. My guess is the problem is with relative vs absolute path. –  bodhi.zazen Dec 2 '13 at 18:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.