Re: How to determine what the links to / are

From: Sunder Iyengar (Sunder.Iyengar@VERITAS.COM)
Date: Thu Aug 22 2002 - 21:35:26 EDT


The link count on the / directory could have changed due to the creation of
a sub-directory under /.

For example,

drwxr-xr-x 24 root system 1024 Aug 21 11:24 .

# mkdir /sample

Now, the link count on / is,

drwxr-xr-x 25 root system 1024 Aug 23 11:33 .

Sunder.

-----Original Message-----
From: Adams Kevin J [mailto:kevin.adams@PHS.COM]
Sent: Friday, 23 August 2002 07:11
To: aix-l@Princeton.EDU
Subject: How to determine what the links to / are

The other day Tripwire told me the number of links to / had changed from 30
to 31:

changed: drwxr-xr-x root 1536 Aug 17 02:01:20 2002 /

### Phase 5: Generating observed/expected pairs for changed files
###
### Attr Observed (what it is) Expected (what it should be)
### =========== ============================= =============================
/
      st_nlink: 31 30

To verify this I ran istat as follows:

# istat /
Inode 2 on device 10/4 Directory
Protection: rwxr-xr-x
Owner: 0(root) Group: 0(system)
Link count: 31 Length 1536 bytes

Last updated: Thu Aug 22 02:01:24 2002
Last modified: Thu Aug 22 02:01:24 2002
Last accessed: Thu Aug 22 12:02:40 2002

How can I tell what the links are?

Kevin Adams

This electronic message transmission, including any attachments, contains
information from PacifiCare Health Systems Inc. which may be confidential or
privileged. The information is intended to be for the use of the individual
or entity named above. If you are not the intended recipient, be aware that
any disclosure, copying, distribution or use of the contents of this
information is prohibited.

If you have received this electronic transmission in error, please notify
the sender immediately by a "reply to sender only" message and destroy all
electronic and hard copies of the communication, including attachments.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:10 EDT