Results 1 to 3 of 3
how to implement the ls -l comand?
kindly help me !!...
- 03-04-2009 #1Just 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 !!
- 03-04-2009 #2
You do just what you posted. Go into the directory you want to see. As an example:
Then simply:Code:cd /home/your_home_directory's_name/directory_you_want_to_see
You can also use it without 'cd-ing' to the directory:Code:ls -l
EDIT: Saw your other post which also inquires about '-a'... To see all files and directories, including the hidden ones:Code:ls -l /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 -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
Code:ls --help
Last edited by Dapper Dan; 03-04-2009 at 11:22 AM.
- 03-04-2009 #3Just Joined!
- Join Date
- Feb 2009
- Posts
- 45
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.
Originally Posted by Rida
Footnotes:


Reply With Quote