Windows PowerShell

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