Results 1 to 4 of 4

Thread: Print Directories Via Terminal

  1. #1
    Join Date
    Jun 2009
    Beans
    38

    Print Directories Via Terminal

    Is it possible to print directories via the terminal? If so can I use sudo to print root owned folders?

  2. #2
    Join Date
    Jul 2008
    Location
    Birmingham, England
    Beans
    2,400

    Re: Print Directories Via Terminal

    If you mean list the directories in a given place use
    Code:
    ls -A /path/to/file
    .
    Code:
    man ls
    will give you more info

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

  3. #3
    Join Date
    Jun 2009
    Beans
    38

    Re: Print Directories Via Terminal

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

  4. #4
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Print Directories Via Terminal

    Quote Originally Posted by k_squired View Post
    Is it possible to print directories via the terminal? If so can I use sudo to print root owned folders?
    Yes.

    Code:
    sudo ls /path/to/wherever
    Quote Originally Posted by k_squired View Post
    Actually, is it po
    Quote Originally Posted by k_squired View Post
    Actually, is it possible to print files IN a directory as well?
    ssible to print files IN a directory as well?
    Code:
    ls /path/to/directory
    ls understands many useful options. Try appending -l to that, for example.

    Code:
    man ls

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •