Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 07-04-2007, 05:51 AM   #1
Registered: Jan 2006
Location: Sydney
Distribution: RHEL
Posts: 72

Rep: Reputation: 15
Hard links Number and Directories

Hi all,

When issuing the ls -l command, it displays the number of hard links for each file. What does that number mean for directories?

Thanks in advance.
Old 07-04-2007, 07:43 AM   #2
Registered: Nov 2004
Location: Turkey
Distribution: Slackware
Posts: 145

Rep: Reputation: 16
It show directory count under that directory.
Old 07-04-2007, 01:54 PM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,733

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
More precisely, it still displays the number of hard links. There is nothing specific except the "." and ".." links are automatically created and creating links to directories is not allowed to users.

Last edited by jlliagre; 07-04-2007 at 01:57 PM.


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
technical question about hard links v soft links 7stud Linux - Newbie 2 02-23-2007 06:57 PM
Why we can't create hard links for directories in linux? tdhanu_2000 Linux - Kernel 11 06-11-2006 04:14 AM
Preserving number of links with 'cp'. ( preserve number of links ) Devyn Linux - General 7 09-16-2005 10:07 PM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 12:10 PM
Links for Directories GregSims General 5 08-06-2005 02:53 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

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

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