Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
yum list installed kernel\*

I don't understand how this would differ from "kernel*", or why the backslash is necessary.

share|improve this question
    
Hm. Not too sure then. Normally \* would mean you search for a literal asterisk and not the wildcard. –  slhck Jun 4 '11 at 11:46
    
Seems like kernel* and "kernel*" give the same results. Perhaps yum passes this parameter to something else, so the * needs to be escaped first. –  Rave Jun 4 '11 at 11:54
add comment

1 Answer

My guess: to prevent shell glob expansion in case you execute the command in a directory containing some file beginning with "kernel".

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.