On Tue, 29 Jun 2021, Michael Barnes wrote:

Somehow, I managed to create a file named -u. I cannot figure out how to
look at it as any command I give thinks -u is an option, not the filename.

I cannot read, edit, move, delete, or anything.

Ideas appreciated.

Most GNU utilities will stop interpreting options when they encounter a bare ' -- ' string. So this should work

mv -- -u newfilename

Or, just use the . directory in the filename:

less ./-u

--
Paul Heinlein
heinl...@madboa.com
45.38° N, 122.59° W

Reply via email to