ȥå   ʬ Хåå   ñ측 ǽ   إ   ǽRSS

Linux ѹ

Top / Linux
  • ɲä줿ԤοǤ
  • 줿ԤοǤ
  • Linux عԤ

*LinuxȤǤΥ⡢ޥɤʤ [#ib8997ce]
#contents
~
*vimȤݤ [#g4a0df84]
viǥˤĤƤΥ⡣~
ɰΩĤΤ:helpǤĤȤȳؤ֡륳ޥɤΩäȼΤ˺ΤǥɬפʤΤǤ롣
~
ͤˤƤƤ륵ȡ꤬䡪~
[[J3:http://homepage1.nifty.com/niwatori/vi/]]~

**ݥåץåפطʿѤ [#gef5162c]
֤ǽФƤݥåץåפå󥰥ԥ󥯤ʤΤǡܤ˻ɤ뤿ꤹ롣
 :highlight Pmenu ctermbg=lightgray ctermfg=blue
ǡطʿlightgrayǡʸblueˤʤ롣


**λƤޤäꤷȤswpեɤ߹ [#i54ded8c]
ޤ˥ץ˽ʤɤǶλʤȤʤʤäȤˡǥ󤬼Ƥޤäơäꤹ뤬ΤȤswpեɤ褵褦
 :recover .swp
򾧤Уϣˡ

**ƥȥ֥ȤȤ [#ge4b9cf7]
ƥȥ֥ȤؤǤ롣ȤС
 cout << "ahoaho" << endl;
ߤʷäơ""ȤѤȤˡ
 ci"
Ϥ뤳Ȥǡ"ڤȤcƤ롣~
Ū
 [̿][ϰ][ڤ]
ǹƤꡢ̿ΤȤϤʤߤc,d,yʤɤȤ롣ϰϤa,iʤɤǻꤷڤ"'ʤŬʤΤꤹ롣ϰϤiΤȤ϶ڤȤΤߤоݤȤaΤȤ϶ڤޤ᤿ΤоݤȤ롣~
~
ǡsorround.vimȤץ饰ȤȡϰϤsȤ褦ˤʤ롣ϤޤĤޤڤ"'оݤȤ뤳ȤǤ뤿ᡢȤФäʸ
 cs"'
ȤС"'˽񤭴뤳ȤǤ롣~
ȤƤǤ~

**쵤˥ǥȤ롣 [#v606f4c2]
vŬϰϤ򤷤ơ=ȡɤǥǥȤ롣Ȥ롣

**եγĥҤȤưѤ [#i419487c]
Ȥ
 nmap <Space>/ I#<Esc>
Τ褦ˡȥȤñˤ륷硼ȥåȤȤȤĥҤȤưѤȤ.vim/filetype.vim˰ʲΤ褦ɵơ
 augroup filetypedetect 
   au BufRead,BufNewFile *.cc setfiletype C++
   au BufRead,BufNewFile *.vim setfiletype vim
   au BufRead,BufNewFile *.c setfiletype C
   au BufRead,BufNewFile *.csh setfiletype cshell
 augroup END

줾бե.vim/ftplugin/βˡȤchell.vimȤäȡ
 nmap <Space>/ I#<Esc>
ߤ̤˵Ҥ롣dzĥҤȤưѤ롣~
~
tabȤäƤȡֺǸ˳ĥҤΤΤ꤬ѹ롣ʤȤʤ󤫤ʡڤؤ뤿Ӥ˥륽ɤߤ˹ԤȤ~


**ưط [#m26f850e]
Ctrl+f,BCtrl+u,d롣~
̤ΥǤϡ֤岼˲̤ڤؤ뤳ȤΤǤz(Return),z-~
(2011.5.16ɵ)~
̤ΰ־ӤȤϡH̤ΰֲӤȤϡLǤ롣~
(2011.5.31ɵ)~
ιԤκǽζƤʤʸ˰ưˡϡ^OKư{Ȥ}Ȥ~

**ХåեȤ [#t38455ad]
ƥХåեδ֤Ԥ褹뤿aliasΤǥ⡣Ū˥Хåեΰư
 :ls
ǥХåեֹǧȡ
 :buffer #
ǰư롢Ȥ硣~
򤤤񤯤ΤݤΤǡ.vimrc˰ʲ񤯡
 nmap <Space>b :ls<CR>:buffer
 nmap <Space>v :vsplit<CR><C-w><C-w>:ls<CR>:buffer
 nmap <Space>j :bn<CR>
 nmap <Space>k :bp<CR>
ڡȤơbǥХåեξ֤ǧƤȤֹǤĤξ֤ˡvǽĤʬ䤷֤Ʊư򤹤롣ޤڡ+j(k)ΥХåե˰ưǤ롣~
->äѤꡢȤɤ⡢ʤˤ˻ȤޥɤǤʤΤǡ<Space>\ѹ<Space>ϤäɤȤȤƤϤ롣~


**ʸΥ󥯤ˤȤ [#d87ad499]
ʸǥѥ񤤤Ƥʸ򳫤礬롣Ȥ
 gf
ȤСvimǴñ˳ȤǤ롣~
ΤȤʸ񤬤ʤʤäƤޤ(å?)ˤϤȤС
 Ctrl-0

 Ctrl-^
ɤCtrl-0ϸΰ֤Ȥ̣ǡCtrl-^ϸΥեȤ̣~
֤dzȤ
 Ctrl-w gf
OKֺΥ֤˳롣֤Τ
 Ctrl-w f
ǡȤˤƾɽѥ󡣤Сñ˻ȤơñĤ뤳ȤǤ롣~


**֤ǥե򳫤 [#k850b856]
ʲΤ褦
 :tabnew [filename]
ǤƤп֤򳫤롣~
֤ڤؤgtȤ:tabn,:tabpǤ롣2ܤΥ֤˰ư2gtȤаȯǰưǽȤgT
~
֤ĤȤϡ:tabcloseǥȥְʳĤȤ:tabonlyOK:taboȤǾάġ

**read̥եƤή [#uc3e328b]
¾ΥեƥץˤȤˡޤΥե˥ԡȤ롣Ȥ
 :read [եؤΥѥ]
ȤOKͿʤȤˤϼʬȤ롣~

readϤȤмΤ褦˱ѤǤ롣 
 :read !ls
ls̤ȥݥ˥ԡ롣~

ͤˤƤꡣ~
[[̵̾λȤ:http://nanasi.jp/articles/howto/file/workingfile.html]]~



**ޥɥȤʤ [#c930498a]
[[˵:http://thinkit.co.jp/article/123/3]]äƤ狼䤹ä~
ñ˰㤦ե򳫤ƥԥڤȤǤ


**ԥڤԤޤн [#d03a0d63]
˺줽ʤΤǥ⡣~
viȤäƤơޤ¾ΤȤ饳ԡȤ˹Ԥޤ뤳Ȥ롣autoindentΤDzԤ뤿ӤindentƤ뤳ȤʤΤǡ
 set noautoindent
OKθautoindentᤷ
 set autoindent
롣¤ϼΤ褦˾άǤ롣
 se noai
 se ai
󥿥󡢥󥿥


**ޤȤƥȥ [#x31d637d]
ƬˤޤȤ//줿ȤȤϤ롣~
 Ctrl+v
 ư
 shift+i
 줿ʸ
 Esc
դ˹ƬäȤ
 Ctrl+v
 ư
 d
OK!

**ϰ򤷤ƥǥ [#j4d6e4c7]
vʸȡV󤴤Ȥ˥ӥ奢ŪϰǤ롣θ塢>>ǤޤȤƱեȡ~
αեȤѤȤˤ
 :set shiftwidth=2
ʤɤѤ롣~

**ޥ [#d4327dd3]
[[:http://d.hatena.ne.jp/viver/20070612/p1]]ε򤫤ä~
Ctrl+FCtrl+BΥ饯󤵤ȾüʤȻפޤ

ϥ饤ȤEscǾä롢Ȥ
 nmap <Esc><Esc> :nohlsearch<CR><Esc>
򿿻ɤ
¾ͤˤʤڡߤĤ~
[[󥸥˥μͭ:http://techknowledge.fractalist.jp/20091209/336]]~
ȡ⡼ɻΥ硼ȥåȡEsc=Crtl+[˴ư
[[J3:http://homepage1.nifty.com/niwatori/vi/y07.html]]~
[[J3toppage:http://homepage1.nifty.com/niwatori/vi/]]~
~
Firefox饤ˤǤadd-on롣줿餹Ȼפ~
[[perator:https://addons.mozilla.org/ja/firefox/addon/4891/]]~
~
2011.4~
[[ʥå:http://blog.blueblack.net/item_317]]εǡvị꤬äΤǡɤʤΤ򿿻~
 ڡǤޤʤ˥ݻʤư
 nnoremap <Space> jzz
 nnoremap <S-Space> kzz
 
 set cursorline
 Ρޥ⡼ɤǤ꥿򲡤Ȳ
 noremap <CR> o<ESC>
 v󲡤ǹޤ
 vnoremap v $h
ϤΤˤʤ뤫⡣ʳ˥꥿꤬~

2011.4.7ɲ~
gvimǤȤХåץܡɤͭȤ
 set clipboard=unnamed
ȤХԥڤǤ롣
ޤ󥯥󥿥륵Ȥ
 set incsearch
Ȥ롣
Ȥʸʸ
 set smartsearch
٤ʥǥ
 set smartindent
ʤɤǻߤޤʤ褦ˤ 
 set whichwrap=b,s,h,l,<,>,[,]
ΤȤǸޤǤäǽʤ
 set nowrapscan



*powerdotΥ [#w4f12f86]
Ѥݤ㤦⤬ʤΤǡ̵ǥå褯饤ɤʤʤõƤߤ~
TeXǥ饤ɤ񤯤class褦ǡpowerdotȤä[[:http://stuwww.uvt.nl/~hendri/]]ǸƤ롣Ƴ[[:http://www.obihiro.ac.jp/~suzukim/abe/powerdot_install.html]]򻲹ͤˤƤޥ˥奢⤢ߤǡܸΤꤷҤȤޤäƤߤ褦~
~
ޤޤ
 powerdot
 listings
 enumitem 
 xcolor
styեdownloadƤ롣~
ʬĶTeXstyleեꤷΤǡʬ/usr/sty/ǥ쥯ȥäơ.cshrc
 setenv TEXINPUTS  ʬ/usr/sty//
ɵƤǼʬ/usr/sty/ʲΥ֥ǥ쥯ȥޤstyեõ˹ԤäƤ롣~
Ķѿ̤ä顢ξinsեʤɤstyե롣
 platex xcolor.ins
ȤǰȯOK餷Ϥʤʤ~
Ǻ[[:http://ebonyivory.jugem.jp/?eid=67]]ȯdocstripxkeyvalpstricksäꤷǤ褯ʬʤ~
 platex aaa.ins
򤷤Ƥ⡢
 * First type the extension of your input file(s):  *
ȤԲĻ׵ĤʤȤ֤롣褯狼󡣤֤ŬФǤstyեϤФƤɡŬʬ󡣤⤷ƱѸɤƤʤ
~
~
 powerdotȤˤϡxkeyvalpstricksxcolorenumitemΥѥåɬפȤʤ Τǡ⤷ʤä饤󥹥ȡ뤷ƤƤ
 ʤ嵭μProsper򥤥󥹥ȡ뤷Ƥǽ񤤤Ƥޤ
 powerdotưˤϡCTANɤС1.24ʾprosper.clsɬפǤ

ȤΤȤʤΤǡprosperɲá~
colortblextsizes⤤Ȥ塣ʤ󤫤褯ʬʤʤäƤ~
~
⤦ġ
Ф̤μʬ
~
./usr/sty/ʲˤ٤Ƥޤ
~


*shell memo [#xa8c2455]
shell scriptλȤȤ˺Ͽ~
bash,tcshellξ礬Τǡդ٤

**Ťե [#l6e5fc54]
ȤĤƤquotaδطǰ̤Ȥ롣ΤȤ˥եǤ᤿Ȥ˸ŤեäȤäơΤ꤫[[Υ:http://www.searchman.info/tips/2950.html]]ޤäȻͤˤƤ~
~
 find ./ -mtime +50 -name "*.txt" | xargs rm -f
ϤФޥɤʤΤǡʲΥޥɤǥåƤˤ褦
 find ./ -mtime -50 -name "*.txt" | ls
 find ./ -mtime +50 -name "*.txt" | xargs ls
~
ʤߤˡfind+50-50ˤȡֺ50פȤֺ꤬50פȤˤʤ롣ñ50ȡ50˹줿եפˤʤ餷


**shared memoryλѾå [#ke5262f4]
üshared memoryλѾ
 ipcs
򤦤Ƥʬ롣~
Ȥˤϡ
 ipcrm
Ȥ
 ipcclean
Ǿä롣ΤȤ˼ʬΥץäƤʤդ롣~


**Ȥǥ쥯ȥΥեΤƥեѥ¸ [#z2772571]
ǥ쥯ȥˤեΥѥ򤹤٤夷ꥹȤꤿȤˤϡ
 find `pwd` ./* -type f >> aho.dat
Ȥ롣~
\-type f ץĤȡեΥѥϤ롣~


**postscriptե˼ʬΥѥ񤭹 [#k55f34c1]
ץåȤȤ֥åŽäƤȡեɤ֤ʬʤʤΤǡȤ˼ưŪˤΥѥդä褦ˤ롣ۤäݤɡpostscriptȤľܽ񤭹̵ɽƤߤ(ʲbash)~
 #Add footer to postscript file
 tmp_path=$(pwd)"/"$NAME_OF_PS
 str="0.5 0.5 0.5 setrgbcolor \n gsave  2948 1999 0 0 C 10 10 t 0 r \/Helvetica-Italic findfont 30 sf 0 0 m ("$tmp_path") show \n showpage"
 sed -e "s#showpage#$str#g" $NAME_OF_PS > $NAME_OF_PS_out
äƤΤϡpostscriptȤΡshowpageפ򸫤ĤƤִƤ~
ǡ٤ƤΥڡκ˥ѥ񤭹ޤϤ
ʸ֤ϡ10 10פʬʸϡ30פʬǤ롣ʸοϺǽsetrgbcolorꤷƤ롣RGBǡ0-1δ֤ǻøĤ롣Ωʤ褦˳ˤƤ롣~
ץȤˤäĤСȤˤ񤭹ޤƤ~
ޤ˰ǤʤȤ뤱ɡϤ⤦ʤps2psȤ餤Ȥ⤢뤷ʤȤ⤢롣ȤϤΤǤ롣~


**bsubǥ֤λȤ˥᡼뤬ʤ褦ˤ [#pd35ce48]
֤٤ˤäƤ᡼롣줬1000ñ̤ǤΤǡǥƤФʤΤǡ᡼Фʤ褦Ĵ롣~
꤫ϴñbsubȤ򳫤ơ֥ޥ
 qsub -e /dev/null -o /dev/null -m eas -M ᡼륢ɥ쥹
ȤʤäƤΤ
 qsub -e /dev/null -o /dev/null -m as -M ᡼륢ɥ쥹
Ȥ롣~
ޤߤ

**ե륵Ū˥åơ̤Ķ [#a0ee1eb6]
Хå֤ꤲȤɸϤĤŤ.nqsǥ쥯ȥ꤬ɡ줬äƤquta򿩤ԤƼԤ롣~
.nqsǥ쥯ȥŪ˴ƻ뤷ơ̤Ķrm&mkdir륹ץȤ֡礷ȤϤƤʤ

 #!/bin/sh
 
 rm -f .chk_nqs
 du /home/$USER/.nqs > .chk_nqs
 
 fsize=`du /home/$USER/.nqs | awk '{print $1}' ` 
 
 #¤5GBˤƤ
 if [ $fsize -gt 5000000 ]
 then
    rm -rf /home/$USER/.nqs
    mkdir /home/$USER/.nqs
 fi

crontab30ʬ˲󤷤Ƥ롣

2011.10.31~
GBquotaԤʤ褦ˤˡȯλ¿ˡȤϡե뤬礭ʤ븶ǤɸϤ򥳥ȥȤȤˡ~
~


**üΥǥեȤΰ֤ȥƤ [#d809675d]
gnomeü򳫤Ȥ˥ǥեȤǥʤɤѤƤȡʤɤΤdzڡ~
꤫
gconf-editor
 desktop->gnome->applications->terminal
 execפͤѤ롣
 gnome-terminal --geometry=WIDTHxHEIGHT+X+Y
ѥͥɲäƤȤˤϡåƥץѥƥǤǽ

**.cshrc [#xa1dc915]
ȤäƤޤzshʤˤ餷ɡʤ˻ȤʤƤʤΤǤޤ䡣

 bindkey "^W" backward-delete-word
Ctrl+WǰʸХåڡ줬ʤꤿä
 bindkey -k up history-search-backward
 bindkey -k down history-search-forward
 bindkey "^P" history-search-backward
 bindkey "^N" history-search-forward
ǤCtrl+P,N򲡤ȡ򸡺䴰Ƥ褦ˤʤ롣
 set ltn = `set | grep tty | cut -f 2 | cut -c 4-5`
 set prompt = "[%{^[[34m%}%m:%{^[[35m%}%n%{^[[0m%}]%c3%# "
 unset ltn
ץץꡣΥȤ򻲹ͤˤƤ~
[[餵Τ⤵:http://murasaki.cocolog-nifty.com/cloud/2009/09/freebsd-tcsh-90.html]]~
~
ʤߤforwardññ̤deleteȤ
 Alt-d
ǤǤ롣~

**AWKˤĤ [#l1c61628]
shellɤΤʬʤɡץȤ񤯤ȤˡñʸѿȤä׻ԤȤ˽롣~
ͥڡ...~
[[AWK:http://lagendra.s.kanazawa-u.ac.jp/ogurisu/manuals/awk/intro/]]~
[[AWKλȤ:http://www.not-enough.org/abe/manual/unix2-au99/awk1.html]]~


**׻ΥǡХååפȤ [#jc24e565]
¸ΥޥΥХååפȤ롣ˡϥǥСautofsǥޥȤƤơŪ
 cp -a
¹Ԥ~
Τ
 vi /etc/auto.master
ԽƥޥȡcrontabŪ˥ץȤ¹Ԥ롣~
cpȤalias
 cp -i
򤭤ƤΤǡ̵뤹뤿
 \cp -a
Ȥ롣~


**findȤʤ [#pf4c779c]
[[Х:http://c-brains.jp/blog/wsg/10/04/09-095214.php]]ε顣Ȥ餫ʤ褵ľޤȤʤƤʤΤǡɤɤڤ~


**DNSС䤤碌IPɥ쥹ɽ [#s54caeef]
Τޤޡ
 nslookup www.google.co.jp
ȤСֶ᤯DNSФʹ˹Ԥ
~

**Ʊǥ쥯ȥβ礷pdfե˽Ϥ [#ibd242fe]
ץȤ񤤤Ƥߤ~
&ref(convlife.sh);~
ȤϿǥ쥯ȥäƤ˷礷եޤȤơȤФηbmpʤ
 . convlife bmp
OK~
ե٥åȽ˥ڡΤǡ֤̾ѤƤ館ФǤ
Ŭ˲600ꤷƤ뤱ɡŬѤƤ館OKȻפޤ~
ǸpsեõƤޤΤǡǥ쥯ȥpsե֤ʤ褦ˤޤ礦~
~
äȲ¤˥եꤹΤ˺Τǡե褦errorȡpsեäζݤ̤к̾ѹޥpathäƻȤäƤޤʳ~
&ref(mogrify2pdf);~
~
äѤꥵĴᤷΤǡ˥Ǥ褦ˤ~
&ref(mogrify2pdf_2);~
 usage:./mogrify2pdf [picture type] [output size(defalt=600)]
~
epsեϤ虜虜psˤʤƤgsޥɤѴǤ뤷ΤۤɤΤDz򤷤ޤepsեȤޤgrepǤʤƱڡĽϤ뤳ȤäΤ򤷤lsΤȤ-vץĤơˤʤäƤ֤ˤʤ褦˥ȤŬ~
epsʤȤȤˤΤǡʤȤʤȥڡ֤ѤʤΤǡĴᤷ~
&ref(mogrify2pdf_3);~

**ޥɥ饤ǥǥ쥯ȥꤷƥե֥饦ư [#jf6e7f4d]
CentOSΥեޥ͡[[Nautilus:http://live.gnome.org/Nautilus]]ȤäƤ롣Τ
 nautilus ѥ
ȤGUIŪ˳롣~


**ǥ쥯ȥβեޤȤconvert [#l36597a4]
ʤȻפäơïäƤȻפäƸƤߤäѤhit
[[PCХ:http://pcbike.blog68.fc2.com/blog-entry-23.html]]~
ɡmogrifyȤޥɤäơ~
psեepsѴȤϡ
 mogrify -format eps *.ps
OK!
~
[[UNIX:http://technique.sonots.com/plus/?UNIX%2F%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%2F%E5%A4%89%E6%8F%9B%2Fmogrify]]Υڡ˻ȤäĶ
~
**cshץȤΥ [#cca3232a]
ޥɤ䥷륹ץȤäȤȤǧ뤿ΡλɤȤΤ롣~
[[λ:http://itpro.nikkeibp.co.jp/article/COLUMN/20060228/231028/]]~
~

**sftp [#f9ecdc60]
sshѤΤҤȤĤsftp롣ϤΤޤޡsecureftpפΰ̣ǥ⡼ȥۥȤˤ褦ʵʬǥޥ"download"⤷"upload"Ǥ롣ʵȤơputget롣~
 put ԡΥե̾ԡΥե̾
ǥۥȤ⡼ȥۥȤ˥ե򥳥ԡ롣
 get ԡΥե̾ԡΥե̾
ǥ⡼ȥۥȤۥȤ˥ե򥳥ԡ롣
ޤlsǥ⡼ȥۥȡllsǥۥȤ礷lsԤꡢƱΤcdǤ⤹롣~
Ȥʤ~
Υڡͤˤʤä[[SSHޥ˥奢:http://www.club.kyutech.ac.jp/support/manual/ssh.html]]~

**pdfimages[#y091e3e6]
pdfե뤫եΤߤȴФ~
pdfimagesȤ뤬äơ
 pdfimages input.pdf output
ȻꤷƤǡoutput-ȤեäƤ롣~
ޤץ-jȤjpgեȤƽϤ롣~
¾ΥץϼΤȤꡣ
 -f startpage# ȴФϥڡ
 -l endpage# ȴФλڡ
 -j DCTDiscrete Cosine TransferΥѴˤβJPEGǽ
 -opw ѥ ʡѥɡʸΰԽʤɤ¤뤿Υѥɡˤ
 -upw ѥ 桼ѥɡʸ򳫤Υѥɡˤ
Ǥ~


**cdȤ˼ưŪls¹Ԥ [#cbebc464]
CϤǻȤʵ.cshrc~
 alias cwdcmd 'ls'
ȤХǥ쥯ȥ꤬ѹ뤿Ӥls¹Ԥ롣llˤܺ٤ɽ롣Ǥ̤˥ե뤬ϷˤʤΤǡե뤬¿lsʤȤǽ񤤤ҡˤʤ󤸤ʤġǤͤϤޤ~
 cwdcmdprecmdϤ줾tcsh̤ʥꥢǡꤵƤϼưŪ˼¹Ԥޤ ǥեȤǤ̤ˤʤäƤޤܺٵڤӤ¾̤ʥꥢtcshΥޥ˥奢 񤤤Ƥޤ
ȤȤ([[:http://www.mars.dti.ne.jp/~kal/computer/shell/smileyprompt.html]])CȤˤaliasߤ~

**ߥʥ夲Ȥ˥åɽ [#l137a0e2]
˺Τǡޥɥ饤ü夲(sshlogin)Ӥ˥åɽȻפä.cshrc
 cat userdir/message.dat
ȤƤߤʤlessɽ٤message.datƤˤʤäƤޤä~
lessγĥǽǤLESSOPENѿȤΥ륳ޥɤcshellƤӽФƤ뤿ǡtcsellȤ٤.csrcϼ¹Ԥ뤫message.datɽƤȽ~
tcshellȤ٤˥åФΤǤϤʤɤߥʥ򤢤ȤåФĤȡõƤߤߤĤʤΤǡȤä̵롣.cshrc
 #message
 set msfrag=`env | grep -c msfrag`
 if ($msfrag == 0)then
 cat userdir/message.dat
 setenv msfrag 0
 endif
 unset msfrag
­~
äƤ뤳ȤϡsetǥѿmsfragΤʤ˴ĶѿmsfragȤʸοơ줬0ʤcatǥե񤭽Ф⤷񤭽Ф줿ĶѿmsfragꤵΤǡ٤ϥѿmsfragɬ1ˤʤ롣Τifϼ¹Ԥʤʤ虜虜ĶѿmsfragäƤ뤫Ȥȡѿsetˤ˼¹Ԥ줿륳ޥɤĤäƤΤǡ줬ޤ޹礦Զ򵯤ǽ뤿ᡣǰΤᡣ~
ɤˡΤäƤ϶Ƥ~
~
äѤ.cshrc˽񤯤ΤϤޤ褯ʤߤscp򤷤Ȥ˵ươϤɤä餤狼餺˽λƤޤ~
ΤޤޤؤʤΤǡ.login˽񤯤äѤꤽloginȤɽ줺֥ߥʥ򤢤ȤɽפȤŪãǤʤ~
sshȤscpȤscriptɤǤߤ뤷кΩΤġ³ԤƤޤ~
~
褷ޤ~
ŪˡsshȤäƤȤΩĴĶѿǾʬפȤˡscpʤɤΤȤ˵򤷤~
Ȥssh򤷤ȤSSH_CLIENTSSH_TTYȤĶѿΩäƤ롣줬뤫ʤǾʬ򤷤ʤߤ˾ʤäơ
 $?ѿ̾
ѿ줿ΤʤΤ̤ʤΤĴ٤뤳ȤǤ롢ȤȤäʬ⥹ޡȤˤ.cshrc˽񤭲äΤϼʬ~
 #message
 if (! $?msfrag) then
  if (! $?SSH_CLIENT || $?SSH_TTY ) then
   cat ǥ쥯ȥ̾/message.dat
   ls
  endif
  setenv msfrag 1
 endif
OK!ĤʤϤ!
~
~
ʤȤޤȯΥɤ񤤤Ƥ顢rebootȵưʤʤä~
envǴĶѿ򸫤Ƥߤ顢msfragΩäƤƤߤΤɤΥߥ󥰤Ǽ¹ԤơäȻĤäƤΤ~
msfragsetǥѿˤƤ⡢ifʸˤϰäʤߤǡᡣɤˡϤʤΤġ³
~
~


**ƥȥ١web֥饦 [#h51ef52e]
firefoxĴҤΤǡ¾ˡõõȥߥʥǥƥȥ֥饦Ȥäweb³뤳ȤǤ뤳ȤʬälynxȤץꥱ~
[[lynxδñ:http://ash.jp/linux/lynx/index.htm]]~
~
w3mȤ⤢餷emacsʻƻȤȤ[[W3M:http://w3m.sourceforge.net/index.ja.html]]~
~

**ץȤʥƥ˥å [#ia4bf512]
̾εȤA4A3ˤʤ鼡Τ褦ˤ롣
 psresize -pa3 -Pa4 input.ps output.ps
~
2ڡˤޤȤ
 psnup -2 input.ps output.ps
OK~
psեϢ뤷Ȥϡ
 gs -q -sDEVICE=pswrite -dNOPAUSE -dBATCH -sOutputFile=output.ps input1.ps input2.ps

 psmulti input1.ps input2.ps -o output.ps
ޥɤǤ롣漼ĶǤϸԤ̵äݤ~
(10.11.29ɵ)Ԥ̵ʤȤ롣ΤȤϰʲäpsjoinȤץȤ¹Ԥɤ[[psjoin:http://homepage3.nifty.com/tsato/tools/psjoin.html]]~
ϤϥƥȤʤΤǡŬ˥쥯ȤOK
~
psեʬ䤷Ȥϡ
 psselect page# inputfile outputfile
ʬǤ롣~
[[psselect:http://cns-guide.sfc.keio.ac.jp/2002/11/4/2.html]]
~


**bashtcshellŪ(ޤǴޤ)alias [#acef2288]
bashǤaliasϰ򰷤äƤʤǥؿȤȤС"aho""ssh aho"ȤaliasȤˤϡ.bashrc~
  function aho(){
     ssh aho
  }
ȤФɤʤɤΰѤˤϴ򤷤Ĥ⤷ʤ~

**nkf [#u19df092]
ʸѴޥɡ~
[[nkf-ʸɤѴ-:http://itpro.nikkeibp.co.jp/article/COLUMN/20060227/230849/]]~


 b  	Хåե󥰽ϤԤ
 -u 	ϻ˥Хåե󥰤Ԥʤ
 -j 	JISɤѴ
 -e 	EUCɤѴ
 -s 	եJISɤѴ
 -w 	UTF8ɤѴ
 -i? 	JISؼ륷󥹤Ȥ ESC-'$'-?Ѥ
 -o? 	1ХȱѿʸåȤؼ륷󥹤ȤESC-'('-?Ѥ
 -r 	ROT13/47Ѵ
 -T 	ƥȡ⡼ɤǽϤ
 -l 	0x80-0xfeΥɤISO-8859-1 (Latin-1)ȤưJISɤλ Τͭ
 -f? 	?ʸˤʤ褦˴ñԤ
 -Z 	X0208αѿȰεASCIIѴ
 -J 	JIS(ISO-2022-JP)Ȳꤷƽ
 -E 	ܸEUCȲꤷƽ
 -S 	եJISȲꤷƽ
 -X 	եJISȲꤷƽ롣X0201̾ΤȤ
 -B 	줿ESC»JISȲꤷƽ롣-B1ξESC-(ESC-$)ΤȤΥɤʤ-B2ξϲԤθ˶ŪASCII᤹
 -x 	̾ԤX0201̾->X0208β̾Ѵʤ
 file 	ѴΥեꤹ


**lpr [#a845f91e]
[[ lpr  ץ󥿤ǰ:http://itpro.nikkeibp.co.jp/article/COLUMN/20060227/230818/]]~
~
UNIXĶǤϥͥåȥץ󥿤[[CUPS:http://ja.wikipedia.org/wiki/Common_Unix_Printing_System]]ȸƤФƥѤ롣defaultϤport631~
~
**a2ps [#k295c1b2]
[[a2ps:http://www.tuat.ac.jp/~sanoken/tech/unix/a2ps]]~
a2ps̤ΥƥȥեpsեѴ륳ޥɡѥפlprФΤޤްǤ롣ǥեȤǰ褬ץ󥿤ˤʤäƤϤ˽ϤΤǡưŪ˰Ȥ⤢롣~
link˥ץΤǡĶǤ~
~
ʸɤEUC򰷤Ȥи漼δĶemacsܸʸϤ񤤤ơȤˤpipeƼΤ褦˵ҤOK!~
 nkf -e "filename" | a2ps --encoding=euc-jp | lpr -P "printername"
~
ޤ1ڡǽĹ˽ФȤˤ
 -R --columns=1
ץĤФ
~