ls when files have leading dash
If you have filenames that start with - (minus or hyphen), many programs interpret them as options.
You can prepend "./" to the path to avoid it:
ls ./*.json
If you have filenames that start with - (minus or hyphen), many programs interpret them as options.
You can prepend "./" to the path to avoid it:
ls ./*.json