rm examples

# delete a file

rm myfile

# delete directory, and all files in it

rm -rf mydir

# delete everything in the current directory your in
# This is VERY DANGEROUS!!!!! Be sure you know which directory you are in before doing this.

rm -rf *

NOTE: If rm -rf still asks for confirmation before deleting the file, then do the following before issuing the “rm -rf” command:

unalias rm

Engineering Network Services home page link College of Engineering home page link