Pages

Tuesday, January 29, 2013

Remove all files from a directory linux


$ rm /home/usr/dirname/*
or
$ cd /home/usr/dirname/
$rm *

+jayakrishnan nair says that always use the first option rather than the second one


Read more: http://www.linuxstall.com/delete-all-files-from-directory/#ixzz2JMYbz4Fr

No comments:

Post a Comment