Handy SSH command for my fellow impatient programmers

My loyal readers know that I’m a bit impatient (surprise!!). I tend to play around with new scripts and sometimes just want to get rid of them; they’re not even worth the space on my server.

Deleting through FTP takes waaaay too long. And, the other alternative is to log into my control panel, but I don’t always feel like doing that, especially since I have found a much faster solution.

The following command will delete a directory named DIRECTORY, and will prompt you to delete its subfolders/files.

rm -r DIRECTORY

The following command will delete a directory named DIRECTORY, and will not prompt you to delete its subfolders/files.

rm -rf DIRECTORY

Use both of these with caution, though. You may also want to backup your files if you feel uneasy using these commands the first few times. Also, make sure you’re in the correct directory. :shock:

This entry was posted on Wednesday, May 14th, 2008 and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Categories

Links


Links


Sponsors

 

 



Recent Posts

 
Got my response from ADSDAQ already
 
I love contacting ADSDAQ
 
I may be stuck with a host that I don’t like
 
Still no word from Google
 
IP privacy on blogs
 
The hard to find Miracle Berry
 
Finally sent our site in for reconsideration through Google
 


Third-Party RSS Feeds

 
Dell 3Q profit falls as PC spending slows (AP)
 
Google's virtual world Lively to die next month (AP)
 
Web ad sales rise slightly from prior quarter (AP)
 
Review: New BlackBerrys cool but can't beat iPhone (AP)
 
Certification credited with boosting online confidence (CNET)
 
NASA Successfully Tests 'Interplanetary Internet' (NewsFactor)