日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

soalris 命令以及sa239考點(diǎn)集錦

這是我做題后自己的小小總結(jié),寫(xiě)一遍加深記憶,貼上來(lái)大家共享!!!

(1),
ls -li 顯示文件塊號(hào);
ls -R dir 遞歸顯示dir目錄下的內(nèi)容,
(2),
# prtconf | grep -v not


(3),(必考)
devfsadm -c device_class

----------------devfsadm 參數(shù)匯總----------------------
-c 指定class
-i 檢測(cè)指定設(shè)備名;
-v 檢測(cè)硬件,更改/dev and /devices目錄內(nèi)容;
-C 檢測(cè)刪除硬件,更改目錄內(nèi)容;
----------------------------------------------------------
(4),
newfs /dev/rdsk/c1t3d0s0

在newfs創(chuàng)建文件系統(tǒng)時(shí),會(huì)留出1%-10%的空間給newfs給維護(hù)所用,這個(gè)參數(shù)就是minfree,可用命令fstyp查看minfree的值;在newfs創(chuàng)建文件系統(tǒng)時(shí)可以用 newfs -m %free 來(lái)指定;
(5),
fstyp -v /dev/rdsk/c0t0d0s0 | head -10 顯示free的大小;
如果不加-v參數(shù),則只顯示掛接的文件類(lèi)型:如只顯ufs

(6),
如果想修改此參數(shù),可用以下命令:
tunefs -m 1 /dev/rdsk/c1t3d0s0


(7)
可以用prtvtoc 命令把磁盤(pán)的VTOC保存到一個(gè)文件中:
例如: prtvtoc /dev/rdsk/c1t0d0s2 > /vtoc/c1t0d0

可以把prtvtoc命令的輸出內(nèi)容導(dǎo)入到另外一塊硬盤(pán)中去:

例如: 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本地的所有文件系統(tǒng);
---------------------------------------------------



Using the fstyp Command來(lái)查看文件類(lèi)型:


# 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所有文件系統(tǒng):
#umountall
umount所有本地的文件系統(tǒng):
#umountall -l

----------------------------------
fuser command – Lists all of the processes that are accessing the file
system and kills them if necessary


----------------------------------------------

(14),
umountall狀態(tài)為busy的系統(tǒng):

以下四種情況,文件系統(tǒng)都會(huì)顯示: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命令來(lái)確認(rèn)掛接點(diǎn)有那些進(jìn)程在訪問(wèn),然后殺掉
(2) 用umount -f 強(qiáng)制umount;

(15),
--------------------------------------------------------------
volume management兩個(gè)重要文件:

/etc/vold.conf volume management配置文件,配置一些條目,如插入,彈出設(shè)備時(shí)的動(dòng)作,
那些設(shè)備被volume management管理,那些設(shè)備是不安全彈出等.

/etc/rmmount.conf rmmount命令的配置文件,rmmount是一個(gè)被volume management在光盤(pán)或
軟盤(pán)彈出時(shí)執(zhí)行的命令;


(16),
----------------------------------------------

volcheck檢測(cè)diskette和其它可移動(dòng)設(shè)備.

(17),
-------------------------------------------

停止卷管理服務(wù):
# /etc/init.d/volmgt stop 或 # pkill -9 vold
啟動(dòng)卷管理服務(wù):
# /etc/init.d/volmgt start


-----------------------------------------------
(18),

# pkginfo | more

顯示所有軟件包的詳細(xì)信息:
# pkginfo -l | more
顯示SUNWman軟件包的詳細(xì)信息:

# pkginfo -l SUNWman


顯示系統(tǒng)已安裝軟件包的數(shù)量:
# pkginfo | wc -l

(19),
顯示光盤(pán)相關(guān)目錄的軟件包:
pkginfo -d /cdrom/cdrom0/s0/Solaris_9/Product |more

提示:光盤(pán)CD1of2 中放了core and END USER software Groups

推薦閱讀