{"id":4545,"date":"2023-10-09T13:11:11","date_gmt":"2023-10-09T12:11:11","guid":{"rendered":"https:\/\/pmortensen.eu\/world2\/?p=4545"},"modified":"2026-04-09T12:36:29","modified_gmt":"2026-04-09T11:36:29","slug":"aliases-in-powershell","status":"publish","type":"post","link":"https:\/\/pmortensen.eu\/world2\/2023\/10\/09\/aliases-in-powershell\/","title":{"rendered":"Aliases in PowerShell"},"content":{"rendered":"<p>For a list of aliases in PowerShell, e.g., alias <strong><em>cd<\/em><\/strong> for <strong><em><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.management\/set-location\">Set-Location<\/a><\/em><\/strong>, see my previous blog post <em><a href=\"https:\/\/pvm-professionalengineering.blogspot.com\/2019\/10\/powershell-aliases-and-missing.html\">PowerShell aliases and missing Microsoft documentation <\/a><\/em> (aliases in PowerShell are <strong><em>not<\/em><\/strong> in the official Microsoft documentation).<\/p>\n<p>See also my blog post <em><a href=\"https:\/\/pvm-professionalengineering.blogspot.com\/2014\/12\/breaking-into-powershell.html\">Breaking into PowerShell <\/a><\/em> (2014).<\/p>\n<h2>PowerShell also works on Linux!<\/h2>\n<p>For instance, on Ubuntu 20.04, it can be installed with (from the command-line):<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\nsnap --classic install powershell\r\n<\/pre>\n<p>The option &#8220;&#8211;classic&#8221; will suppress the scary warning <em>&#8220;error: This revision of snap &#8220;powershell&#8221; was published using classic confinement and thus may perform arbitrary system changes outside of the security sandbox that snaps are usually confined to, which may put your system at risk. If you understand and want to proceed repeat the command including &#8211;classic.&#8221;<\/em><\/p>\n<p>Output:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\npowershell 7.3.7 from Microsoft PowerShell\u2713 installed\r\n<\/pre>\n<p>Launch PowerShell:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\npwsh\r\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\nPowerShell 7.3.7\r\nPS \/home\/mortensen&gt; \r\n<\/pre>\n<p>Running the following line from the first mentioned blog post gave the expected result:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\nGet-Alias | select Name, Definition, DisplayName | Sort-Object Definition, Name\r\n<\/pre>\n<p>Though the formatting line fails:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\nGet-Alias | select Name, Definition, DisplayName | sort Definition, Name | foreach { &quot;&lt;tr&gt; &lt;td&gt;{0,1}&lt;\/td&gt; &lt;td&gt;{1,1}&lt;\/td&gt; &lt;\/tr&gt;&quot; -f $_.Name, $_.Definition }\r\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\n\/usr\/bin\/sort: cannot read: Definition,: No such file or directory\r\n<\/pre>\n<p>Resolution:<\/p>\n<p>Use the <a href=\"https:\/\/en.wikipedia.org\/wiki\/PowerShell#Cmdlets\">cmdlet<\/a> <a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Utility\/Sort-Object\">Sort-Object<\/a> instead of its alias &#8216;sort&#8217; (that works on Windows):<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\nGet-Alias | select Name, Definition, DisplayName | Sort-Object Definition, Name | foreach { &quot;&lt;tr&gt; &lt;td&gt;{0,1}&lt;\/td&gt; &lt;td&gt;{1,1}&lt;\/td&gt; &lt;\/tr&gt;&quot; -f $_.Name, $_.Definition }\r\n<\/pre>\n<h2 id=\"Portability\">Portability<\/h2>\n<p>As the previous section demonstrated, PowerShell scripts may break when moved from Windows to Linux, at least with the default configuration of PowerShell.<\/p>\n<p>For example, <strong><em>cp<\/em><\/strong>, <strong><em>sort<\/em><\/strong>, <strong><em>cd<\/em><\/strong>, <strong><em>ps<\/em><\/strong>, <strong><em>mv<\/em><\/strong>, and <strong><em>rm<\/em><\/strong> don&#8217;t work on Linux (or don&#8217;t work as expected). See the next section for some details.<\/p>\n<h2 id=\"Aliases_in_PowerShell_on_Linux\">Aliases in PowerShell on Linux (7.3.7)<\/h2>\n<p>Note that, unlike on Windows, the aliases corresponding to the native ones on Linux are <strong><em>absent<\/em><\/strong>. For example, <strong><em>ls<\/em><\/strong> (<a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Get-ChildItem\">Get-ChildItem<\/a>), <strong><em>cp<\/em><\/strong> (<a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Copy-Item\">Copy-Item<\/a>), <strong><em>sort<\/em><\/strong> (<a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Utility\/Sort-Object\">Sort-Object<\/a>), <strong><em>cd<\/em><\/strong> (<a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.management\/set-location\">Set-Location<\/a>), <strong><em>ps<\/em><\/strong> (<a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Get-Process\">Get-Process<\/a>), <strong><em>mv<\/em><\/strong> (<a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.management\/Move-Item\">Move-Item<\/a>), <strong><em>rm<\/em><\/strong> (<a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.management\/remove-item\">Remove-Item<\/a>), <strong><em>rmdir<\/em><\/strong> (<a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.management\/remove-item\">Remove-Item<\/a>), and <strong><em>cat<\/em><\/strong> (<a href=\"https:\/\/docs.microsoft.com\/en-gb\/powershell\/module\/Microsoft.PowerShell.Management\/Get-Content\">Get-Content<\/a>).<\/p>\n<p>They are absent from the list of aliases, but they <em>may<\/em> work as intended, as presumably the native Linux ones are called out to. Or they are degraded to text only (not really part of PowerShell pipeline(?)).<\/p>\n<p>For example, &#8220;Get-ChildItem | Get-Member&#8221; has type &#8220;System.IO.FileInfo&#8221;, whereas for the missing alias (on Linux), &#8220;ls | Get-Member&#8221; has type TypeName: System.String.<\/p>\n<p>mkdir seems to be an exception. It is a cmd-let(?), but it doesn&#8217;t follow normal full Verb-Noun naming.<\/p>\n<table id=\"PowerShell_aliases_on_Linux\">\n<tr>\n<th>Alias<\/th>\n<th>Cmdlet<\/th>\n<\/tr>\n<tr>\n<td>clc<\/td>\n<td>Clear-Content<\/td>\n<\/tr>\n<tr>\n<td>clhy<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Core\/Clear-History\">Clear-History<\/a><\/td>\n<\/tr>\n<tr>\n<td>cls<\/td>\n<td>Clear-Host<\/td>\n<\/tr>\n<tr>\n<td>cli<\/td>\n<td>Clear-Item<\/td>\n<\/tr>\n<tr>\n<td>clp<\/td>\n<td><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.management\/clear-itemproperty\">Clear-ItemProperty<\/a><\/td>\n<\/tr>\n<tr>\n<td>clv<\/td>\n<td>Clear-Variable<\/td>\n<\/tr>\n<tr>\n<td>cvpa<\/td>\n<td>Convert-Path<\/td>\n<\/tr>\n<tr>\n<td>copy<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Copy-Item\">Copy-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>cpi<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Copy-Item\">Copy-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>dbp<\/td>\n<td>Disable-PSBreakpoint<\/td>\n<\/tr>\n<tr>\n<td>ebp<\/td>\n<td>Enable-PSBreakpoint<\/td>\n<\/tr>\n<tr>\n<td>etsn<\/td>\n<td>Enter-PSSession<\/td>\n<\/tr>\n<tr>\n<td>exsn<\/td>\n<td>Exit-PSSession<\/td>\n<\/tr>\n<tr>\n<td>epal<\/td>\n<td>Export-Alias<\/td>\n<\/tr>\n<tr>\n<td>epcsv<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.utility\/Export-Csv\">Export-Csv<\/a><\/td>\n<\/tr>\n<tr>\n<td>%<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Core\/ForEach-Object\">ForEach-Object<\/a><\/td>\n<\/tr>\n<tr>\n<td>foreach<\/td>\n<td>ForEach-Object<\/td>\n<\/tr>\n<tr>\n<td>fc<\/td>\n<td>Format-Custom<\/td>\n<\/tr>\n<tr>\n<td>fhx<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.utility\/format-hex\">Format-Hex<\/a><\/td>\n<\/tr>\n<tr>\n<td>fl<\/td>\n<td><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh849957.aspx\">Format-List<\/a><\/td>\n<\/tr>\n<tr>\n<td>ft<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Utility\/Format-Table\">Format-Table<\/a><\/td>\n<\/tr>\n<tr>\n<td>fw<\/td>\n<td>Format-Wide<\/td>\n<\/tr>\n<tr>\n<td>gal<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.utility\/Get-Alias\">Get-Alias<\/a><\/td>\n<\/tr>\n<tr>\n<td>dir<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Get-ChildItem\">Get-ChildItem<\/a><\/td>\n<\/tr>\n<tr>\n<td>gci<\/td>\n<td>Get-ChildItem<\/td>\n<\/tr>\n<tr>\n<td>gcm<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Core\/Get-Command\">Get-Command<\/a><\/td>\n<\/tr>\n<tr>\n<td>gc<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-gb\/powershell\/module\/Microsoft.PowerShell.Management\/Get-Content\">Get-Content<\/a><\/td>\n<\/tr>\n<tr>\n<td>type<\/td>\n<td>Get-Content<\/td>\n<\/tr>\n<tr>\n<td>gerr<\/td>\n<td>Get-Error<\/td>\n<\/tr>\n<tr>\n<td>ghy<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Core\/Get-History\">Get-History<\/a><\/td>\n<\/tr>\n<tr>\n<td>h<\/td>\n<td>Get-History<\/td>\n<\/tr>\n<tr>\n<td>history<\/td>\n<td>Get-History<\/td>\n<\/tr>\n<tr>\n<td>gi<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Get-Item\">Get-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>gp<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.management\/Get-ItemProperty\">Get-ItemProperty<\/a><\/td>\n<\/tr>\n<tr>\n<td>gpv<\/td>\n<td>Get-ItemPropertyValue<\/td>\n<\/tr>\n<tr>\n<td>gjb<\/td>\n<td>Get-Job<\/td>\n<\/tr>\n<tr>\n<td>gl<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/en-us\/powershell\/reference\/5.1\/microsoft.powershell.management\/get-location\">Get-Location<\/a><\/td>\n<\/tr>\n<tr>\n<td>pwd<\/td>\n<td>Get-Location<\/td>\n<\/tr>\n<tr>\n<td>gm<\/td>\n<td><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh849928.aspx\">Get-Member<\/a><\/td>\n<\/tr>\n<tr>\n<td>gmo<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Core\/Get-Module\">Get-Module<\/a><\/td>\n<\/tr>\n<tr>\n<td>gps<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Get-Process\">Get-Process<\/a><\/td>\n<\/tr>\n<tr>\n<td>gbp<\/td>\n<td>Get-PSBreakpoint<\/td>\n<\/tr>\n<tr>\n<td>gcs<\/td>\n<td>Get-PSCallStack<\/td>\n<\/tr>\n<tr>\n<td>gdr<\/td>\n<td>Get-PSDrive<\/td>\n<\/tr>\n<tr>\n<td>gsn<\/td>\n<td>Get-PSSession<\/td>\n<\/tr>\n<tr>\n<td>gu<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/PowerShell\/module\/microsoft.powershell.utility\/Get-Unique\">Get-Unique<\/a><\/td>\n<\/tr>\n<tr>\n<td>gv<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Utility\/Get-Variable\">Get-Variable<\/a><\/td>\n<\/tr>\n<tr>\n<td>group<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Utility\/Group-Object\">Group-Object<\/a><\/td>\n<\/tr>\n<tr>\n<td>ipal<\/td>\n<td>Import-Alias<\/td>\n<\/tr>\n<tr>\n<td>ipcsv<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.utility\/Import-Csv\">Import-Csv<\/a><\/td>\n<\/tr>\n<tr>\n<td>ipmo<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.core\/import-module\">Import-Module<\/a><\/td>\n<\/tr>\n<tr>\n<td>icm<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Core\/Invoke-Command\">Invoke-Command<\/a><\/td>\n<\/tr>\n<tr>\n<td>iex<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.utility\/invoke-expression\">Invoke-Expression<\/a><\/td>\n<\/tr>\n<tr>\n<td>ihy<\/td>\n<td>Invoke-History<\/td>\n<\/tr>\n<tr>\n<td>r<\/td>\n<td>Invoke-History<\/td>\n<\/tr>\n<tr>\n<td>ii<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Invoke-Item\">Invoke-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>irm<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.utility\/Invoke-RestMethod\">Invoke-RestMethod<\/a><\/td>\n<\/tr>\n<tr>\n<td>iwr<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.utility\/Invoke-WebRequest\">Invoke-WebRequest<\/a><\/td>\n<\/tr>\n<tr>\n<td>measure<\/td>\n<td><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh849965.aspx\">Measure-Object<\/a><\/td>\n<\/tr>\n<tr>\n<td>md<\/td>\n<td>mkdir<\/td>\n<\/tr>\n<tr>\n<td>mi<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.management\/Move-Item\">Move-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>move<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.management\/Move-Item\">Move-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>mp<\/td>\n<td>Move-ItemProperty<\/td>\n<\/tr>\n<tr>\n<td>nal<\/td>\n<td>New-Alias<\/td>\n<\/tr>\n<tr>\n<td>ni<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/New-Item\">New-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>nmo<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.core\/new-module\">New-Module<\/a><\/td>\n<\/tr>\n<tr>\n<td>ndr<\/td>\n<td>New-PSDrive<\/td>\n<\/tr>\n<tr>\n<td>nsn<\/td>\n<td>New-PSSession<\/td>\n<\/tr>\n<tr>\n<td>nv<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Utility\/New-Variable\">New-Variable<\/a><\/td>\n<\/tr>\n<tr>\n<td>oh<\/td>\n<td>Out-Host<\/td>\n<\/tr>\n<tr>\n<td>popd<\/td>\n<td>Pop-Location<\/td>\n<\/tr>\n<tr>\n<td>pushd<\/td>\n<td>Push-Location<\/td>\n<\/tr>\n<tr>\n<td>rcjb<\/td>\n<td>Receive-Job<\/td>\n<\/tr>\n<tr>\n<td>rcsn<\/td>\n<td>Receive-PSSession<\/td>\n<\/tr>\n<tr>\n<td>del<\/td>\n<td><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.management\/remove-item\">Remove-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>erase<\/td>\n<td>Remove-Item<\/td>\n<\/tr>\n<tr>\n<td>rd<\/td>\n<td>Remove-Item<\/td>\n<\/tr>\n<tr>\n<td>ri<\/td>\n<td>Remove-Item<\/td>\n<\/tr>\n<tr>\n<td>rp<\/td>\n<td>Remove-ItemProperty<\/td>\n<\/tr>\n<tr>\n<td>rjb<\/td>\n<td>Remove-Job<\/td>\n<\/tr>\n<tr>\n<td>rmo<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.core\/remove-module\">Remove-Module<\/a><\/td>\n<\/tr>\n<tr>\n<td>rbp<\/td>\n<td>Remove-PSBreakpoint<\/td>\n<\/tr>\n<tr>\n<td>rdr<\/td>\n<td>Remove-PSDrive<\/td>\n<\/tr>\n<tr>\n<td>rsn<\/td>\n<td>Remove-PSSession<\/td>\n<\/tr>\n<tr>\n<td>rv<\/td>\n<td>Remove-Variable<\/td>\n<\/tr>\n<tr>\n<td>ren<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/en-us\/powershell\/reference\/3.0\/microsoft.powershell.management\/rename-item\">Rename-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>rni<\/td>\n<td>Rename-Item<\/td>\n<\/tr>\n<tr>\n<td>rnp<\/td>\n<td>Rename-ItemProperty<\/td>\n<\/tr>\n<tr>\n<td>rvpa<\/td>\n<td><a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/hh849858.aspx\">Resolve-Path<\/a><\/td>\n<\/tr>\n<tr>\n<td>select<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Utility\/Select-Object\">Select-Object<\/a><\/td>\n<\/tr>\n<tr>\n<td>sls<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Utility\/Select-String\">Select-String<\/a><\/td>\n<\/tr>\n<tr>\n<td>sal<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.utility\/Set-Alias\">Set-Alias<\/a><\/td>\n<\/tr>\n<tr>\n<td>si<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.management\/set-item\">Set-Item<\/a><\/td>\n<\/tr>\n<tr>\n<td>sp<\/td>\n<td>Set-ItemProperty<\/td>\n<\/tr>\n<tr>\n<td>cd<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.management\/set-location\">Set-Location<\/a><\/td>\n<\/tr>\n<tr>\n<td>chdir<\/td>\n<td>Set-Location<\/td>\n<\/tr>\n<tr>\n<td>sl<\/td>\n<td>Set-Location<\/td>\n<\/tr>\n<tr>\n<td>sbp<\/td>\n<td>Set-PSBreakpoint<\/td>\n<\/tr>\n<tr>\n<td>set<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Utility\/Set-Variable\">Set-Variable<\/a><\/td>\n<\/tr>\n<tr>\n<td>sv<\/td>\n<td>Set-Variable<\/td>\n<\/tr>\n<tr>\n<td>sajb<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.core\/start-job\">Start-Job<\/a><\/td>\n<\/tr>\n<tr>\n<td>saps<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Start-Process\">Start-Process<\/a><\/td>\n<\/tr>\n<tr>\n<td>spjb<\/td>\n<td>Stop-Job<\/td>\n<\/tr>\n<tr>\n<td>spps<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/Microsoft.PowerShell.Management\/Stop-Process\">Stop-Process<\/a><\/td>\n<\/tr>\n<tr>\n<td>wjb<\/td>\n<td>Wait-Job<\/td>\n<\/tr>\n<tr>\n<td>?<\/td>\n<td><a href=\"https:\/\/msdn.microsoft.com\/powershell\/reference\/5.1\/microsoft.powershell.core\/Where-Object\">Where-Object<\/a><\/td>\n<\/tr>\n<tr>\n<td>where<\/td>\n<td>Where-Object<\/td>\n<\/tr>\n<tr>\n<td>echo<\/td>\n<td><a href=\"https:\/\/docs.microsoft.com\/en-gb\/powershell\/module\/Microsoft.PowerShell.Utility\/Write-Output\">Write-Output<\/a><\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>For a list of aliases in PowerShell, e.g., alias cd for Set-Location, see my previous blog post PowerShell aliases and missing Microsoft documentation (aliases in PowerShell are not in the official Microsoft documentation). See also my blog post Breaking into &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/pmortensen.eu\/world2\/2023\/10\/09\/aliases-in-powershell\/\"> <span class=\"screen-reader-text\">Aliases in PowerShell<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23,36,24],"tags":[],"_links":{"self":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/4545"}],"collection":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/comments?post=4545"}],"version-history":[{"count":38,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/4545\/revisions"}],"predecessor-version":[{"id":6194,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/4545\/revisions\/6194"}],"wp:attachment":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/media?parent=4545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/categories?post=4545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/tags?post=4545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}