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. ![]()
Leave a Reply