SSH Commands


For the basics in linux shell

SSH Commands Guide List | Suggest A Guide
HostGeekz Hosting Guides | cPanel | Cheap Domains | Web Hosting Talk


Command: rm

Delete the folder and everything under it:

rm -r <dir>

To delete everything without prompting for delete add a -f in there too:

rm -rf <dir>

Delete a file:

rm <filename>

Delete file without prompt:

rm -f <filename>

So to delete everything under the "downloads" directory you could:

Example 1:

cd /home/user1/public_html/
rm -rf download

This would delete the download directory, without prompt and everything under it.

Example 2:

cd /home/user1/public_html/download
rm -rf ./*

© Copyright, Simplec Services - Australia, 2019

Visit For More!
Cheap .Com Domains from $8.50