bash

gnuplotを自動的に実行したい

gnuplotを自動的に実行したいと思いました。 gnuplotのパスを確かめる。 whichコマンドの登場。 $ which gnuplot /usr/bin/gnuplot発見。 スクリプトを書く。 test.gnuplot #!/usr/bin/gnuplot set terminal png set output 'test.png' plot x y=xなんてplot…

ちょっとしたスリルを味わう意味のないコマンド

$ yes n | rm -i *

.bash_profileとか.bash_loginとか.profileとか.bashrcとか.bash_logoutとか多すぎる

bashの設定ファイルが多すぎて、混乱しました。 でも、ちょっと調べたら分かった(つもり)。 試しにアウトプットしてみます。 bashの設定ファイル こんなにあるみたいなんです。 /etc/profile ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc ~/.bash_lo…