The full guide of PowerShell that any developer needs to know – Aliases


The full guide of PowerShell that any developer needs to know – Index

In PowerShell (PS) you can use Aliases wich are short name of cmdlets, command, function, script, file or executable.

You can get all PS aliases with this cmdlet:

Get-Alias

You can create/change your own aliases, for example:

Set-Alias -Name ping -Value Test-NetConnection

Now you can use ping instead Test-NetConnection

When the session is end you lost all your aliases, so is a good practice to save your aliases in a script or file and import them when you start a new session in PS.

Extra documentation:

 

The full guide of PowerShell that any developer needs to know – Index

This content is property of Matias Creimerman.
Any misuse of this material will be punishable.
Creative Commons License
This work is licensed under a
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

About the author:

Matías Creimerman

Matías Creimerman

Profesional Website

Linkedin

Blog

Medium

Youracclaim Badges

Microsoft Tech Profile

Aboutme

Connection

Portfoliobox

Github

ASP.NET Forum

Facebook

Twitter

Youtube

Crunchbase

Blogger

Matías Creimerman Certifications

Matias Creimerman

 

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s