Find the location of an executable

From LemonWiki共筆
Jump to navigation Jump to search

Find the location of an executable

Find the location of an executable in Windows[edit]

Tested on Windows 10[1]

  • Key-in the command WHERE command_name
C:> WHERE where

will return C:\Windows\System32\where.exe

Find the location of an executable on Mac[edit]

Tested on Mac M1

  • Key-in the command which command_name or where command_name

Find the location of an executable on Linux[edit]

Tested on CentOS7

  • Key-in the command which command_name


References[edit]