9
3

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.

echoで.bashrcとかに追記するのやめよう

Last updated at Posted at 2017-06-28

# 追記
@7of9 さんの投稿がもっと良い解決策に感じました
http://qiita.com/7of9/items/96a6873c3e87c7b71c6e

set -o noclobber
で、既存ファイルに対して > が使えなくなるそうです

typoで環境吹っ飛んじゃう

環境構築中にQiitaとか参考にしてるとこういう一文がサラッと出てきますよね
echo export PATH='/path/to/bin:$PATH' >> ~/.bashrc

> の数がtypoで一つ少ないと、ファイルが上書きされて詰んでしまうのでなるべくエディタを使いましょう

9
3
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?