1
2

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.

シェル書いててcan't cd to [directory]に出くわした

Posted at

概要

シェル書いてて can't cd to [directory] というエラーが出たのでメモ。

環境

OS : debian 7.6

解決法

vim で新規にファイル作成した時に、改行コードをLFにする必要があるみたい。
tr 使って置換もありだけど、もはや思考停止したので、vimでLFとしてファイルを開く方法を採択してみた。

:edit ++fileformat=unix

これで解決。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?