The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sorting Directory Listing Sepia UNIX for Dummies Questions & Answers 1 07-11-2007 08:44 AM
How can i get directory listing? haisubbu UNIX for Dummies Questions & Answers 2 08-25-2006 10:03 AM
Full Directory Listing... B14speedfreak UNIX for Dummies Questions & Answers 5 05-11-2006 09:06 AM
Timestamp in directory listing vijashok UNIX for Dummies Questions & Answers 2 10-06-2005 11:03 AM
Recursive directory listing without listing files psingh UNIX for Dummies Questions & Answers 4 05-10-2002 11:52 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-24-2001
lfulton lfulton is offline
Registered User
  
 

Join Date: Aug 2001
Location: TEXAS, USA
Posts: 7
Printing a Directory Listing in Unix

Does anyone know if there is a way to print the list of files contained in a directory (besides screen print)? Thanks!!!
  #2 (permalink)  
Old 08-24-2001
lfulton lfulton is offline
Registered User
  
 

Join Date: Aug 2001
Location: TEXAS, USA
Posts: 7
Directory List PRint

It's HP Unix by the way. THANKS!!!!
  #3 (permalink)  
Old 08-24-2001
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
ls | lpr -P&ltPRINTER&gt

that should work on most systems as long as you have your printer daemon setup and a printer configured.

*man some of these questions are hard to tell if it is a homework question or not.
  #4 (permalink)  
Old 08-24-2001
lfulton lfulton is offline
Registered User
  
 

Join Date: Aug 2001
Location: TEXAS, USA
Posts: 7
Print DIR

I do not mean printing the contents of the files. When you type ls and get the list of file names in the directory on the screen - that is what I want to print, exactly what is displayed on the screen at that moment. Is there a command for that? Thanks!

  #5 (permalink)  
Old 08-24-2001
jwbrown jwbrown is offline
Registered User
  
 

Join Date: Apr 2001
Posts: 34
Do ls -al > filename then just print the file
  #6 (permalink)  
Old 08-24-2001
lfulton lfulton is offline
Registered User
  
 

Join Date: Aug 2001
Location: TEXAS, USA
Posts: 7
Print DIR

THANKS jwbrown!!! It worked!!!!
  #7 (permalink)  
Old 08-24-2001
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
well if you had tried my command you would notice it also does the same thing with out the i/o writeing to disk then opening a file. you take the output directly from the file to the printer.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0