欢迎来到天天文库
浏览记录
ID:50830283
大小:38.00 KB
页数:9页
时间:2020-03-15
《solaris常用命令及简单解释.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、solaris常用命令及简单解释Debuggingtrussexecutable/*Tracedoingofgivencommand(usefuldebugging)*/truss-f-p/*Usingmultiplewindows,thiscanbeusedtotracesetuid/setgidprograms*/[BacktoTop]Arp,ethernettroubleshootingarp-a./*Showstheethernetaddressarptable*/arp-dmyho
2、st/*Deleteastaleethernetentryforhostmyhost*/DiskCommandsdu-k./*ReportsdiskspaceusedinKilobytes*/du-sk./*ReportsonlytotaldiskspaceusedinKilobytes*/du-ad/var
3、sort-nr/*Tellsyouhowbigthe/varfilesareinreverseorder*/fdformat-d-U/*Formatdiskette*//usr/bin/iostat-E/*Co
4、mmandtodisplaydrivesstatistics*//bin/mount-Fhsfs-oro/dev/sr0/cdrom/*MountanISO9660CDROM*/prtvtoc/dev/rdsk/c0t0d0s2/*Diskgeometryandpartitioninginfo*/quot-af/*Howmuchspaceisusedbyusersinkilobytes*/DriverParametersndd/dev/ip?/*ShowsIPvariablesinthekernel*/ndd/de
5、v/ipip_forwarding/*Tellsyouifforwardingison(=1)*/ndd-set/dev/ipip_forwarding1/*EnablesIPforwardingbetweeninterfaces*/FileManipulationdos2unix
6、-ascii/*ConvertsDOSfileformatstoUnix*/split/*Splitfilesintopieces*/[vi]:%s/existing/new/g/*SearchandReplacete
7、xtinvi*/[vi]:setnu/*Setlinenumbersinvi*/[vi]:setts=[num]/*Settabstopsinvi*/FileSystemcat/dev/null>filename/*Zero'soutthefilewithoutbreakingpipe*/ddif=/dev/rdsk/...of=/dev/rdsk/...bs=4096/*Makeamirrorimageofyourbootdisk*/df-k
8、grepdg
9、awk'{print$6}'
10、xargs-n1umount
11、/*Unmountallfilesystemsindiskgroupdg*/fsck-Fufs/dev/rdsk/c0t0d0s0/*CheckaUFSfilesystemonc0t0d0s0*/fsck-Fufs-y/dev/rdsk/c0t0d0s0/*Checkansweringyestoallquestions*/fsck-Fufs-ob=97472/dev/rdsk/c0t0d0s0/*Checkusinganalternatesuperblock*/gzip-dcfile1.tar.gz
12、tarxf-/*
13、Unpack.tar.gzfilesinplace*/ls-la
14、awk'{print$5,"",$9}'
15、sort-rn/*Filesizesofcurrentdirectory*/mount-fpcfs/dev/dsk/c0d0p1/export/dos/*MountDOSfdiskpartitionfromSolaris*/mount-Fufs-orw,remount//*Usedtoremountroottomakeitwriteable*/mount-oremount,logging/spare/*Re-m
16、ounttherofilesystemrwandturnonufslogging*/tarcvffilename.tar/*Createatape(tar)archive*/tarxvffilename.tar/*Extractatape(tar)archive*/tarcf-.
17、(cd/newdir;tarxf-)/*Recursivelyc
此文档下载收益归作者所有