Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ValRCS/60702591a248495fb1167bae3cee0af7 to your computer and use it in GitHub Desktop.

Select an option

Save ValRCS/60702591a248495fb1167bae3cee0af7 to your computer and use it in GitHub Desktop.

Revisions

  1. @jonlabelle jonlabelle revised this gist Nov 20, 2016. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions windows_to_unix_command_cheat_sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,3 @@
    title:
    author: JuanPablo Jofre
    date: October 14, 2016


    # Windows to UNIX Command Cheat Sheet

    Windows PowerShell has several transition aliases that allow UNIX and CMD users
  2. @jonlabelle jonlabelle revised this gist Nov 20, 2016. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions windows_to_unix_command_cheat_sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    ---
    title: Windows to UNIX Command Cheat Sheet
    title:
    author: JuanPablo Jofre
    date: October 14, 2016
    source: https://msdn.microsoft.com/en-us/powershell/scripting/getting-started/cookbooks/appendix-1---compatibility-aliases
    ---


    # 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
    @@ -23,3 +23,5 @@ alias and the standard Windows PowerShell alias if one exists.
    | md | mkdir | New-Item | ni |
    | pushd | pushd | Push-Location | pushd |
    | popd | popd | Pop-Location | popd |

    > Source: [Compatibility Aliases](https://msdn.microsoft.com/en-us/powershell/scripting/getting-started/cookbooks/appendix-1---compatibility-aliases)
  3. @jonlabelle jonlabelle created this gist Nov 20, 2016.
    25 changes: 25 additions & 0 deletions windows_to_unix_command_cheat_sheet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ---
    title: Windows to UNIX Command Cheat Sheet
    author: JuanPablo Jofre
    date: October 14, 2016
    source: https://msdn.microsoft.com/en-us/powershell/scripting/getting-started/cookbooks/appendix-1---compatibility-aliases
    ---

    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 |