0

I am looking for a command line file explorer/manager that displays the number of files for each directory.

For example, ncdu displays the folder sizes:

enter image description here

I would like to have the same with the number of files.

I am aware of ls -la or find, however I want to be able to navigate through the folders. (with ls -la one has to execute this command for each folder one wishes to analyze, and cd in between). Example of folder navigation with ncdu:

enter image description here

1

ranger does what you need: it is a command-line [TUI] file explorer/manager and it does display the number of files for each directory

  • what does it do? – Pierre.Vriens Jan 16 '18 at 11:21
  • It gives the number of files in the status line at the bottom of the screen. – Thomas Dickey Jan 16 '18 at 21:16
  • @Pierre.Vriens -- did you read the topic and the OP's question ("a command line file explorer/manager that displays the number of files for each directory")? In any event, I edited my answer. – François Tonneau Jan 18 '18 at 12:11
  • @FrançoisTonneau : aha, now I get it ("merci" for the edit) ... – Pierre.Vriens Jan 18 '18 at 12:18
0

It's difficult finding a program which meets your needs exactly. You could try hacking into midnight commander. It should be straight forward, adding a new coloumn entry, or replacing a current column. On a sidenote, you could switch to zsh, it allows you to define shortcut keys to command templates

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.