User Tools

Site Tools


human_readable_ls_powershell

Something like the following for listing just file sizes. Yes it is a bit sore on the eyes but it manages to get the job done. https://superuser.com/a/468790

ls | Select-Object Name, @{Name="KiloBytes";Expression={$_.Length / 1KB}}

https://superuser.com/questions/468782/show-human-readable-file-sizes-in-the-default-powershell-ls-command

human_readable_ls_powershell.txt · Last modified: 2025/04/29 13:36 by oso