CommandType Name->Module Name
Alias % -> ForEach-Object Alias ? -> Where-Object Alias ac -> Add-Content |
Alias asnp -> Add-PSSnapin
Alias cat -> Get-Content Alias cd -> Set-Location Alias chdir -> Set-Location |
操作 : コマンドレット(エイリアス) | 操作 : コマンドレット(エイリアス) |
フォルダの内容一覧 : Get-ChildItem(dir, ls)
場所を移動する。 : Set-Location(cd, chdir) 文字列を表示する。 : Write-Host, Write-Output(echo) テキストファイルの内容を表示する。 : Get-Content(type, cat) ファイルのコピー : Copy-Item(copy, cp) ファイルの削除 : Remove-Item(del, rm) ファイルのリネーム : Rename-Item(ren, mv) |
ディレクトリの作成 : New-Item(md, mkdir)
ディレクトリの削除 : Remove-Item(rd, rmdir) 履歴の表示 : Get-History(history) 履歴コマンドの実行 : Invoke-History(F7キー) エイリアスの表示 : Get-Alias(alias) ヘルプの表示 : Get-Help(help) 画面のクリア : Clear-Host(cls) |
Write-Host | Write-Output |
PS C:\> $a=1,2,3
PS C:\> write-host $a 1 2 3 |
PS C:\> write-output $a
1 2 3 PS C:\> |
コマンド名 : エイリアス名 | コマンド名 : エイリアス名 | コマンド名 : エイリアス名 |
Add-Content : ac
Add-PSSnapIn : asnp Clear-Content : clc Clear-History : clhy Clear-Host : clear, cls Clear-Item : cli Clear-ItemProperty : clp Clear-Variable : clv Compare-Object : compare, diff Connect-PSSession : cnsn ConvertFrom-String : CFS Convert-Path : cvpa Copy-Item : copy, cp, cpi Copy-ItemProperty : cpp Disable-PSBreakpoint : dbp Disconnect-PSSession : dnsn Enable-PSBreakpoint : ebp Enter-PSSession : etsn Exit-PSSession : exsn Export-Alias : epal Export-Csv : epcsv Export-PSSession : epsn ForEach-Object : %, foreach Format-Custom : fc Format-Hex : fhx Format-List : fl Format-Table : ft Format-Wide : fw Get-Alias : gal Get-ChildItem : dir, gci, ls Get-Clipboard : gcb Get-Command : gcm Get-ComputerInfo : gin Get-Content : cat, gc, type Get-History : ghy, h, history Get-Item : gi Get-ItemProperty : gp Get-ItemPropertyValue : gpv Get-Job : gjb Get-Location : gl, pwd Get-Member : gm Get-Module : gmo |
Get-Process : gps, ps
Get-PSBreakpoint : gbp Get-PSCallStack : gcs Get-PSDrive : gdr Get-PSSession : gsn Get-PSSnapIn : gsnp Get-Service : gsv Get-TimeZone : gtz Get-Unique : gu Get-Variable : gv Get-WmiObject : gwmi Group-Object : group help : man Import-Alias : ipal Import-Csv : ipcsv Import-Module : ipmo Import-PSSession : ipsn Invoke-Command : icm Invoke-Expression : iex Invoke-History : ihy, r Invoke-Item : ii Invoke-RestMethod : irm Invoke-WebRequest : curl, iwr, wget Invoke-WMIMethod : iwmi Measure-Object : measure mkdir : md Move-Item : mi, move, mv Move-ItemProperty : mp New-Alias : nal New-Item : ni New-Module : nmo New-PSDrive : mount, ndr New-PSSession : nsn New-PSSessionConfigura… : npssc New-Variable : nv Out-GridView : ogv Out-Host : oh Out-Printer : lp Pop-Location : popd powershell_ise.exe : ise Push-Location : pushd Receive-Job : rcjb |
Receive-PSSession : rcsn
Remove-Item : del, erase, rd, ri, rm, rmdir Remove-ItemProperty : rp Remove-Job : rjb Remove-Module : rmo Remove-PSBreakpoint : rbp Remove-PSDrive : rdr Remove-PSSession : rsn Remove-PSSnapin : rsnp Remove-Variable : rv Remove-WMIObject : rwmi Rename-Item : ren, rni Rename-ItemProperty : rnp Resolve-Path : rvpa Resume-Job : rujb Select-Object : select Select-String : sls Set-Alias : sal Set-Clipboard : scb Set-Content : sc Set-Item : si Set-ItemProperty : sp Set-Location : cd, chdir, sl Set-PSBreakpoint : sbp Set-TimeZone : stz Set-Variable : set, sv Set-WMIInstance : swmi Show-Command : shcm Sort-Object : sort Start-Job : sajb Start-Process : saps, start Start-Service : sasv Start-Sleep : sleep Stop-Job : spjb Stop-Process : kill, spps Stop-Service : spsv Suspend-Job : sujb Tee-Object : tee Trace-Command : trcm Wait-Job : wjb Where-Object : ?, where Write-Output : echo, write |
コマンドレット | > Get-ChildItem -Recurse *.csv | Get-Content | Set-Content merge.csv | |
エイリアス | > ls -R *.csv | cat | sc merge.csv |