15 January 2014

FreeBSD Remove Directory

Just share, how to remove directory on freebsd. Here's command for remove one directory and all of its contents including subdirectories and their contents is

rm -r dirname

if you put the trailing slash in

rm -r dirname/

you will remove the contents but not the directory itself.

I hope it's helped.
cheers..

13 comments: