Linux

logwatch

まずは組み込み Logwatchでサーバ監視レポート http://www.ahref.org/doc/logwatch.html 通知を自分宛てに飛ばすには、rootユーザにメールアドレスを設定する root宛てのメールを別ドメインのメールアドレスに転送する http://d.hatena.ne.jp/taoyag/2008011…

GnuPG を使用して文書を暗号化する

GnuPG を使用して文書を暗号化する http://www.turbolinux.co.jp/support/document/knowledge/119.html

定期的にコマンドを実行

Tera Termから定期的にコマンドを実行したいなぁというときにつかう例えばlsコマンドを1秒おきに実行するなら $ watch -n 1 --differences ls 参考:http://d.hatena.ne.jp/lurker/20061102/1162427903

suできないユーザでコマンドを実行する

su -s /bin/bash - hoge -c "ls -alF /home/hoge/"

ネットワークの設定

デフォルトゲートウェイの設定 [hoge]$ /sbin/route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface XXX.XXX.XXX.XXX * 255.255.255.224 U 0 0 0 eth0 XXX.XXX.XXX.XXX * 255.255.0.0 U 0 0 0 eth0 default YYY.YYY.YYY.Y…

時計あわせ

# ntpdate -s ntp.nict.jp 公開サーバはNICT(情報通信研究機構)を使ってみた 参考 ・http://wiki.nothing.sh/page/NTP/%BF%E4%BE%A9%B8%F8%B3%AB%A5%B5%A1%BC%A5%D0 ・http://www.itmedia.co.jp/help/tips/linux/l0036.html

バージョンの確認方法

[root@hoge bin]# more /etc/issue Red Hat Enterprise Linux ES release 4 (Nahant Update 5) Kernel \r on an \m