finger root
------------------------------------------- ========= 清除用户的口令 ========= passwd -d user ------------------------------------------- ========== 可以同时创建目录 ========== mkdir -p ------------------------------------------- ========== ssh命令 ========== ssh -p 12333 root@216.230.230.114 -------------------------------------------- ========== kill命令 ========== 终止httpd程序: killall httpd 强制终止httpd程序: killall -9 httpd ---------------------------------------------- ================== 找出passwd中的所有用户名 ================== cut -d ‘:’ -f1 /etc/passwd ----------------------------------------------- ======== 语言设置 ======== vi /etc/sysconfig/i18n etc/default/locale ------------------------------------------------ ubuntu切换到root ============ sudo -s ------------------------------------------------ ubuntu的ssh安装 =========== apt-get install openssh-server ------------------------------------------------ debian新加网卡 =========== rm /etc/udev/rules.d/70-persistent-net.rules ------------------------------------------------- rpm安装 =========== rpm -ivh nmap*******.rpm --------------------------------------------------- namp的使用 ========== nmap -sT 192.168.1.1 扫描此ip开放的端口 nmap -sT -P0 -p 80 192.168.1.1 扫描此ip的80端口是否开放,-P0表示ping无响应也探测端口。 --------------------------------------------------- linux默认路由 ========== /etc/sysconfig/network NETWORKING=yes GATEWAY=192.168.0.1 ---------------------------------------------------- 启动自动执行命令: ============ /etc/rc.d/rc.local route add default gw x.x.x.x dev eth0 ------------------------------------------------------ linux时钟设置 ========== date -s 11/30/2011 date -s 12:37:00 ------------------------------------------------------