how to display detailed information of a directory ?

This is a discussion on how to display detailed information of a directory ? within the Linux Programming forums, part of the Platform Specific Boards category; Code: /home/username/sample_dir2 `-- sample_dir |-- admin |-- cambridge | |-- cafeteria | |-- library | `-- security | |-- annex ...

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    23

    Talking how to display detailed information of a directory ?

    Code:
    /home/username/sample_dir2
    `-- sample_dir
        |-- admin
        |-- cambridge
        |   |-- cafeteria
        |   |-- library
        |   `-- security
        |       |-- annex
        |       |-- building
        |       `-- parking
        |-- faculty
        |-- history.exe
        |-- markham
        |   |-- annex
        |   |-- building1
        |   `-- parking
        `-- stenton
            |-- gen_ed
            `-- lib_arts
                |-- english.txt
                `-- match.doc

    11 directories, 9 files

    11 directories, 9 files


    Your current directory is stenton. Place a calendar listing for the month
    of December 2013 into a file called Holidays within the gen_ed directory:
    Last edited by blackendstars; 03-09-2013 at 09:42 PM.

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    2,517
    Stop adding the period (.) at the end of the command.

    I am mainly a windows user; so, there might be a logical reason to use the period.
    But, you say you DO NOT wish to have only the results for the current directory.
    The period means the current directory.

    Tim S.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

  3. #3
    Registered User
    Join Date
    Jan 2013
    Posts
    23
    Quote Originally Posted by stahta01 View Post
    Stop adding the period (.) at the end of the command.

    I am mainly a windows user; so, there might be a logical reason to use the period.
    But, you say you DO NOT wish to have only the results for the current directory.
    The period means the current directory.

    Tim S.
    okay still doesn't work
    i tried ls -d ../markham
    ls -d .././markham
    etc
    doesn't work

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    2,517
    Did you just try the standard?

    Code:
    ls -al
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Go to another directory and display file
    By Brownie in forum C++ Programming
    Replies: 2
    Last Post: 02-23-2009, 11:08 AM
  2. Replies: 2
    Last Post: 12-29-2005, 03:01 PM
  3. Directory Tree Display Problem
    By dayknight in forum Linux Programming
    Replies: 4
    Last Post: 10-20-2005, 02:33 AM
  4. Getting directory information.
    By elfjuice in forum Windows Programming
    Replies: 1
    Last Post: 05-07-2005, 12:45 AM
  5. getting directory information
    By N8760 in forum C++ Programming
    Replies: 4
    Last Post: 05-08-2002, 03:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21