LoginSignup
2
3

More than 1 year has passed since last update.

【Mac】ターミナルでスペースがはいったファイルを扱う

Posted at

はじめに

名前にスペースがはいってるフォルダを扱ってる時にパスがうまく指定できませんでした。
対策を知ったので記録しておきます。

以下のようなスペースのはいったフォルダを作成して例にしてみます。
スクリーンショット 2023-01-19 19.45.25.png

対策

スペースの前に\を挿入します

良い例

/Users/miyamototaishin/Desktop/sample folder

悪い例

/Users/miyamototaishin/Desktop/sample\ folder

おわり

意外と見落としがちで原因探しに時間がかかっちゃうことがあります。
時間がもったいないので覚えておきましょう。

2
3
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
2
3