I have thousands of files nested within subfolders of subfolders. When I am in the root directory with a list of all my main folders, I want to be able to sort by size (largest main folder to smallest, dictated by the contents of its subfolders).
By default, Win Explorer only sorts individual files. Is there an easy way to change this behavior without a 3rd party app? Otherwise, I'd be happy with an AutoHotkey-oriented solution too.
JakeGould
33.9k1010 gold badges103103 silver badges146146 bronze badges
Automator_EnthusiastAutomator_Enthusiast
1 Answer
See here:
Windows 8.1, just like its predecessors, doesn’t show size of folders in Windows Explorer (File Explorer) by default. That is, when you open up a folder containing several files and folders, Windows Explorer shows only the size of files and not folders in Details view.
In order to view the size of a folder in Windows Explorer, one needs to either hover mouse cursor on the folder, or select the folder, right-click on it, and then click Properties (one can quickly open properties by using Alt + Enter hotkey).
You can sort by folder size in OSX, but unfortunately there's no built in way to do so in Windows.
So back to your question, I don't think there is any way to display folder size without a third party app. I guess the way without a 3rd party tool would be to right-click>Properties.
Related superuser question.
I would like to:1 - Use a QUERY that uses the database of the connection string (that was why I used DBID.2 - Get only the total values and their names. Use the SpaceUsed property of the FILEPROPERTY function which will tell how much space is used and then you can calculate free space based on the current size and what is being used. SELECT DBNAME AS 'TestDB',name AS FileName,size/128.0 AS CurrentSizeMB,size/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS INT)/128.0 AS FreeSpaceMBFROM sys.databasefiles;That is nice. So I get:TestDB FileName CurrentSizeMB FreeSpaceMBTestDB TestDBData 40.000000TestDB TestDBLog 4.000000 3.593750TestDB TestDBFileStream 231.468750 228.406250But I am executing the T-SQL query from C# code. Query to find database size.
Freeware:
Snapshot:
Snapshot:
See here for more.
Community♦
Rsya StudiosRsya Studios
3,03022 gold badges1313 silver badges2222 bronze badges
Not the answer you're looking for? Browse other questions tagged windows-8windows-explorer or ask your own question.
How can I display the files in a unix directory sorted by their human readable size, going from largest to smallest?
I tried
but it does not seem to work.
Jens Erat
13.2k1111 gold badges4747 silver badges6161 bronze badges
Sort Folder By Size Ubuntuuser46976user46976
46822 gold badges1313 silver badges2727 bronze badges
7 AnswersHello71Hello71
7,37233 gold badges3636 silver badges4343 bronze badges
kevkev
7,67466 gold badges4545 silver badges6161 bronze badges
If you have the appropriate
sort version you may simply use:
mine is
Sort By Folder Size Windows
ztank1013ztank1013
du -ha | sort -h
Dec 25, 2018 - Xforce keygen autocad 2014 32 bit Download AutoCAD 2014 Free PC Version with direct. Autocad 2014 Crack & Xforce Keygen Download. Jul 2, 2016 - Take design further with AutoCAD software Design and shape the world with the powerful, connected design tools in AutoCAD® software for. Nov 4, 2018 - Autocad 2014 Crack is not limited to just 3D Maps creations, but it is a complete suite devise used by professional architects. AutoCAD 2014 Download and enjoy the next generation of advanced mechanical design tools. Cloud computing is fully integrated into Autocad 2012 Crack. Apr 11, 2016 - AutoCAD 2014 Crack Is Here CrackSoftPC: Download AutoCAD 2014 Bust ( X-Force patch application). X-Force is Keygen which will generate. Autocad 2014 crack xforce 64 bit.
du : estimate file disk usage.
sort : sort lines of text.
man du; man sort for more. It works for me on ubuntu v15.
Andrew_1510Andrew_1510
ls -S wasn't an option on the OS for me. The following worked:ls -l | sort -k 5nr They 'key' was to specify the column to sort (get it, the 'key'). Above I'm specifying -k 5nr meaning sort on 5th column which is size (5) evaluated as a number (n) in descending order (n)
Reference sort documentation for more information
AlexAlex
I got this to work for me:
Which (I just figured-out) is the same as:
AaronAaron
72211 gold badge77 silver badges1212 bronze badges
Unlike jlliagrejlliagre
ls -S , this will properly handle sparse files:
12.1k33 gold badges2525 silver badges4141 bronze badges
Not the answer you're looking for? Browse other questions tagged bashunixshell or ask your own question.Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |