Hi there:
I recently created, via terminal, a new folder named "old", but now is not needed anymore. If I created it with:
what do I have to type to delete the folder?Code:hihihi100@hihihi100-laptop:/media/Volume 1$ sudo mkdir ./old
Cheers
Hi there:
I recently created, via terminal, a new folder named "old", but now is not needed anymore. If I created it with:
what do I have to type to delete the folder?Code:hihihi100@hihihi100-laptop:/media/Volume 1$ sudo mkdir ./old
Cheers
I believe 'rmdir' will do what you want.
Hi
Use rmdir. Have a look atbefore you use it.man rmdir
Acer Aspire 1353 Bodhilinux 2.0.1
Toshiba A200 12.04(32 bit)
Asus EeePC 1011PX 12.04 (32 bit) dual boot W7
That seems to work, but Im gonna need more help:
Directory not empty: I have accessed the Volume \1 as I would access any external hard drive (mount, click on the icon), and tried to delete all the content of the folder, even right clicking on it to change its permissions, to not avail I always get:Code:hihihi100@hihihi100-laptop:~$ cd /media/Volume\ 1 hihihi100@hihihi100-laptop:/media/Volume 1$ sudo rmdir ./old [sudo] password for hihihi100: rmdir: failed to remove `./old': Directory not empty hihihi100@hihihi100-laptop:/media/Volume 1$
Help pleaseCode:Cannot move file to trash, do you want to delete immediately? The file "hihihi100" cannot be moved to the trash. details: Unable to trash file: Permission denied
OK, it seems my question has to do withBut I dont know what to typeCode:--ignore-fail-on-non-empty ignore each failure that is solely because a directory is non-empty
So, help please...
cheers
Last edited by hihihi100; March 29th, 2010 at 07:29 PM.
Try thisOK, it seems my question has to do with
Code:--ignore-fail-on-non-empty ignore each failure that is solely because a directory is non-empty
But I dont know what to type
Code:sudo rmdir --ignore-fail-on-non-empty ./old
Linux Registered User #443947 Ubuntu Regestered User #12604
Hakunamatata ...... No worries !
I think that didnt work either:
I was prompted to type my password, but nothing happened, I can still see the non needed folder..Code:hihihi100@hihihi100-laptop:~$ cd /media/Volume\ 1 hihihi100@hihihi100-laptop:/media/Volume 1$ sudo rmdir --ignore-fail-on-non-empty ./old [sudo] password for hihihi100: hihihi100@hihihi100-laptop:
Well, it wasnt that difficult after all, but not via terminal:
I just opened the folder as administrator and deleted it
Cya
Bookmarks