broot icon indicating copy to clipboard operation
broot copied to clipboard

whale spotting on specific disk

Open kaddkaka opened this issue 8 months ago • 5 comments

Hi, I would like to find large files that use space on a specific disk, is that possible? I couldn't find anything in br --help

the reason that br --whale-spotting is not enough is because I have several several slow network disks that I'm uninterested to check.

kaddkaka avatar May 06 '25 09:05 kaddkaka

You should be able to do br -w /some/path.

Canop avatar May 06 '25 09:05 Canop

How can I know all paths which are associated with a specific file system/disk?

kaddkaka avatar May 06 '25 10:05 kaddkaka

You have a list of file systems with the :fs command. And you can display the device id in the file tree with :dev.

Regarding filtering files in whalespotting mode for a specific device, I'm afraid there's no such feature yet.

Canop avatar May 06 '25 10:05 Canop

Ok, then that is the feature I'm looking. Looking at all the file systems is too time consuming.

kaddkaka avatar May 06 '25 11:05 kaddkaka

@kaddkaka I think you might find :sort_by_size very useful in broot, you can quickly get to the source of very big files or directories.

If this doesn't solves your problem, then you'll likely have to use 'find' manually outside broot, as root run: # find ./ -size +500M

The above command will simply list all files greater than 500MB in the current directory and sub-dirs, this may take considerable time to finish depending on how many files, directories it's attempting the search.

srmfx avatar Jun 26 '25 20:06 srmfx