Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Two questions for ya first how do you print from vi? I tried to search here for it but you can't search for vi as it is under 3 letters, then along the same lines how do you print from command line say cat test.txt > ????? I already have my printer installed and working great but as most of my work seems to be at command line this is quite the handicap. Thanks for any info.
I haven't done this from linux, only Solaris, but check out the man pages for "lpr", and maybe "lpq" for a start
Not sure exactly how to make this happen from vi or vim, but I would think you can always save the file first, and then do a lpr "file" from the command prompt.
Thanks for the reply that works great, does anyone know the command for printing while you are in vi, there is alot of times where I will be working on code and want to have a quick printout of if to check some syntex things.
Yep works great thank you very much. I had to keep going into gui just to print off my html and php files, seems like a bit of a waste to me, I like spending my time in the command line, I guess it is just a sickness or something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.