|
From: | Pádraig Brady |
Subject: | Re: ls flag to show number of hard links |
Date: | Wed, 10 Apr 2024 15:38:28 +0100 |
User-agent: | Mozilla Thunderbird |
On 09/04/2024 16:58, Tony Freeman wrote:
I seem to recall that some years ago ls -l would show the number of hard links to a file. This may have been on an AIX system. I needed to use this today on a red hat 8 machine but couldn't figure it out. So I used ls -i | sort Am I overlooking a flag to ls that would show me the number of hard links?
The long listing shows hardlinks in the second column. Note my ls wrapper script highlights values > 1: https://www.pixelbeat.org/scripts/l cheers, Pádraig
[Prev in Thread] | Current Thread | [Next in Thread] |