LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Output of ls-l (https://www.linuxquestions.org/questions/linux-newbie-8/output-of-ls-l-222589/)

praveenv 08-26-2004 06:31 AM

Output of ls-l
 
Hi Friends
I have an interesting Problem ,Read this carefully

When I executed " ls-l " It also didplays any links if the file has.I want to know remaining link file names and where the link aliases resides(Path)


How can I do that ?


Help regarding this..............

acid_kewpie 08-26-2004 06:50 AM

i read carefully... still didn't really make much sense though.... the ls output does include destination link locations..... what else do you want?

mikshaw 08-26-2004 06:58 AM

Maybe wants to know how to find out if a file has additional links to it, and where to find those links?
I'd never thought about this before, so I don't know what the answer is.

praveenv 08-26-2004 07:27 AM

U didn't understand me
 
In "ls-l" output it gives link count in second colum .In the last colum of output it gives destination file name to which links have been made. I want to know names of remaining links.

got me ?

acid_kewpie 08-26-2004 07:34 AM

i might be wrong here, but that numerical column should be the number of hardlinks to the file on disk, whereas the "destination" file is for a symbolic link. these two kind of links, whilst having a similar result, operate in very different ways.

blah blah blah 08-26-2004 12:41 PM

im not sure what your saying but try

locate [filename]

that will display every path to that certain file
and if you dont specify type it will display all
routes to every file associated.

Tinkster 08-26-2004 02:56 PM

Quote:

Originally posted by blah blah blah
im not sure what your saying but try

locate [filename]

that will display every path to that certain file
and if you dont specify type it will display all
routes to every file associated.

That is a) true and b) pointless in this context :)

He wants to know the names of symlinks to
a file, which can well be something completely
different and thus wouldn't show up in a locate.


Cheers,
Tink


All times are GMT -5. The time now is 03:10 PM.