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
‹
›
Home
View web version
No comments:
Post a Comment