0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンドが置かれているディレクトリを調べる

Posted at

どうした

自分でインストールしたコマンドが、どこに置かれてるのかわからない!

どうする

ここ を参考にしたところ、which コマンドを使えばいいらしい。

$ which pip
-bash: which: コマンドが見つかりません

ないじゃん!
まあそういうこともあるのかね。知らんけど。

そういうときは type コマンドを使うのじゃ。
type <command>
出力はこんなかんじ。
<command> は /usr/bin/<command> です

python の例だと、

$ type python
python は /usr/bin/python です

よしよし。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?