Notes of a Programmer
Thursday, May 7, 2020
Removing Files Whose Names Start with "-"
I wanted to remove files whose names begin with "-" on a Linux system. After some searches, I found out that the following method worked.
rm -- -foo
where the file name is
-foo
.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment