-
-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show hard link number with -l (second column of ls -l) #407
Comments
I am not sure if there is a standard way to do this, but you can check the inode number of files by using |
Well that works for files in the same directory:
When files are not in the same directory, it gets complicated :-) What @M4tT3d is referring to is to get column number two of
|
Yes. It is exactly what I mean |
I, too, would love to see this feature added. It's the only thing that is preventing me from using lsd full-time instead of colorls. |
Hey, I want to contribute to this issue. Is there a recommended way to go about implementing this or should I peruse the |
hi @TheAlakazam , Thanks for trying to implement this! previously, I have done an feel free to ask any questions |
I couldn't get the inode numbers to show with any combination of |
@tomWhilbert You might be using an older version of lsd. Version 0.18.0 has support for |
I have version 0.16.0 Its installed via Arch Community repo. Guess I'll wait for the update. |
|
I uninstalled with pacman and installed using cargo. All is good now, thanks. |
Hi, I wanted to ask if this should be implemented inside the INode struct, because hard link numbers is a part of the inode metadata ? The MetaDataExt crate has a method for getting the number of hardlinks to an inode. |
maybe a standalone mod would be a better choice? The hard links number feels more like a standalone concept, although hard-linked files used the same inode number. |
As @zwpaper suggested think we could keep it as a separate file as that way it would align with the idea of having one file per block (parsing, rendering etc). Also, we could add something like |
Ok, I will create a new mod. Names for the mod are welcome, even I am stumped as to what to name it. I will be going with INodeCount for now as per @meain's suggestion. |
You can now do |
excuse me. I know this is not the right section, but I would like to know how to show hard links too. In help I can't find anything and there is no manual. Thanks and sorry again
The text was updated successfully, but these errors were encountered: