PowerShell and Unix/Linux command?

powershell_logoNot really a big deal or anything since aliases can be created; however I thought it was cool that these aliases are already setup.

Having first learned with Perl, then went crazy with PHP and now over to Python I can say I’m happy to see that someone at Microsoft made a good decision to establish PowerShell.

Table below is for PowerShell 2, 3, 4 and 5

CMD Command UNIX Command PS Command PS Alias
dir ls Get-ChildItem gci
cls clear Clear-Host (function) N/A
del, erase, rmdir rm Remove-Item ri
copy cp Copy-Item ci
move mv Move-Item mi
rename mv Rename-Item rni
type cat Get-Content gc
cd cd Set-Location sl
md mkdir New-Item ni
N/A pushd Push-Location N/A
N/A popd Pop-Location N/A

Reference: https://technet.microsoft.com/en-us/library/dd347739.aspx

One comment

  1. Thanks, would be nice to use some of the PS Aliases in further work. Didn’t used them yet before, but now I will have a look to them to get work faster and scripts smaller

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s