Stephen Kuhn said: >> What is the command line to delete all files under certain directory? >> >> Sasa > > For instances: > > rm -rf ./* > > Just cd yourself into a dir (like the one you want to clear out) and > type that.
But be careful! Don't log in as root unless you absolutely have to, make sure that rm isn't set to follow symbolic links, and so on. I've so far only managed to kill one server by logging in as root and running rm -rf ./* at the command line when rm followed a symlink to the root directory from the subdirectory I was in (God knows why it was there). Thankfully I still have my job. Heh. Sliante, Richard S. Crawford http://www.mossroot.com http://www.stonegoose.com/catseyeview AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] Howard Dean for America: http://www.deanforamerica.com "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list