LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2004, 07:31 AM   #1
praveenv
Member
 
Registered: Aug 2004
Location: India
Posts: 54

Rep: Reputation: 15
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..............
 
Old 08-26-2004, 07:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
i read carefully... still didn't really make much sense though.... the ls output does include destination link locations..... what else do you want?
 
Old 08-26-2004, 07:58 AM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
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.
 
Old 08-26-2004, 08:27 AM   #4
praveenv
Member
 
Registered: Aug 2004
Location: India
Posts: 54

Original Poster
Rep: Reputation: 15
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 ?
 
Old 08-26-2004, 08:34 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
Old 08-26-2004, 01:41 PM   #6
blah blah blah
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
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.
 
Old 08-26-2004, 03:56 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No output through SPDIf, but analog works. How do I get output through SPDIF? seanwnz Linux - General 11 11-08-2007 12:24 PM
tv output Shibby Linux - Software 1 06-07-2005 12:35 PM
Via AC'97 5.1 Optical Output or Audigy 4.1 Output Nza Fedora 3 06-01-2004 08:49 AM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 08:17 PM
Output of ls -l Crashed_Again Linux - Newbie 4 12-11-2003 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration