Linux basic command (For root)

常用指令

===== 解壓縮 .gz 檔 =====

tar xvf <tar-file>

===== rpm 安裝 =====

rpm -ivh 檔名

===== 在linux中要查詢linux的版本 =====

指令「uname -a」只可查詢到核心版本資訊 \\ 

orion x86_64 2.6.18

===踢人===

w

pkill -kill -t pts/1 

帳號創建與同部

====== HOST 端 (octans) ======

cd /var/yp 

./ypmake password 

====== clint 端 (orion)======

authconfig --update

yptest

====== Host recognition order ======

File NIS DNS

 

顯卡驅動程式

1. 下載 驅動程式 [[http://www.nvidia.com/content/drivers/drivers.asp]]

2. 關閉x windows

you have to reboot in the run level 3, 2 or 1

edit the file /etc/inittab in the line

id:5:initdefault:

change it to:

id:3:initdefault:

reboot...

then you'll enter without the X server

3. 安裝 sh ./xxxxxxxxx.run

4. after installing the driver change it back to :

id:5:initdefault:

and enter the command:

shutdown -h now

to reboot again

 

12/19/2011 17:44
Asia/Taipei