Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rm vs rmdir

rm -rf <directory> # will remove a directory and all it's contents, USE WITH CAUTION
rmdir <directory> # will only delete a directory if it is already empty
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #rm #rmdir
ADD COMMENT
Topic
Name
6+8 =