huang zuxing blog @ home the quieter you become, the more you are able to hear.

25Feb/09Off

perl -i -wpl -e

Suppose you want to change all words "english" to "hello" in file abc.txt:

Tagged as: Continue reading
16Feb/09Off

sge note

Installed sge6.2 for a new linux cluster, but one of machines failed to show up its status.

Tagged as: , Continue reading
10Feb/09Off

bsub and qsub

today, user asks how to submit job  to a specific host in sge.

LSF

bsub -m host_name command

SGE
qsub -l hostname=host_name command

 

Translation table for RM commands
Utility SGE Command LSF Command Load Leveler Torque
Release Job qrls bresume llhold -r qrls
Submit Job qsub bsub llsubmit qsub
View Queues showq bqueues llclass qstat -q
View Job qstat -j bjobs llq qstat -f
Hold Job qhold bstop llhold qhold
Delete Job qdel bkill llcancel qdel
Tagged as: No Comments
10Feb/09Off

vim auto completion

word complete:
CTRL-x CTRL-n
CTRL-x CTRL-p

line complete:
Ctrl+x Ctrl+l

file complete:
Ctrl+x Ctrl+f

dictionary complete:
set dictionary+=/usr/share/dict/words
Ctrl-x Ctrl-k ( Ctrl-n and Ctrl-p to search the match)

Tagged as: No Comments
6Feb/09Off

iptable pic

iptables pic

iptables pic

Tagged as: , No Comments
2Feb/09Off

merge two lines

# df -h -t nfs

stitch:/stitch2Tdata/DRC_GEN6
2.0T  1.7T  324G  85% /net/stitch/stitch2Tdata/DRC_GEN6

Tagged as: , , Continue reading
23Jul/08Off

find broken links in file system

symlinks -rv / | grep "dangling:"
Tagged as: No Comments
3Apr/08Off

bash shortcut

Get from: http://linuxhelp.blogspot.com/


____________CTRL Key Bound_____________
Ctrl + a - Jump to the start of the line
Ctrl + b - Move back a char
Ctrl + c - Terminate the command
Ctrl + d - Delete from under the cursor
Ctrl + e - Jump to the end of the line

Tagged as: Continue reading
27Mar/08Off

Tips on remote backup

backup to remote machine tape

tar cvf - file_or_dir | ssh remote_machine "dd of=/dev/nst1"

backup to remote machine

tar cvf - file_or_dir | ssh remote_machine "( cd /backup/ ; tar xf - )"

Tagged as: No Comments