ls flag to show number of hard links

2024-04-09 Thread Tony Freeman
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

Utility of new program for coreutils?

2017-06-02 Thread Tony Freeman
I'm trying to find a project to work on to improve coding skills and contribute to the community. So I thought that possibly a command line program would be useful that does similar things as Perl's trim function and PHP's trim function. So .. Would it be worth creating a new program, let's call i

ls to show the number of items in directories?

2018-01-01 Thread Tony Freeman
I've been perusing the man page for 'ls' and not finding what I'm looking for. Perhaps I've skipped over it? I'm looking for a 'ls' option that will list the directory along with the number of items inside that directory. For instance: ls -1 --content-count 4 inhumans.2000 12 inhumans.2003 4

Re: [PATCH] ls: add --sort=width (-W) option to sort by filename width

2021-04-15 Thread Tony Freeman
This is a creative solution to a problem that I have had for a very long time. My workaround was to rename files nightly on a cron but this is much better! Thank you! On Thu, Apr 15, 2021, 08:17 Carl Edquist wrote: > On Thu, 15 Apr 2021, Michael Stone wrote: > > > I think it's a heck of a lot

Re: GNU/Linux rmdir

2022-06-26 Thread Tony Freeman
'rmdir' is a convenience command to remove empty directories only. So the answer is no: You'll have to invoke the 'rm' command with options, such as '-rf', to remove non-empty directories. On Sat, Jun 25, 2022 at 6:32 AM Бреусов Виталий wrote: >Hello! Is it possible to delete a non-empty fo

coreutils-9.1.198-e68b1.tar.xz (warnings/fatal errors with conftest.c)

2023-03-19 Thread Tony Freeman
There are compile time fatal errors/errors/warnings with conftest.c OS: Debian bookworm Kernel: x86_64 Linux 6.1.0 Shell: bash 5.2.15 GCC: (Debian 12.2.0-14) 12.2.0 === Testsuite summary for GNU coreutils 9.1.198-e68b1 =