User Tools

Site Tools


other:wincli

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
other:wincli [2025/09/15 16:48] – Added more technical content jypeterother:wincli [2025/09/18 11:35] (current) – Added which/where.exe jypeter
Line 39: Line 39:
   * Linux example:   * Linux example:
   * Windows example:   * Windows example:
 +
 +===== which ⇔ where.exe =====
 +
 +  * What: display the path of a command (look for a result in the predefined search path)
 +    * Note: on Windows, also look for files with the extensions specified in the ''pathext'' environment variable
 +      * ''cmd'':<code>C:\>echo %pathext%
 +.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC</code>
 +      * Powershell:<code>PS C:\> echo $Env:pathext
 +.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL</code>
 +    * Linux search path:<code>$ echo $PATH
 +/home/share/unix_files/cdat/miniconda3_2024-03/bin:/home/share/unix_files/cdat/miniconda3_2024-03/condabin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:.</code>
 +    * Windows search path:
 +      * ''cmd'': ''echo %path%''
 +      * Powershell: ''echo $Env:path''
 +  * Documentation: [[https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/where|where]]
 +  * Linux example:<code>(base) >which which
 +which: shell built-in command.
 +
 +(base) >which \which
 +/usr/bin/which
 +
 +(base) >which conda
 +conda:   aliased to source /home/share/unix_files/cdat/miniconda3_2024-03/etc/profile.d/conda.csh</code>
 +  * Windows example:<code>(base) PS C:\> where.exe where
 +C:\Windows\System32\where.exe
 +
 +(base) PS C:\> where.exe conda
 +C:\Utils\miniconda3_2024-03\Library\bin\conda.bat
 +C:\Utils\miniconda3_2024-03\Scripts\conda.exe
 +C:\Utils\miniconda3_2024-03\condabin\conda.bat</code>
  
 /* standard page footer */ /* standard page footer */
other/wincli.txt · Last modified: by jypeter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki