Solaris常用命令和例子

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Solaris常用命令和例子

1)

ok>probe-ide//Ultra5/10、Blade100/150

ok>probe-scsi-all//Ultra60、E450、V480

ok probe-scsi-all

/pci@1f,4000/scsi@3,1

/pci@1f,4000/scsi@3

Target 0

Unit 0 Disk QUANTUM VK4550J SUN4.2G8817

Target 6

Unit 0 Removable Read Only device TOSHIBA 2395 XM5701TASUN12XCD

fsck

例:

ok boot

Boot path: /ssm@0,0/pci@1c,700000/pci@1/SUNW,isptwo@4/sd@0,0:a Boot args: -s Loading ufs-file-system package 1.4 04 Aug 1995 13:02:54.

FCode UFS Reader 1.11 97/07/10 16:19:15.

Loading: /platform/SUNW,Sun-Fire/ufsboot

Loading: /platform/sun4u/ufsboot

SunOS Release 5.8 Version Generic_110096-04 64-bit

Copyright 1983-2000 Sun Microsystems, Inc. All rights reserved.

WARNING: todsg_get(): TOD SRAM magic error

WARNING: todsg_get(): turned off using tod

configuring IPv4 interfaces: hme1.

Hostname: qame-a

The / file system (/dev/rdsk/c4t0d0s0) is being checked.

/dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=50905 (4 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=50906 (2 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=50907 (2 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=539350 (18 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=539351 (2 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=753040 (2 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=804088 (2 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=881943 (2 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=881944 (2 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: INCORRECT BLOCK COUNT I=885317 (6 should be 0) (CORRECTED) /dev/rdsk/c4t0d0s0: 7499747 DUP I=885355

/dev/rdsk/c4t0d0s0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. WARNING - Unable to repair the / filesystem. Run fsck

manually (fsck -F ufs /dev/rdsk/c4t0d0s0). Exit the shell when

done to continue the boot process.

Type control-d to proceed with normal startup,

(or give root password for system maintenance):

#fsck –y

ok boot cdrom –s

#fsck –y /dev/rdsk/c0t0d0s0

2)

终端控制

ctrl+s :终止屏幕输出,如用cat命令输出时,要停一下

ctrl+q :恢复ctrl+q的输出

ctrl+c :中断当前的活动,返回命令提示符

ctrl+d :表示文件的结束或退出,如退出终端窗口

ctrl+u :擦除整个命令行

ctrl+w :擦除命令行最后一个单词

ctrl+h :擦除命令行最后一个字符

3)

# uname–a //查看操作系统版本以及内核版本SunOS 5.7 Generic_106541-19 sun4u sparc sun4u

SunOS:

OS5.5.1=solaris2.5.1

OS5.6=solaris2.6

OS5.7=solaris7

OS5.8=solaris8

Unix kernel:

32 bit SPARC - /platform/sun4u/kernel/unix

64 bit SPARC - /platform/sun4u/kernel/sparcv9/unix

intel - /platform/i86pc/kernel/unix

4)

# date

# date mmddHHMM[[cc]yy][.SS]

# date

2003年10月12日星期日 10时04分16秒 CST

(CST是Chinese Standard Time的缩写)

# date 10121003 设置时间为10月12日10时03分

相关文档
最新文档