05/29: Linux > bash
Josh Staiger: .bash_profile vs. .bashrc"According to the bash man page, .bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells."
05/27: Using TACACS for AAA
Using TACACS for AAA
TAC_PLUS Developer's Kit vF4.0.2.alpha
Note:
1. Modify Makefile
OS=-DLINUX -DGLIBC
OSLIBS=-lcrypt
2. Check /etc/services port 49
3. Sample conf
key = xxxxxxxx
default authentication = file /etc/passwd
accounting file = /var/log/tac.log
# debug log is var/tmp/tac_plus.log
user = tacadmin {
default service = permit
chap = cleartext xxxxxxxx
}
4. Run with debug
#tac_plus -C /etc/tac-plus/tacacs.conf -d 248
debugging output in the var/tmp/tac_plus.log file
TAC_PLUS Developer's Kit vF4.0.2.alpha
Note:
1. Modify Makefile
OS=-DLINUX -DGLIBC
OSLIBS=-lcrypt
2. Check /etc/services port 49
3. Sample conf
key = xxxxxxxx
default authentication = file /etc/passwd
accounting file = /var/log/tac.log
# debug log is var/tmp/tac_plus.log
user = tacadmin {
default service = permit
chap = cleartext xxxxxxxx
}
4. Run with debug
#tac_plus -C /etc/tac-plus/tacacs.conf -d 248
debugging output in the var/tmp/tac_plus.log file
05/16: Linxu > find by filesize
ファイルやディレクトリを詳細な条件で探すには
$ find . -size +10k -ls
ls: Sort by filesize
$ ls -ls | sort -n
find files modified today
$ find . -daystart -mtime -1 -ls
$ find . -mmin -30 -ls
$ find . -size +10k -ls
ls: Sort by filesize
$ ls -ls | sort -n
find files modified today
$ find . -daystart -mtime -1 -ls
$ find . -mmin -30 -ls
05/15: Linux > bash > kill
1625番のプロセスを強制終了する $ kill -9 1625 httpdを再起動する $ kill -HUP httpd【 kill 】 プロセスおよびジョブを強制終了する:ITpro
計算機と戯れる日々
$ aaa (C-z押) $ bg $ disown %1 $ exit
Trivial Tracks: disown 覚書"disown %[ジョブ番号] これだけでバックグラウンドプロセスをデーモン化することが出来る。 結果的として実行中にログアウトしても大丈夫。"
Setting up a network with Red Hat Enterprise Linux 4.0
/etc/sysconfig/network
/etc/sysconfig/network