John Domville wrote: > Being new to LINUX I have only begun to understand my way around this > operating system. Most of what I know about LINUX was forced on me when I > bought a SHERLINE mill and installed Ubuntu for the first time. Anyway, The > question I have is how can I print out the contents of a sub-directory to a > printer. > > In the pre-windows, DOS days it was possible to type: > > DIR/W > LPT1 Which would send a directory listing to the > printer on LPT1 > > Or > > DIR/W > filename.txt Which would send a directory listing to a file which > could then be opened > In a text editor and then printed. > > Even under today's Windows you can do basically the same thing at the > command prompt (cmd) > > So is there any way to do this under LINUX? > > > John (NGDQ) > > (New GUY Dumb Question)
The equivalent of "DIR" is "ls". The /W in DIR/W is an option that tells DIR how to format it's output. ls has similar options. I don't recall what /W does - it's been a long time since I used DOS. But maybe "ls -l" is something like what you want? You can read the documentation for ls by typing "man ls". "man" means "show me the manual page", so man followed by a command name means show the manual for that command. You can experiment with various ls options without printing till you see what you like. Try "ls" by itself first, then maybe "ls -l", etc. Once you have output you like, you can save it to a file with by redirecting it. "ls -l >somefile" will store the output of the "ls -l" command in a file in the current directory called somefile. From there you can edit it, print it, etc. Regards, John Kasunich ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
