Knowledgebase

Powered by WHMCompleteSolution

Language:

Please Login or Register

 

Knowledgebase Article
Subject: How to delete all contents of a directory but not the directory in SSH?
Say you want to delete all the contents in public_html directory but not the directory itself, then do this:



rm -rf /home/account/public_html/*



For other tutorials, go here:



http://www.computerhope.com/unix.htm
Back