I just noticed that I have a file called
~ in my
$ ls -la ~ ... -rw-r----- 1 x1 x1 733962240 Mar 1 17:55 ~ ...
Any idea how I can
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Quote it (
rm '~') or escape it (
It's always either of those (also for e.g.
$), or add
-- to prevent the file name from being interpreted as argument:
rm -- -i removes the file named
-i; also useful for
rm -- * when you want to delete all files in the current directory: No accidental
rm -f * just because a file is named like that.