I am having a hard time finding a file with a dash that I know is in the directory but it is not showing up. All I can find in the help files is they are hidden in Linux. Â How are you suppose to delete a file that has become hidden?
How To Delete A File With A Dash?
Hi James,
Â
To remove the non-hidden or hidden files, the following commands can be used.
Â
rm -rf /some/path/* deletes all the visible files in that directories (and subdirs).
Â
rm -rf /some/path/.* deletes all hidden files in that particular directory . This does not delete the subdirectories and gives a warning.
rm: cannot remove directory: `/some/dir/.'
rm: cannot remove directory: `/some/dir/..'
Â
Regards,
Anyet