Re: ls flag to show number of hard links

2024-04-10 Thread Bernhard Voelker
On 4/9/24 10:20 PM, Carl Edquist wrote: On Tue, 9 Apr 2024, Tony Freeman wrote: I seem to recall that some years ago ls -l would show the number of hard links to a file. Yes with "ls -l" it's the first number you see (after the permissions string).  Or you can use "stat -c %h filename" to ju

Re: ls flag to show number of hard links

2024-04-10 Thread Pádraig Brady
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 t