Delete a folder although its not empty
Lothar Braun
lothar at lobraun.de
Tue Apr 8 09:56:02 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ruel Luchavez wrote:
| Hello...
|
| I'm tired of deleting a directory or folder in a server using "rm" and
| "rmdir" but before deleting a directory using "rmdir" the folder must be
| empty..what should i do or what command should be use in Free BSD to
delete
| a folder in a directory even if its not empty without affecting the
| folder in the same directory?
If you want to delete a non-empty folder, you have to use the recursive
option (see rm(1))
rm -r folder-name
should do the job.
Regards,
~ Lothar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkf7PjsACgkQOlpYSeF9JmYkOwCg0DagRl9s0L656fBnlNiDt+Np
/GkAn1UAIgLLZr+wdu5dW7qxdjJ2nOUv
=m15J
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list