Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How can i test a printer connection by sending some text to a printer named "myprinter" from the shell?

share|improve this question

1 Answer 1

whoami|lpr -Pmyprinter

Best printer name I have seen is "nuts" - you do lpr -Pnuts to print. :)

share|improve this answer

Your Answer


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