mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Create filesize.nu
script for showing sizes of all directories in current directory
This commit is contained in:
parent
2757d62979
commit
82e08e645a
1 changed files with 2 additions and 0 deletions
2
cool_oneliners/filesize.nu
Normal file
2
cool_oneliners/filesize.nu
Normal file
|
@ -0,0 +1,2 @@
|
|||
## show directory sizes in current directory starting from the largest
|
||||
ls|where type == Dir|each {du $it.name}|sort-by apparent|reverse|format filesize apparent GB
|
Loading…
Add table
Add a link
Reference in a new issue