Results 1 to 6 of 6
Thread: Deleting a Directory in SSH
-
09-22-2005, 01:14 AM #1Web Hosting Master
- Join Date
- Mar 2004
- Posts
- 1,016
Deleting a Directory in SSH
Yes, I know about the #rm -r [dir] command, but it asks for confirmation on each and every file deletion
Is there a command to delete a directory and its contents completely without confirming on each file?
Thanks
-
09-22-2005, 01:16 AM #2Web Hosting Master
- Join Date
- Jun 2003
- Location
- UK
- Posts
- 6,616
rm -rf [dir]
This will stop the confirmation but please be careful. To many people have nuked servers typing that wrong
rusRuss Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
09-22-2005, 01:37 AM #3The Linux Specialist
- Join Date
- Mar 2003
- Location
- /root
- Posts
- 23,991
This is the powerful command ever!!! :-)
Specially 4 U
Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx
-
09-22-2005, 01:59 AM #4Web Hosting Master
- Join Date
- Mar 2004
- Posts
- 1,016
Thanks! It worked!
Yes, I won't use it too often.
-
09-22-2005, 02:21 AM #5WHT Addict
- Join Date
- May 2004
- Posts
- 165
I very scared this command , be careful when using it !!!
ServerVina.com | Sales@servervina.com
YM: servervina | AIM: servervina
Lowest prices for Unmetered and Metered bandwidth.
-
09-22-2005, 03:12 AM #6Web Hosting Master
- Join Date
- Jan 2005
- Posts
- 2,203
should have a script to prevent accidental nuke of the server using that command.