***wget [#bbbb37b5] -$ wget -r http://サイト名/ディレクトリ/ -A ファイル名・パターン acceptする -R ファイル名・パターン rejectする -np 親ディレクトリは探索しない ***ln でシンボリックリンク [#fc824872] +http://www.makizou.com/archives/82 ln -s /home/target name ***Tex [#peb75ea8] -http://kano.feena.jp/?CentOS%2FLaTeX +# yum install tetex tetex-fonts tetex-latex jadetex tetex-afm tetex-dvips ***zipで圧縮する [#r2e7ebb6] -圧縮 --zip tmp.zip *.dat -解凍 --unzip abc.zip ***Perl CPAN インストール [#ub8fb661] -# perl -MCPAN -e shell *** ls で適切なサイズ表示 [#o692efb7] -ls -lh -ディレクトリのサイズのみ $ du -s ディレクトリ名 -ディレクトリ内のファイル数をカウント(Linux) ls | wc -w -カレントディレクトリ以下で、最近10日の内に修正されたファイル数 find . -ctime -10 -type f | wc -l *** .bash_profile path 設定 [#r348a73e] -vi .bash_profile export PATH=$PATH:/home/weka export CLASSPATH=$CLASSPATH:/home/weka/weka.jar:. -source .bash_profile ***mailコマンドでメール送信 [#hebbaccb] mail ****@**.*** Subject:で題名を入れ[enter] 本文を入れる[enter]で改行 行頭に「.」を入れると本文の終了 *** telnet メール送信テスト [#y1e94d04] -メール送信できるかチェックする。 ++$ telnet localhost 25 Trying ***.***.***.100... Connected to localhost.localdomain (***.***.***.100). Escape character is '^]'. 220 up.***ac.jp ESMTP Postfix ++helo up.***.ac.jp 250 up.***.ac.jp ++mail from:cbc@***.ac.jp 250 Ok ++rcpt to:kimura@***.ac.jp 250 Ok data 354 End data with <CR><LF>.<CR><LF> ++ subject:TEST2 ++ ++ abc ++ ++ . 250 Ok: queued as E0F0**** quit 221 Bye Connection closed by foreign host. ***自動起動 apacheなど [#f482dfa1] +chkconfig --http://merry.whitesnow.jp/SEMICMD/SECTION7/section7_2.html#init +コマンドラインからメール送信する方法 http://cmd.misty.ne.jp/network/04.html ***Basic認証 [#jb4184f3] htaccessの記述 [#y056f699] +$ vi .htaccess AuthUserFile /home/web/public_html/NLP-Source/.htpasswd AuthGroupFile /dev/null AuthName "Please enter your ID and password" AuthType Basic require valid-user パスワードを作成する方法 [#l75ab6f3] +$ htpasswd -n abc +New password: +Re-type new password: +abc:ISVvPJIN3GXUM