commit 735f052fb3c5657ca90118d1edef2c61a8cac138
parent e4440bbbfff25f539e9024d804bdef8ebd1af7e7
Author: phoebos <ben@bvnf.space>
Date: Tue, 12 Oct 2021 13:43:40 +0100
ls: -l prints number of links
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/ls.c b/ls.c
@@ -71,6 +71,7 @@ printname(struct ent *e, int flags) {
/* file mode */
pretty_print_perms(e->mode);
/* number of links */
+ printf("%lu ", e->nlink);
/* owner name */
/* group name */
/* size (or device info for character/block special files) */