Results 1 to 3 of 3

Thread: get directory file list

  1. #1
    Join Date
    May 2011
    Beans
    16

    get directory file list

    how can i get the file list of a directory? i want files in subdirectory as well and i want to import this list to a openoffice calc spreadsheet. i tried with the ls command but not seem to be the proper solution. thanks to anybody who can help

  2. #2
    Join Date
    Sep 2009
    Location
    surrey uk
    Beans
    2,057
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: get directory file list

    Hi

    How about "du /path/to/directory"
    DUAL BOOT XP & Natty, Trying LFS

  3. #3
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: get directory file list

    Change directory to where you want to be:

    Code:
    cd ~/Documents
    (for instance)

    "find" everything ( the full stop is important!).
    Code:
    find .
    OR:

    Code:
    find ~/Documents

    EDIT: As you can see, there's lots of different ways of doing the same thing.
    Last edited by MG&TL; March 5th, 2012 at 09:40 PM.

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
  •