Remove FileThe command
rm file_a
removes the file_a from the system at all.
If you use wildcard. For example
rm h*c
you will remove all files beginning with h and
ending with c which are in working directory. If
you write
rm *
you will erase all files from your working directory.
If you write
rm -i *
it will be done also but the system will ask for
permission before removing each file.
The command
rm -r your_file
causes removing of the directory your_file
even if this directory is not empty.
Attention!
Command
rm -r /
will erase
all your directories (including not empty directories). .