snipt

Ctrl+h for KB shortcuts

Bash

Find the location of the currently used binary on unix

$ which mysql
/usr/bin/mysql
https://snipt.net/embed/5b390f07c5e451699a43dc6d8dfd95e2/
/raw/5b390f07c5e451699a43dc6d8dfd95e2/
5b390f07c5e451699a43dc6d8dfd95e2
bash
Bash
2
2019-06-21T17:47:39
True
False
False
/api/public/snipt/4532/
find-the-location-of-the-currently-used-binary-on-unix
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$ which mysql </span><span id="L-2"><a name="L-2"></a>/usr/bin/mysql </span></pre></div> </td></tr></table>
bash, which