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.


lpr: Print file from command line | Fresh Tutorial

Free Course: JavaScript: The Good Parts
View Comments
You Might Like
Join the discussion
Be the first to comment on this article. Our Commenting Policies