coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ls flag to show number of hard links


From: Carl Edquist
Subject: Re: ls flag to show number of hard links
Date: Tue, 9 Apr 2024 15:20:09 -0500 (CDT)

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 just grab that number specifically.

Carl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]