Add PowerShell command to get large files
This commit is contained in:
parent
5d976fe81e
commit
de3ee6046a
|
@ -6,6 +6,11 @@ List all files with a particular extension in the current directory and its chil
|
|||
Get-ChildItem -Path .\ -Filter *.sln -Recurse -File | Select Fullname | Sort-Object Fullname
|
||||
```
|
||||
|
||||
List the 10 largest files in the current directory and subdirectories.
|
||||
```powershell
|
||||
gci -r | sort Length -desc | select @{n="Length";e={$_.length}}, fullname -f 10
|
||||
```
|
||||
|
||||
Search Files.ps1
|
||||
```powershell
|
||||
Get-ChildItem -Recurse -Include *.item | select-string "<term>"
|
||||
|
|
Loading…
Reference in New Issue