This question already has an answer here:
I tried to
cd into a directory named
- that I created for experimenting. I could not from Bash. How do I cd into it?
With Nautilus on Ubuntu 13.10 I could easily do this, and even create files inside it effortlessly. I did a Google search and here is what I got. That covers the case when directories begin with a
-test, but not the case when the entire name is one single
rm does not work, although I was able to delete it from Nautilus.
cat test.txt >- copies text from
test.txt into a file named
cat - >test2.txt does what it would do in normal circumstances, that is, copy input from
test2.txt, not from the file
Why does Nautilus have no problem with this but bash does?