LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   print listing of directory (https://www.linuxquestions.org/questions/linux-newbie-8/print-listing-of-directory-174445/)

harnadem 04-25-2004 02:01 PM

print listing of directory
 
I am using RH9. How do I print a listing of the contents of a particular directory? I simply want to print out a sheet that lists the files within a directory. Thank you for your help.

RolledOat 04-25-2004 02:26 PM

ls -l > listing.txt
(Note: specify the listing options you want, man ls)

lpr listing.txt

(If you have multiple printers)
lpr -P <printername>

or you can open it up in any text editor and print from there.

RO

harnadem 04-25-2004 09:35 PM

Worked great! Thanks for the help.


All times are GMT -5. The time now is 06:54 AM.