Print all files in a directory in Linux

Use a terminal command in Linux to print files in a directory

Here's how you can print all files in a directory in Linux, by using a terminal command.

1. Open a terminal window.

2. Go to the directory.

3. Type in the following command then hit Enter.

lpr -o landscape *.txt

For more, see the original article at the link below.

LinkArrow6.jpg

lpr: Print file from command line | Fresh Tutorial

This article is published as part of the IDG Contributor Network. Want to Join?

From CIO: 8 Free Online Courses to Grow Your Tech Skills
Notice to our Readers
We're now using social media to take your comments and feedback. Learn more about this here.