Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-19-2005, 12:35 AM   #1
LQ Newbie
Registered: Jul 2005
Posts: 15

Rep: Reputation: 0
Link count value?


Does anyone know what does the link count values in the second column means when I use ls -l command?

Best Regards,
Old 07-19-2005, 12:44 AM   #2
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
The link count is the number of hard links to a file or directory.

For directories, this is always (I believe always) 2+number of subdirectories. (The first 2 are the link from the parent to it and it's own '.' reference. Each subdirectory is the '..' in that subdirectory.)

For regular files, this is generally 1, unless there are multiple hard links to that file. (Created with ln FILE SOME_OTHER_NAME).


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
WARNING: Hard link count is wrong for /proc Fr33B5D Linux - General 1 08-30-2005 07:41 PM
OpenBSD 3.6 install D-Link 300T / D-Link DFE 528TX lesleyb *BSD 2 04-01-2005 07:29 PM
Wake on Lan - Link on b4 power up, No Link light after shutdown? Mark007 Linux - Networking 0 11-20-2004 09:16 PM
Should posts in general count on your post count? Joey.Dale General 16 01-27-2004 02:31 AM
eth1... failed; no link present. Check Link? illegalien Linux - Networking 3 11-03-2002 11:46 PM

All times are GMT -5. The time now is 02:33 AM.

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