Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Posts
    43

    Unanswered: Owner of the directory

    Hi,

    I have to check the owner of the directory for the list of hosts and have to take some action. Is there any command to find out the owner of the directory other than the "ls -ltr".

    Please revert me as soon as possible.

    Thanks,
    Vineela

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    What's wrong with ls?
    ---
    "It does not work" is not a valid problem statement.

  3. #3
    Join Date
    May 2009
    Posts
    43
    I am writing the script. I have directory names with me and have to find out the owner of the directory. Please help me in this regard.

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    So, why don't you use the ls command?
    ---
    "It does not work" is not a valid problem statement.

  5. #5
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    mabe this is what you want?
    stat --printf=%U your_dir_name

Posting Permissions

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