nemo 5.6.4 Cinnamon 21.1 cant sort files and folders by size

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

nemo 5.6.4 Cinnamon 21.1 cant sort files and folders by size

Post by deepakdeshp »

Hello,
I wanted to sort files and folders by size in Nemo. The size column is missing in Nemo, I also wanted to find say files greater than 50MB in nemo, If it cant be done in Nemo, which other application can do it?
Last edited by LockBot on Mon Dec 04, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: nemo 5.6.4 Cinnamon 21.1 cant sort files and folders by size

Post by Termy »

deepakdeshp wrote: Sun Jun 04, 2023 7:14 am [...]
This is an easy job for the terminal and find(1):

Code: Select all

find -type f -size +50M
That'll show files of a size greater than 50M in the current working directory, recursively. To recurse, in this context, means that it would traverse the subdirectories until it can't go any further. If you don't want find(1) to operate recursively, you can use:

Code: Select all

find -maxdepth 1 -type f -size +50M
If you want to search in a different directory than that which you're currently in, you can specify the directory path(s) like:

Code: Select all

find '/etc' -type f -size +50M
If you'd prefer human-readable file sizes:

Code: Select all

find -type f -size +50M -printf '%s %p\n' | numfmt --to=iec --field 1
You can also columnize the results to make it a bit nicer:

Code: Select all

find -type f -size +50M -printf '%s %p\n' | numfmt --to=iec --field 1 | column
If you see nothing listed, nothing was found.

If you're not familiar with the terminal, cd PATH lets you change to a directory, which is like double-clicking on a folder in a graphical file manager like Nemo. To see what's in the PATH, you can use ls from within it. You can also use ls PATH to list the contents of another PATH without first cd-ing into it. Of course, where 'PATH', provide a suitable path, not literally the word 'PATH'. The terminal is case-sensitive and spaces matter, liKeinwrIttEnlanGuages. ;)

I'm not sure of a GUI solution, though.
I'm also Terminalforlife on GitHub.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: nemo 5.6.4 Cinnamon 21.1 cant sort files and folders by size

Post by deepakdeshp »

Termy wrote: Sun Jun 04, 2023 8:26 am
deepakdeshp wrote: Sun Jun 04, 2023 7:14 am [...]
Thank you. I am aware of the find command and had used it too.I was looking for a gui solution.Nemo can't even sort files by size. Surprising.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
t42
Level 11
Level 11
Posts: 3747
Joined: Mon Jan 20, 2014 6:48 pm

Re: nemo 5.6.4 Cinnamon 21.1 cant sort files and folders by size

Post by t42 »

deepakdeshp wrote: Sun Jun 04, 2023 1:40 pm Nemo can't even sort files by size. Surprising.
deepakdeshp wrote: Sun Jun 04, 2023 7:14 am The size column is missing in Nemo
In case if someone will read this post and started to think it's true - it's not true.
53.png
To add to Termy's comment, to sort directories by size in terminal it may be

Code: Select all

du <directory> -ah --max-depth=1 | sort -hr
Feature to sort directories by size in Nemo was requested several times and it seems to be rejected at the moment, but you can get a directory size by pressing space-bar on a selected folder.
https://github.com/linuxmint/nemo/issue ... -569356160
-=t42=-
DanR
Level 1
Level 1
Posts: 44
Joined: Mon May 22, 2023 4:27 am

Re: nemo 5.6.4 Cinnamon 21.1 cant sort files and folders by size

Post by DanR »

By far the #1 best most handy tool for this purpose and many many others for Linux is Double Commander file manager (in Windows its analog is Total Commander ). I have 7-8 of them running at the same time, each for separate purpose or for different project. Plus 2-3 Total Commanders when work with Windows via Wine. Each of them i made with different panel colors for simplicity of navigation.

Total Commander for Windows has one huge advantage over all other file managers: it has indexed search called "Everything" which allows you to have the same search like on Google -- instantly find not only some specific files but also anything inside the files. Unfortunately file managers for Linux lag in this respect.

No file managers sort directories by size, only files (looks like developers not yet have latest NVMe drives :) . But again like in Nemo, you can hit the space bar and get the info about size
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: nemo 5.6.4 Cinnamon 21.1 cant sort files and folders by size

Post by AndyMH »

deepakdeshp wrote: Sun Jun 04, 2023 7:14 am The size column is missing in Nemo,
In nemo, edit > preference > list columns
Screenshot from 2023-06-12 14-06-32.png
Make sure size is enabled.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: nemo 5.6.4 Cinnamon 21.1 cant sort files and folders by size

Post by deepakdeshp »

AndyMH wrote: Mon Jun 12, 2023 9:07 am
In nemo, edit > preference > list columns
Screenshot from 2023-06-12 14-06-32.png
Make sure size is enabled.
+1
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Software & Applications”