Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I'd like to be able to do the following in the search box:

shell [cmd] [-linux]

to search for "questions containing the 'shell' term AND having the 'cmd' tag AND NOT having the 'linux' tag"

Note that "shell" is not a TAG !

share|improve this question
Dupe:… – random Aug 26 '09 at 11:32
It is not a duplicate, as I want to be able to do a keyword+tags search, not only tags – drAlberT Aug 26 '09 at 11:57
Okay, then quote the terms and bracket the tags – random Aug 26 '09 at 12:10
up vote 11 down vote accepted

You can if you precede the tag in the search with a minus (-):

shell [cmd] -[linux]

The following links pop for searches across the SOFU for questions that mention shell tagged but not tagged .




share|improve this answer
I think the minus sign should be outside the brackets, Is it right? I tried and it is the solution. OK – drAlberT Aug 26 '09 at 14:01
Logically it would be on the outside, but within the brackets, it keeps that part of the query as a tag. – random Aug 26 '09 at 14:09

As workaround you can set linux to your ignore list temporarily (or permanently, if you don't like it at all).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .