In PowerShell, an alias is another name assigned to a cmdlet, function, script, executable file, and so on. Just about anything you can run from the PowerShell command prompt can have an alias assigned to it.Windows users can utilize commands like dir, move, type, cls, etc… PowerShell also provides a set of aliases for Linux; ls, pwd, mv, man, cat, etc… PowerShell Aliases are provided for the purpose of allowing new users the ability to quickly interact with the shell. An alias is an alternative name assigned to a cmdlet. For example, “dir” is an alias for “Get-ChildItem.” This tutorial presents two types of aliases:
Built-in Aliases – Predefined alternative names for Windows, Unix, and PowerShell cmdlets.
User-defined Aliases – Custom alternative names created by the user.
Command to know the version of Powershell Type In the below example you will notice that the powershell version 3.0 is being displayed. There are four categories of PowerShell commands: Cmdlet (Command-Let) PowerShell Functions PowerShell Scripts Native Windows commands. PowerShell commands have been standardized using a “verb-noun” naming convention know as a cmdlet. This standard […]