- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: one simple query regarding ls -lrt output
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2009 07:36 AM
тАО03-03-2009 07:36 AM
Re: one simple query regarding ls -lrt output
with normal files I am able to understand the ln counts but not with respect to the numbers against "." and ".."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2009 08:07 AM
тАО03-03-2009 08:07 AM
Re: one simple query regarding ls -lrt output
Please refer to
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1046949
See the last two post and the explanation by Bill for the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2009 08:49 AM
тАО03-03-2009 08:49 AM
Re: one simple query regarding ls -lrt output
This means that the link count for any directory will be the number of directories it contains plus two, and the link count for ".." is just the parent directory's link count.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2009 09:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2009 09:07 AM
тАО03-03-2009 09:07 AM
Re: one simple query regarding ls -lrt output
Oops, off by one, see Heironimus' reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2009 01:27 AM
тАО03-04-2009 01:27 AM
Re: one simple query regarding ls -lrt output
Eg:-
In the following output the link count of /test is 9, since there are 7 directories in it and plus two. (current and parent directories.)
# ls -lart |grep -i test
drwxr-xr-x 9 root sys 8192 Mar 4 01:15 test
# cd /test
# ls -lart
total 32
drwxr-xr-x 28 root root 8192 Mar 4 01:12 ..
-rw-r--r-- 1 root sys 0 Mar 4 01:12 abc.txt
drwxr-xr-x 2 root sys 96 Mar 4 01:13 b
drwxr-xr-x 3 root sys 96 Mar 4 01:14 abc
drwxr-xr-x 2 root sys 96 Mar 4 01:15 4
drwxr-xr-x 9 root sys 8192 Mar 4 01:15 .
drwxr-xr-x 2 root sys 96 Mar 4 01:15 2
drwxr-xr-x 2 root sys 96 Mar 4 01:15 3
drwxr-xr-x 2 root sys 96 Mar 4 01:15 1
drwxr-xr-x 2 root sys 96 Mar 4 01:15 5
# ls -lart |grep -i "^d" |wc -l
9
---------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2009 08:24 AM
тАО03-04-2009 08:24 AM
Re: one simple query regarding ls -lrt output
Thanks for your time ..i have given the points ..
- « Previous
-
- 1
- 2
- Next »