I use the c shell.
I wish to remove all the files and directories from a USB stick
There are a lot of files and directories. Many of the files and directories start with a period (I.e. they are so-called hidden files and directories.)
Firstly I cd
to the stick's mount point. Then the problem is how to
use the rm command.
If I run rm -r *
I do not delete the hidden files or hidden directories.
If I run rm -r *.*
I run into problems with .
(current directory) and ..
(parent directory)
How can I run rm to delete all files and directories (including the hidden files and directories)?