General Question:
Let's say I'm using a command called bar
and want to learn more about the -foo
option. (Perhaps the man page didn't talk much about it). How can I search the internet for it?
If I do a google search for bar -foo
it will take search for all pages that have bar but do not have foo. If I search for bar "-foo"
I seem to get pages that have foo and bar, but not necessarily foo -bar. If I search for just -bar
I'll be told that it doesn't match any documents, and if I search for "-bar"
, I'll be given results as if I'd just searched for bar
.
Specific Question:
A different serverfault question reminded me of a comment on Slashdot. The article, which may have been months or years ago, was, IIRC, about unexpected behaviour of command-line options. One of the commentors replied that you should create a file called "-i" in important directories (such as /etc) so that if you ever were in the directory and accidentally typed in rm *
it would expand to being rm -i [lots of files here]
and prompt you, interactively, if you wanted to delete the files. I'd like to find the post, but have searched to no avail.