Linux Tips

shell

intel Fortran compiler

gnuplot

submitting jobs into YITP computers(altixgate)

  1. login altixgate as "ssh altixgate"
  2. "bqueues" shows status of all machines
  3. bsub -q S(1|2|3) script_name
format of shell script:
#!/bin/bash
cd $HOME/fort/ <-- !!! IMPORTANT !!!
a.out > log

vi

  • inserting characters
    before cursor: i
    after cursor: a
    under cursor: o
    over cursor: 0
  • delete one character: x
  • delete one line: dd
  • copying and pasting one line(under the cursor):
    Y --> p
  • undo: u(in command mode)
  • replacing char_1 by char_2
    :%s/char_1/char_2/g
  • shell mode
    :sh
  • saving with another name
    :w newfilename
  • inserting other file into a file
    :r filename

Emacs

  • Anthy$B5/F0Cf$K(BMark Set$B$r9T$&(B
    Ctrl-space$B$NBe$o$j$K(BCtrl-@$B$r;H$&!#2!$7$K$/$$$1$I!#(B

tgif

  • $B%3%^%s%I$G7A<0$r;XDj$7$F2hA|:n@.(B
    EPS$B%U%!%$%k!'(Btgif -stdout -print -eps -color temp003.obj > temp.eps

LaTEX

  • minipage$B4D6-$GA^F~$7$?#2$D$N?^$N%-%c%W%7%g%s$rN%$9!#(B
    begin{figure}[ht]
    \hspace{-3mm}$B!!!!!!!!!!"+$3$N9T$rDI2C!%?tCM$OE,Ev$KJQ2=$5$;$k!%(B
    \begin{minipage}{0.5\hsize}$B"+?tCM$rE,Ev$KJQ2=$5$;$k!%(B
    \begin{center}
    \vspace{0mm}
    \includegraphics[width=5cm]{filename1.eps}
    \caption[s]
    {*** resolution *** 3.6.ANW10$^8$ pps.}
    \label{label1}
    \vspace{0mm}
    \end{center}
    \end{minipage}
    \hspace{5mm}$B!!!!!!!!!!"+$3$N9T$rDI2C!%?tCM$OE,Ev$KJQ2=$5$;$k!%(B
    \begin{minipage}{0.5\hsize}$B"+?tCM$rE,Ev$KJQ2=$5$;$k!%(B
    \begin{center}
    \vspace{0mm}
    \includegraphics[width=5cm]{filename2.eps}
    \caption[s]
    {*** resolution *** 6.0.ANW10$^7$ pps.}
    \label{label2}
    \vspace{0mm}
    \end{center}
    \end{minipage}
    \end{figure}

Convert

  • $B2hA|%5%$%:$rH>J,$K$9$k(B
    convert -resample '50%' (input file) (output file)

Windows Tips

$BI.5-BN>.J8;z$N(Bl$B$r=q$/J}K!(B

l$B$H=q$$$FA*Br$7$?8e!"%U%)%s%H$r!V(BMTExtra$B!W$KJQ99$9$k!#(B

$BI.5-BN>.J8;z$N(Bv$B$r=q$/J}K!(B

v$B$H=q$$$FA*Br$7$?8e!"%U%)%s%H$r!V(BHGS$B9T=qBN!W$+!V(BHG$B9T=qBN!W$KJQ99$9$k!#(B