<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Get-Command on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/get-command/</link>
    <description>Recent content in Get-Command on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Wed, 16 Jun 2021 16:44:20 +1000</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/get-command/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Where is which in PowerShell</title>
      <link>https://blog.khmersite.net/p/where-is-which-in-powershell/</link>
      <pubDate>Wed, 16 Jun 2021 16:44:20 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/where-is-which-in-powershell/</guid>
      <description>&lt;p&gt;As the title says, an easy way to find out the path of a program/command on Windows using PowerShell can be done with &lt;code&gt;Get-Command&lt;/code&gt; cmdlet.&lt;/p&gt;
&lt;p&gt;For example, I want to find out where I had installed &lt;code&gt;nvim&lt;/code&gt; (Neovim) on a rarely use Windows machine. To do this, I can execute the following command:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;❯ Gt-Command nvim
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;CommandType     Name                                               Version    Source
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-----------     ----                                               -------    ------
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Application     nvim.exe                                           0.0.0.0    C:\Program Files\Neovim\bin\nvim.exe
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;With PowerShell, we can also just print a specific attribute (?) of an object.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
