Deleting the entire directory
Deleting the entire directory
I would like to delete the entire directory but it seems that I can't do so till I remove the files.
Thanks
Thanks
Re: Deleting the entire directory
rm -Rf name-of-directory
NB: This is a powerful command, be sure you select the correct directory.
NB: This is a powerful command, be sure you select the correct directory.
Re: Deleting the entire directory
I sure will,,,,, Thank you
Re: Deleting the entire directory
so if I want to remove this directory ,
here is the directory that I would like to remove RR20150202
So I just replace it with the directory name in the command that you recommended, is that correct?
rm -Rf RR20150202-of-directory
here is the directory that I would like to remove RR20150202
So I just replace it with the directory name in the command that you recommended, is that correct?
rm -Rf RR20150202-of-directory
Re: Deleting the entire directory
A great Utility I can't seem to live without is Midnight Commander (mc). It is a file browser, editor, and other cool stuff. You can view the contents of any Directory, if if all there is in it is junk you don't want highlight the directory, then hit F8, it will then ask you if you want to Delete Yes/No, say Yes and it is gone and all the files in it. If there are files you want to save you can move them to another Directory, or create a NEW Directory.
To install Midnight Commander issue the command yum install mc.
To install Midnight Commander issue the command yum install mc.
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: Deleting the entire directory
get rid of that "-of-directory" at the end
Re: Deleting the entire directory
An excellent guide for users that are new to Linux can be found at http://rute.gerdesas.com - while this is not official project documentation it is a well-regarded general introduction to Linux and may be of help. For an introduction to the bash shell take a look at http://linuxcommand.org/lc3_learning_the_shell.php
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Deleting the entire directory
Thank you all for your great response