"Explore PowerShell" "Three" PowerShell under the use of aliases

Source: Internet
Author: User
Tags aliases

I do not know if you have contact with Linux, I talents, the knowledge of the alias is from Linux. Linux commonly used bash commands are hundreds, although in general the commands are very short, but often require a large number of parameters, so that for many beginners, the back command becomes the most headaches, but also makes many Linux beginners daunting. So, in Linux, the most common is alias, alias. Of course, PowerShell a good reference to this point.

This section is to introduce the PowerShell under the aliases.

In PowerShell, aliases can be used instead of commands in order to be used. For example, Windows veterans can take advantage of such as Dir, move, type, CLS, and so on, of course, in order to absorb more users, PowerShell also provides Linux alias settings, such as: LS, pwd, MV, man, cat and so on.

The purpose of setting aliases for PowerShell is to provide new users with a shell that can interact quickly. The alias here refers to the alternate name of the cmdlet. For example, "dir" replaces "Get-childitem".

In this section, you will describe two types of alias:

Built in aliases

Alternate name for the Windows,unix and predefined PowerShell cmdlet.

Use the following command to browse the PowerShell alias list:

Get-alias <enter>

Careful child shoes can be found, Get-chileitem this cmdlet has multiple alias, such as: dir, ls, GCI. We can try these commands and the results are the same as the following figure:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.