Solaris/Linux 命令行手册

时间:2011-07-04 05:54:22
【文件属性】:
文件名称:Solaris/Linux 命令行手册
文件大小:87KB
文件格式:DOC
更新时间:2011-07-04 05:54:22
Solaris/Linux 命令行手册 Solaris/Linux 命令行手册。
写的这个命令行列表,适用于初学者,希望大家可以补充。
贴一点内容如下:
16、查找网卡名称及接口个数
# grep network /etc/path_to_inst

17、如何一块网卡帮定三个ip,并且子网掩码不同?
举例说明,网卡名hme0:
# vi /etc/hosts
127.0.0.1 localhost
192.168.2.1 dbs loghost
192.168.9.15 dd
192.168.9.65 aa
# vi /etc/netmasks
192.168.2.0 255.255.255.0
192.168.9.0 255.255.255.192
192.168.9.64 255.255.255.252

#vi /etc/hostname.hme0
dbs
#vi /etc/hostname.hme0:1
dd
#vi /etc/hostname.hme0:2
aa
# ipconfig hme0 inet 192.168.2..1 netmask 255.255.255.0 up
# ipconfig hme0:1inet 192.168.9.15 netmask 255.255.255.192 up
# ipconfig hme0 inet 192.168.9.65 netmask 255.255.255.252 up
# init 6
#ipconfig -a

18、如何在prom状态下查看光纤硬盘 ?
stop +a进入ok状态:
ok>; select 光纤卡设备名(可用show-devs查看到)
ok>; show-children

19、主机双屏幕设置。
1.Confirm there are two Video Cards。
2.Confirm driver installed and patches installed if need。
3.vi /usr/dt/config/Xservers.
comment the last line.
and uncomment the nearest line like this.
4.reboot.

20、查看硬盘参数及其物理地址:
#format
21、显示磁盘的分区情况:
#prtvtoc /dev/rdsk/c0t0d0s2

网友评论

  • 很不错的东东哈,太好啦啦啦啦