这是我做题后自己的小小总结,写一遍加深记忆,贴上来大家共享!!!
(1),
ls -li 显示文档块号;
ls -R dir 递归显示dir目录下的内容,
(2),
# prtconf | grep -v not
(3),(必考)
devfsadm -c device_class
----------------devfsadm 参数汇总----------------------
-c 指定class
-i 检测指定设备名;
-v 检测硬件,更改/dev and /devices目录内容;
-C 检测删除硬件,更改目录内容;
----------------------------------------------------------
(4),
newfs /dev/rdsk/c1t3d0s0
在newfs创建文档系统时,会留出1%-10%的空间给newfs给维护所用,这个参数就是minfree,可用命令fstyp查看minfree的值;在newfs创建文档系统时能够用 newfs -m %free 来指定;
(5),
fstyp -v /dev/rdsk/c0t0d0s0 | head -10 显示free的大小;
假如不加-v参数,则只显示挂接的文档类型:如只显ufs
(6),
假如想修改此参数,可用以下命令:
tunefs -m 1 /dev/rdsk/c1t3d0s0
(7)
能够用prtvtoc 命令把磁盘的VTOC保存到一个文档中:
例如: prtvtoc /dev/rdsk/c1t0d0s2 > /vtoc/c1t0d0
能够把prtvtoc命令的输出内容导入到另外一块硬盘中去:
例如: fmthard -s datafile /dev/rdsk/c #t #d #s2
(8)
df – Displays the number of free disk blocks
(9)
du – Summarizes disk use
(10)
quot – Summarizes file system ownership
(11),
使用mountall命令:
mountall -l 只mount本地的任何文档系统;
---------------------------------------------------
Using the fstyp Command来查看文档类型:
# fstyp /dev/rdsk/c0t0d0s7
ufs
---------------------------------------------------
(12)
使用mount命令的option
Some options used to mount local file systems include: ro, nosetuid,
noatime, nolargefiles, and logging.
----------------------------------------------------
(13)
umount任何文档系统:
#umountall
umount任何本地的文档系统:
#umountall -l
----------------------------------
fuser command – Lists all of the processes that are accessing the file
system and kills them if necessary
----------------------------------------------
(14),
umountall状态为busy的系统:
以下四种情况,文档系统都会显示:umount: file_system_name busy
1 A program is accessing a file or directory in the file system
2 A user is accessing a directory or file in the file system
3 A program has a file open in that file system
4 The file is being shared
有两种方法解决:
(1) 使用fuser命令来确认挂接点有那些进程在访问,然后杀掉
(2) 用umount -f 强制umount;
(15),
--------------------------------------------------------------
volume management两个重要文档:
/etc/vold.conf volume management配置文档,配置一些条目,如插入,弹出设备时的动作,
那些设备被volume management管理,那些设备是不安全弹出等.
/etc/rmmount.conf rmmount命令的配置文档,rmmount是个被volume management在光盘或
软盘弹出时执行的命令;
(16),
----------------------------------------------
volcheck检测diskette和其他可移动设备.
(17),
-------------------------------------------
停止卷管理服务:
# /etc/init.d/volmgt stop 或 # pkill -9 vold
启动卷管理服务:
# /etc/init.d/volmgt start
-----------------------------------------------
(18),
# pkginfo | more
显示任何软件包的周详信息:
# pkginfo -l | more
显示SUNWman软件包的周详信息:
# pkginfo -l SUNWman
显示系统已安装软件包的数量:
# pkginfo | wc -l
(19),
显示光盘相关目录的软件包:
pkginfo -d /cdrom/cdrom0/s0/Solaris_9/Product |more
提示:光盘CD1of2 中放了core and END USER software Groups
cd2 of 2 中放了Developer, Entire Distribution, and Entire Distribution Plus OEM Support software groups.
(20),
安装软件包从光盘到系统中:
# pkgadd -d . SUNWns6m
(21),
查看软件安装状况:
# pkgchk SUNWcarx
加-v 参数可查看软件包安装在那些目录下放置了文档:
# pkgchk -v SUNWcarx
查看文档状态:
#pkgchk -p /etc/passwd
查看passwd文档什么时候软件包创建,最一次修改时间连同原始文档大小,及现在大小;
#pkgchk -l -p /etc/group
查看此文档被那个软件包创建,连同一些相关信息;
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




