In "Learning the Bash Shell" by O'reilly (third edition), it is written in page 7:

lp -d lp1 -h myfile has two options and one argument.

How come?

I see what I reckon as two options, each one with an argument:

-d lp1
-h myfile


lp prints a file (concretely, via a printer, and not on the terminal).

1 Answer 1


While writing this question I understand my mistake, I should read the command this way:

-d lp1 

The word myfile is just a file name that we print with lp it is not an argument of the -h option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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