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.

Some instructions say to put 'uname -r' into terminal commands. Is this supposed to be automatically converted by the system to something else? It doesn't get converted to anything on my system. uname -r only works by itself but not as a program argument.

share|improve this question
1  
It would be helpful to have a link to these "instructions" :) –  John T Aug 8 '10 at 1:24

1 Answer 1

up vote 5 down vote accepted

Probably, it says:

`uname -r`

Make sure you use the right quotes. A trivial example is:

echo `uname -r`

Of course, this is just equivalent to:

uname -r

The backquotes capture the output of the command as a string. Generally the equivalent:

echo $(uname -r)

is considered clearer. It nests correctly, and it's harder to misinterpret.

share|improve this answer
    
It was the quotes. –  tony_sid Aug 8 '10 at 4:34

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.