finger root
-------------------------------------------
=========
清除用戶的口令
=========
passwd -d user
-------------------------------------------
==========
可以同時創建目錄
==========
mkdir -p
-------------------------------------------
==========
ssh命令
==========
ssh -p 12333 [email protected]
--------------------------------------------
==========
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
------------------------------------------------------