PowerShell メモ

よくつかうエイリアス

Clear-Hostclear, cls
Compare-Objectcompare, diff
Copy-Itemcopy, cp, cpi
ForEach-Object%, foreach
Get-ChildItemdir, gci, ls
Get-Contentcat, gc, type
Get-Historyghy, h, history
Get-Locationgl, pwd
Get-Processgps, ps
helpman
Invoke-WebRequestcurl, iwr, wget
mkdirmd
Move-Itemmi, move, mv
New-PSDrivemount, ndr
Remove-Itemdel, erase, rd, ri, rm, rmdir
Rename-Itemren, rni
Select-Objectselect
Set-Locationcd, chdir, sl
Set-Variableset, sv
Start-Processsaps, start
Stop-Processkill, spps
Where-Object?, where
Write-Outputecho, write

このコマンドの代わりは?

whichGet-Command
timemeasure-command
grepselect-string