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

Reply via email to