Liste des alias dans PowerShell : Différence entre versions

De Vulgum Techus
Aller à : Navigation, rechercher
(Page créée avec « = Présentation = '''PowerShell''' utilise de nombreux alias pour assurer une certaine ressemblance avec les commandes les plus usités (ex. Curl, ls, [[mkdir]... »)
 
 
(6 révisions intermédiaires par un utilisateur sont masquées)
Ligne 1 : Ligne 1 :
 +
<!-- Links checked 01/12/18 -->
 +
[[Catégorie:Windows]]
 +
'''[[Lien court]]''' vers cette page : https://vt.cx/LaPS
 +
'''[[QR code]]''' vers cette page : https://vt.cx/LaPS.qr
 +
<html>
 +
<script type="text/javascript"><!--
 +
google_ad_client = "ca-pub-3341840374417340";
 +
/* VT2 */
 +
google_ad_slot = "6349432125";
 +
google_ad_width = 468;
 +
google_ad_height = 60;
 +
//-->
 +
</script>
 +
<script type="text/javascript"
 +
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
 +
</script>
 +
</html>
 +
 
= Présentation =
 
= Présentation =
'''[[PowerShell]]''' utilise de nombreux alias pour assurer une certaine ressemblance avec les commandes les plus usités (ex. [[Curl]], [[ls]], [[mkdir]], etc.). Les commandes '''[[PowerShell]]''' s'écrivent indifféremment avec leur intitulé par défaut ou leur alias. La syntaxe reste identique :
+
'''[[PowerShell]]''' utilise de nombreux '''[[alias]]''' pour assurer une certaine ressemblance avec les commandes les plus usités (ex. [[Curl]], [[ls]], [[mkdir]], ...). Les commandes '''[[PowerShell]]''' s'écrivent indifféremment avec leur intitulé par défaut ou leur '''[[alias]]'''. La syntaxe reste identique :
 
  Exemple : '''Move-Item bilan2013.txt d:/compta/bilans''' est équivalent à '''mv bilan2013.txt d:/compta/bilans'''
 
  Exemple : '''Move-Item bilan2013.txt d:/compta/bilans''' est équivalent à '''mv bilan2013.txt d:/compta/bilans'''
= Liste des alias PowerShell 4.0 =
+
 
* '''Alias -> Commande'''
+
= Liste des [[alias]] [[PowerShell]] 4.0 =
 +
* '''[[Alias]] -> Commande'''
 
* % -> ForEach-Object
 
* % -> ForEach-Object
 
* ? -> Where-Object
 
* ? -> Where-Object
Ligne 154 : Ligne 173 :
 
* wjb -> Wait-Job
 
* wjb -> Wait-Job
 
* write -> Write-Output
 
* write -> Write-Output
 +
 +
= Commentaires =
 +
{{#widget:DISQUS
 +
|id=vulgumtechus
 +
}}

Version actuelle en date du 1 décembre 2018 à 23:10

Lien court vers cette page : https://vt.cx/LaPS
QR code vers cette page : https://vt.cx/LaPS.qr

Présentation

PowerShell utilise de nombreux alias pour assurer une certaine ressemblance avec les commandes les plus usités (ex. Curl, ls, mkdir, ...). Les commandes PowerShell s'écrivent indifféremment avec leur intitulé par défaut ou leur alias. La syntaxe reste identique :

Exemple : Move-Item bilan2013.txt d:/compta/bilans est équivalent à mv bilan2013.txt d:/compta/bilans

Liste des alias PowerShell 4.0

  • Alias -> Commande
  •  % -> ForEach-Object
  •  ? -> Where-Object
  • ac -> Add-Content
  • asnp -> Add-PSSnapin
  • cat -> Get-Content
  • cd -> Set-Location
  • chdir -> Set-Location
  • clc -> Clear-Content
  • clear -> Clear-Host
  • clhy -> Clear-History
  • cli -> Clear-Item
  • clp -> Clear-ItemProperty
  • cls -> Clear-Host
  • clv -> Clear-Variable
  • cnsn -> Connect-PSSession
  • compare -> Compare-Object
  • copy -> Copy-Item
  • cp -> Copy-Item
  • cpi -> Copy-Item
  • cpp -> Copy-ItemProperty
  • curl -> Invoke-WebRequest
  • cvpa -> Convert-Path
  • dbp -> Disable-PSBreakpoint
  • del -> Remove-Item
  • diff -> Compare-Object
  • dir -> Get-ChildItem
  • dnsn -> Disconnect-PSSession
  • ebp -> Enable-PSBreakpoint
  • echo -> Write-Output
  • epal -> Export-
  • epcsv -> Export-Csv
  • epsn -> Export-PSSession
  • erase -> Remove-Item
  • etsn -> Enter-PSSession
  • exsn -> Exit-PSSession
  • fc -> Format-Custom
  • fl -> Format-List
  • foreach -> ForEach-Object
  • ft -> Format-Table
  • fw -> Format-Wide
  • gal -> Get-
  • gbp -> Get-PSBreakpoint
  • gc -> Get-Content
  • gci -> Get-ChildItem
  • gcm -> Get-Command
  • gcs -> Get-PSCallStack
  • gdr -> Get-PSDrive
  • ghy -> Get-History
  • gi -> Get-Item
  • gjb -> Get-Job
  • gl -> Get-Location
  • gm -> Get-Member
  • gmo -> Get-Module
  • gp -> Get-ItemProperty
  • gps -> Get-Process
  • group -> Group-Object
  • gsn -> Get-PSSession
  • gsnp -> Get-PSSnapin
  • gsv -> Get-Service
  • gu -> Get-Unique
  • gv -> Get-Variable
  • gwmi -> Get-WmiObject
  • h -> Get-History
  • history -> Get-History
  • icm -> Invoke-Command
  • iex -> Invoke-Expression
  • ihy -> Invoke-History
  • ii -> Invoke-Item
  • ipal -> Import-
  • ipcsv -> Import-Csv
  • ipmo -> Import-Module
  • ipsn -> Import-PSSession
  • irm -> Invoke-RestMethod
  • ise -> powershell_ise.exe
  • iwmi -> Invoke-WmiMethod
  • iwr -> Invoke-WebRequest
  • kill -> Stop-Process
  • lp -> Out-Printer
  • ls -> Get-ChildItem
  • man -> help
  • md -> mkdir
  • measure -> Measure-Object
  • mi -> Move-Item
  • mount -> New-PSDrive
  • move -> Move-Item
  • mp -> Move-ItemProperty
  • mv -> Move-Item
  • nal -> New-
  • ndr -> New-PSDrive
  • ni -> New-Item
  • nmo -> New-Module
  • npssc -> New-PSSessionConfigurationFile
  • nsn -> New-PSSession
  • nv -> New-Variable
  • ogv -> Out-GridView
  • oh -> Out-Host
  • popd -> Pop-Location
  • ps -> Get-Process
  • pushd -> Push-Location
  • pwd -> Get-Location
  • r -> Invoke-History
  • rbp -> Remove-PSBreakpoint
  • rcjb -> Receive-Job
  • rcsn -> Receive-PSSession
  • rd -> Remove-Item
  • rdr -> Remove-PSDrive
  • ren -> Rename-Item
  • ri -> Remove-Item
  • rjb -> Remove-Job
  • rm -> Remove-Item
  • rmdir -> Remove-Item
  • rmo -> Remove-Module
  • rni -> Rename-Item
  • rnp -> Rename-ItemProperty
  • rp -> Remove-ItemProperty
  • rsn -> Remove-PSSession
  • rsnp -> Remove-PSSnapin
  • rujb -> Resume-Job
  • rv -> Remove-Variable
  • rvpa -> Resolve-Path
  • rwmi -> Remove-WmiObject
  • sajb -> Start-Job
  • sal -> Set-
  • saps -> Start-Process
  • sasv -> Start-Service
  • sbp -> Set-PSBreakpoint
  • sc -> Set-Content
  • select -> Select-Object
  • set -> Set-Variable
  • shcm -> Show-Command
  • si -> Set-Item
  • sl -> Set-Location
  • sleep -> Start-Sleep
  • sls -> Select-String
  • sort -> Sort-Object
  • sp -> Set-ItemProperty
  • spjb -> Stop-Job
  • spps -> Stop-Process
  • spsv -> Stop-Service
  • start -> Start-Process
  • sujb -> Suspend-Job
  • sv -> Set-Variable
  • swmi -> Set-WmiInstance
  • tee -> Tee-Object
  • trcm -> Trace-Command
  • type -> Get-Content
  • wget -> Invoke-WebRequest
  • where -> Where-Object
  • wjb -> Wait-Job
  • write -> Write-Output

Commentaires

blog comments powered by Disqus