Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 04-25-2004, 02:01 PM   #1
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Rep: Reputation: 15
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.
Old 04-25-2004, 02:26 PM   #2
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
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.

Old 04-25-2004, 09:35 PM   #3
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Worked great! Thanks for the help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing Directory Size andy7t Linux - Software 2 12-14-2008 02:46 PM
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Directory Listing with apache aroop Linux - Networking 2 06-02-2004 02:50 AM
listing files in a directory Linh Programming 7 05-17-2004 04:35 AM
Directory Listing mattbeekler Linux - Software 8 07-22-2003 02:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration