Find the answer to your Linux question:
Results 1 to 3 of 3
how to implement the ls -l comand? kindly help me !!...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    8

    changes to be made for the ls command

    how to implement the ls -l comand?
    kindly help me !!

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    You do just what you posted. Go into the directory you want to see. As an example:
    Code:
    cd /home/your_home_directory's_name/directory_you_want_to_see
    Then simply:
    Code:
    ls -l
    You can also use it without 'cd-ing' to the directory:
    Code:
    ls -l /home/your_home_directory's_name/directory_you_want_to_see
    EDIT: Saw your other post which also inquires about '-a'... To see all files and directories, including the hidden ones:
    Code:
    ls -a /home/your_home_directory's_name/directory_you_want_to_see
    ls -l -a /home/your_home_directory's_name/directory_you_want_to_see
    Make sure there is a space between the ls and the -l or -a. For more options, do:
    Code:
    ls --help
    Last edited by Dapper Dan; 03-04-2009 at 11:22 AM.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    45
    Quote Originally Posted by Rida
    how to implement the ls -l comand?
    kindly help me !!
    I think you might be interested in the header file «stat.h»¹ and all the functions defined in it, especially «stat()», «fstat()» and «lstat()», which offer all the values seens by an invocation of «ls -l» and more.

    Footnotes:
    1. The Single UNIX ® Specification, Version 2 – <sys/stat.h>

Posting Permissions

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