Thread: how to display detailed information of a directory ?

  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 10:42 PM.

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    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.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  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
    4,183
    Did you just try the standard?

    Code:
    ls -al
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

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, 12:08 PM
  2. Replies: 2
    Last Post: 12-29-2005, 04: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