Removing files wihtout removing containing Direcotry
I am hoping that there is a simple answer to my question.
I am using Fedora Core 2 as my primary OS at home. It has been running prefect for at least two weeks now, but I have noticed that my "/tmp" directory has gotten rather large. I know I can simply do the following commands to clear it all out:
And the directory will be cleared without question (I have unaliased RM in my version).
So, on to my question:
I wish to write a cron entry to do this for me once a week, I know the format of the cron table, but the command to delete the CONTENTS of the "/tmp" while RETAINING the "/tmp" directory elude me.
Any help would be great, and thanks.
P.S - Any RedHat fans that do not own the Genuine "RedHat" Fedora should seriously consider getting one!