Skip to content

Instantly share code, notes, and snippets.

@jonlabelle
Last active April 21, 2024 18:19
Show Gist options
  • Star 73 You must be signed in to star a gist
  • Fork 20 You must be signed in to fork a gist
  • Save jonlabelle/e8ba94cd29b8f63fd7dd3c4f95c1d210 to your computer and use it in GitHub Desktop.
Save jonlabelle/e8ba94cd29b8f63fd7dd3c4f95c1d210 to your computer and use it in GitHub Desktop.
Windows to UNIX Command Cheat Sheet

Windows to UNIX Command Cheat Sheet

Windows PowerShell has several transition aliases that allow UNIX and CMD users to use familiar command names in Windows PowerShell. The most common aliases are shown in the table below, along with the Windows PowerShell command behind the alias and the standard Windows PowerShell alias if one exists.

CMD Command UNIX Command PowerShell Command PowerShell Alias
dir ls Get-ChildItem gci
cls clear Clear-Host (function) cls
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
pushd pushd Push-Location pushd
popd popd Pop-Location popd

Source: Compatibility Aliases

@m11nh
Copy link

m11nh commented Mar 15, 2020

start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment