Some common commands on PowerShell
Change a Directory
- DOS: cd
- PowerShell: Set-Location
List Files in a Directory
- DOS: dir
- PowerShell: Get-ChildItem
Rename a File:
- DOS: rename
- PowerShell: Rename-Item
To see if a DOS command has an alias, you can use the Get-Alias cmdlet. For example, Get-Alias cd shows you that cd is actually running the Set-Location cmdlet.
So instead of remembering all the powershell equivalents, just remember the alias command which is Get-Alias
This way just log into PowerShell and type the command
Get-Alias <command line command>
and you’ll get the equivalent powerShell command of it!
I’ve shamelessly copied the content from this website - http://www.howtogeek.com/163127/how-powershell-differs-from-the-windows-command-prompt/
Please visit the main site for more information on PowerShell…
More Power to you
Comments