2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WSL】だれだよProgram Filesってディレクトリ作ったの!(スペースが入ったディレクトリ名をPATHに含める方法)

Posted at

だれだよ、Program Filesってディレクトリ作ったの!
という時のメモです

Linuxの場合、PATHにスペースの入ったディレクトリ名があるとうまく行かない場合があります。
その場合の対処方です。

  • WSLのシェルでenv|grep PATHで現在のPATHを表示
  • スペースを含むパスが無いかよく見る
  • Windowsのコマンドプロンプトを開く(cmdを実行する)
  • dir /xを使って、スペースを含むディレクトリの8.3形式の名前を調べる
     PROGRA~1が8.3形式の名前です
    image.png

修正したPATHは、~/.bashrcに書く等ご自由に使ってください。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?