Sometimes some people create a file with special character like "-s" in the filename.
If you use
rm -s
or
rm "-s"
You will get an error that '-s' is not a valid parameter.
You can add a "--" before the filename.
Example:
Display its content:
cat -- -s
List the file:
ls -l -- -s
Delete the file:
rm -- -s
No comments:
Post a Comment