查看磁盘里的大文件
在PowerShell中
命令1:
gci -r| sort -descending -property length | select -first 10 name, length
命令2:
Get-ChildItem -Path C:\ -Recurse | Where-Object { $_.Length -gt 1GB } | Sort-Object -Property Length -Descending
注意路径
查看磁盘里的大文件
在PowerShell中
命令1:
gci -r| sort -descending -property length | select -first 10 name, length
命令2:
Get-ChildItem -Path C:\ -Recurse | Where-Object { $_.Length -gt 1GB } | Sort-Object -Property Length -Descending
注意路径