JoshMachine
Monday, August 6, 2012
How to delete a UNIX directory with a hyphen in the name
rm -rf -- -directoryName
The -- after rm tells it to stop looking for options.
Alternatively, you can put "./" in front of directory name
rm -rd ./-directoryName
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment