How to open a "-" dashed filename using terminal?

How to open a “-” dashed filename using terminal?

This approach can lead to misunderstandings because using a hyphen (-) as an argument typically refers to standard input (stdin) or standard output (stdout), such as /dev/stdin or /dev/stdout.

Therefore, if you want to open a file with a name like -, you need to specify the full path to the file, such as ./-.

For example, if you want to see the contents of a file named -, you would use cat ./-.

If you need to work with a file named "-" (dash) in the terminal, you can use nano ./- to edit it or cp ./- newfile to make a copy with a different name.

To open a file named “-” (dash) in the terminal, you can use the command cat ./- to display its contents.