Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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

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

typoで環境吹っ飛んじゃう

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

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

cafeal
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away