Open a File That Starts With a Dash From the Terminal

Updated on

When a filename starts with a dash (-), the terminal can confuse it for a command option. Use ./-filename instead.

Example:

cat ./-filename