shell
davidlee_iteye
工作积极主动,动手能力强,有集体责任感,善于与人沟通;linux系统管理员(lvm iscsi ftp squid dns nagois bacula rsync Apache mysql nginx memcached);虚拟化技术工程师(VMware vSphere,fc-san,nfs, MFS,idc);网络工程师,掌握组网技术和windows安全管理 (router,switch,vlan,acl,route-map,ad,cer,dns,vpn,isa ,forefront TMG) 5.目前在学习高性能集群应用系统和虚拟化的相关知识并且已有一定的部署开发经验 (RHCS,Oracle RAC ,MySQL+heartbeat+DRDB+LVS,Citrix Xenserver,Hyper-V)。
展开
-
正则表达式
grep '\<root\>' /etc/paswdcut -d: -f1 /etc/passwdcut -d: -c1-3 /etc/passwdgrep '\<root\>' /etc/passwd | cut -d: -f1cut -d: -f1 /etc/passwd | grep '\<root\>' tail -f /var/logcatgrep...原创 2013-08-06 01:00:35 · 82 阅读 · 0 评论 -
show sysinfo
#!/bin/bash LANG=CHL='============'CPU=`cat /proc/cpuinfo | grep 'model name' | gawk -F\: '{print $2}'|uniq|sed -e 's/ //'`MHz=`cat /proc/cpuinfo | grep 'cpu MHz' | gawk -F\: '{print $2}'|uniq|sed ...原创 2013-08-07 14:23:35 · 199 阅读 · 0 评论 -
check out setuid file
#!/bin/bash # after the system installed,please check setuid files first for security. # mkdir /backup# find / -perm -4000 -a -perm -20000 > /backup/setuid.list/usr/bin/find / -perm -4000 -or -...原创 2013-08-07 14:23:50 · 109 阅读 · 0 评论 -
show user's info
#!/bin/bash # display user's info... /bin/echo "Please input the username"read username/bin/grep $username /etc/passwd > /dev/null 2> /dev/nullif [ $? -eq 0 ]then /bin/echo "username...原创 2013-08-12 10:07:17 · 388 阅读 · 0 评论 -
iptables-rule
一、iptables: 删除现有规则iptables -F (OR) iptables --flush 清空 filter tableiptables -F -t filteriptables -X -t filteriptables -Z -t filter 清空 nat tableiptables -F -t natiptables -X -t natiptables -Z -t n...原创 2013-08-12 10:19:19 · 115 阅读 · 0 评论 -
iptables
#!/bin/bash # The outside interface, use ADSL EXTIF="eth0" # the inside interfaceINIF="eth1" # the inside network, This is for NAT's networkINNET="192.168.1.0/24" #this shell is only for kern...原创 2013-08-16 21:38:51 · 88 阅读 · 0 评论 -
add more users
#!/bin/bash # addclass ga 1 50 username ga0101-ga0150 groupadd users 2>> /dev/nullif [ $? -eq 0 ]thenecho "Users is created seccussfully !"elseecho "Users is exist,you needn't created !"fig...原创 2013-08-19 14:23:40 · 152 阅读 · 0 评论