LoginSignup
5
1

More than 1 year has passed since last update.

ファイルの絶対パスをターミナルから取得するコマンド

Last updated at Posted at 2021-05-18

はじめに

ファイルの絶対パスを知りたいときに毎回取得方法を調べていたので、備忘録的に残します。

コマンド

ターミナルから実行する

find `pwd` -name "ファイル名"

$ find `pwd` -name "hoge.html"

ファイル名にワイルドカードを指定することも可能。
以下を実行すると html ファイルの全ての絶対パスが出てくる

$ find `pwd` -name "*html"

当然ですが、たくさん該当ファイルがあるとめっちゃ出てきます。

参考

ありがとうございました!

5
1
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
5
1