PDA

View Full Version : [ubuntu] Print Directories Via Terminal



k_squired
June 7th, 2009, 07:25 PM
Is it possible to print directories via the terminal? If so can I use sudo to print root owned folders?

SuperSonic4
June 7th, 2009, 07:30 PM
If you mean list the directories in a given place use
ls -A /path/to/file.
man ls will give you more info

If you mean via a printer then you might be able to use lp

k_squired
June 7th, 2009, 07:49 PM
Actually, is it possible to print files IN a directory as well?

snova
June 8th, 2009, 12:43 AM
Is it possible to print directories via the terminal? If so can I use sudo to print root owned folders?

Yes.


sudo ls /path/to/wherever


Actually, is it po
Actually, is it possible to print files IN a directory as well?

ssible to print files IN a directory as well?


ls /path/to/directory

ls understands many useful options. Try appending -l to that, for example.


man ls