Directory Mappings

Root filesystem

Linux (Red Hat)
/ {/dev/sda1}

SOLARIS
/ {/dev/vx/dsk/rootvol} /export/home /dev/vx/dsk/home} /tmp /dev/vx/dsk/swapvol} /usr /var

Home Directory

User Accounts
Password files Groups file aximum ! of user "D *llow/De+y remote logi+ 3ser +o4ody5s id ! Group +o4ody5s id ! Recover root password

LINUX(RedHat)
/etc/passwd /etc/shadow /etc/group #$$%$ /etc/securetty {ttyp1} 66 66 li+ux / vi /etc/shadow

Solaris
/etc/passwd /etc/shadow /etc/group &1'(')%#'( /etc/default/logi+ {,-./-012/dev/co+sole} #7771 8 #$$%'9+o4ody': #777& 8 #$$%'9+ogroup: 4oot cdrom ;s mkdir /tmp/a mou+t /dev/c7t7d7s7 /tmp/a vi /tmp/a/etc/shadow useradd userdel logi+s usermod

,reate +ew user Delete user 0ist users odify user accou+t

useradd userdel usermod

General o!!ands
3+i<ue host "D *dmi+istrator Performa+ce mo+itor /ystem activity reporter =irtual emory statistics "/- statistics 1rror logs Physical R* /hared emory Process Data /pace /wap device /wap file type Display swap siBe *ctivate /wap

LINUX(RedHat)
hostid li+uxco+f top vmstat dmesg #' G> {?&@%@&'} sysctl ker+el@shmmax 677 > /dev/sda& partitio+ type )& free swapo+ ;a hostid admi+tool top sar vmstat iostat dmesg 1#A>

Solaris

/dev/vx/dsk/swapvol swap swap ;l swap ;a

".r 1(# {>/D} &$# %777 {/N/=} rsh /usr/li4/+etsvc/yp/yp4i+d Hosts "P addresses .scripts/ /etc/hosts /etc/+sswitch@co+f sysctl .v pty aximum ! of ptys Remote /hell NP/.ame service switch .o+figuratio+s /eco+dary "P *ddress 0ogi+ prompt /etc/sysco+fig/+etwork."/ service 4i+der rsh /s4i+/yp4i+d Syste! %iles ..etwork parameters Routi+g daemo+ .termi+als cd /dev @/ *M1D1= ."rinters Pri+ter Cueues /top 0P /tart 0P /u4mit pri+t Eo4s 0P statistics Remove pri+t Eo4s *dd pri+ter <ueue Remove Pri+ter <ueue ake default pri+ter LINUX /var/spool/lpd/lp/D /etc/i+it@d/lpd stop /etc/i+it@d/lpd start lpr lp< lprm pri+ttool Solaris /etc/lp/i+terfaces/D /usr/li4/lp/lpshut /usr/li4/lp/lpsched lp lpr lpstat ca+cel lprm lpadmi+ . .O/ .lie+t mou+ted directories LINUX(RedHat) /etc/exports /var/li4/+fs/xta4 Solaris /etc/dfs/dfsta4 /etc/dfs/shareta4 /etc/rmta4 .O/ exported .p p< lpadmi+ .a modpro4e ipJalias ifco+fig eth7K1 "P /etc/issue "+crease the ! of pseudo.1R L /etc/default/tel+etd {/etc/system} set ptJc+t 2 ! {/N/=} set +pty 2 ! {>/D} {/etc/iu@ap} ptsl 7 ! ldterm ttcompat halt 4oot .x p< lpadmi+ .d p< # "$I" .etwork "P co+figuratio+ LINUX(RedHat) Solaris /etc/host+ame@D /etc/i+et/D /etc/defaultrouter /etc/i+et/hosts /etc/+sswitch@co+f +dd /dev/GtcpFipH I i+@routed ifco+fig .a F grep +et routed ifco+fig .a ifco+fig hme7K1 "P up >*.

ax Oile /ystem & A> ax Oile /iBe ax ! Oile Descriptors & G> {$1&> 4lock siBe} )16& G> {)M> 4lock siBe} sysctl fs@file.dl vxdg rmdisk vxassist move vxdg i+it Disk 0a4el 0= . .max 1 A> )777 A> {vxfs} 1 A> & G> {2P&@$@1} #' M DIS&$L'M o!!ands Oilesystem ta4le Oree disk 4locks Device listi+g Disk i+formatio+ LINUX(RedHat) /etc/fsta4 df .l .ha+ge logical volume characteristics 0ist logical volume ake logical volume 1xte+d logical volume Reduce logical volume Remove logical volume Prepare 4oot volumes 1xte+d Oile system Reduce//plit mirrors erge mirrors vxdg deport vxdg import vxedit set vxpri+t .g rootdg vxdiskadd vxpri+t .l logical exte+ts logical volume volume group ext& vgdisplay .reate volume group Remove volume group =olume group availa4ility Restore volume group 1xports volume group "mports volume group =olume group listi+g .vl vxassist make vxassist growto vxassist shri+kto vxedit rm vx4ootsetup vxva mkfs .v pvcha+ge pvcreate pvdisplay vgreduce pvmove vgcreate vgremove vgcha+ge vgcfgrestore vgexport vgimport vgsca+ lvcha+ge lvdisplay lvcreate lvexte+d lvreduce lvremove lilo resiBe&fs lvsplit lvmerge Qour+al Oilesystem type Default volume group Display volume group odify physical volume Prepare physical disk 0ist physical volume Remove disk from volume group ove logical volumes to a+other physical volumes .o+cepts cat /proc/scsi/scsi7/sda/model fdisk .d c!t!d! format?curre+t format?i+<uiry prtvtoc su4 disk =olume Plex disk group vxfs /dev/vx/dsk/rootdg vxpri+t .k cat /proc/devices SOLARIS /etc/vfsta4 df .k sysdef format .

i % .as ..rash utility Arace /ystem .a cd /usr/src/li+ux SOLARIS /s4i+/i+it@d /ker+el/ge+u+ix sysdef .&@&@1# mki+itrd /4oot/i+itrd.kv crash truss u+ame .+S ok 4oot .i vi /etc/system re4oot make mrproper make me+uco+fig make dep make clea+ make 4Bimage make i+stall make modules make modulesJi+stall cp arch/i%)#/4oot/4B"mage /4oot/vmli+uB.r who .reate mirrors *dd mirrors .ore dump files >oot si+gle user ai+te+a+ce mode lsmod i+smod rmmod +etco+f free getco+f R-RDJ>"A lcrash strace u+ame .u+co+fig prtco+f isai+fo ." #' tar cvf /dev/rst7 / tar xvf /dev/rst7 vxassist mirror vxassist make vol 177m4 layout2raid$ ufsdump ufsrestore MIS /tartup script Mer+el Mer+el Parameters Reco+figure the ker+el LINUX(RedHat) /etc/rc@d/rc /4oot/vmli+uB sysctl .r /var/crash/Su+ame .alls achi+e model -/ 0evel Ru+ 0evel .m u+ame . &@&@1#@img &@&@1# vi /etc/lilo@co+f lilo 0ist modules 0oad module 3+load module "+itialiBe system Physical R* Mer+el >its .imp u+ame .s ok 4oot .reate striped volumes >ackup Restore lvcreate .r ru+level li+ux / modi+fo modload modu+load sys.

"+terrupt Mey Retur+ to co+sole AimeBo+e a+ageme+t .<f file /var/li4/rpm pkgadd pkgrm pkgi+fo SOLARIS pkgi+fo .e package rpm .AP Daemo+ /top.all /opt//3.Rvts/4i+/su+vts /dev/c!t!d7s& /dev/dsk/c!t#d7s& hsfs /dev/rmt/7 /dev/rmt/7+ /dev/diskette /dev/ *M1D1= Remove device Device drivers .l package patchadd .DR.p path /var/sadm De*ices Devices "+stall devices for attached peripherals /dev LINUX(RedHat) /devices SOLARIS drvco+fig devli+ks disks tapes ports remJdrv prtco+f .DR.P3 0ist Aermi+al Diag+ostics cat /proc/cpui+fo Rhole Disk .1 /etc/default/i+it /etc/i+et/+tp@co+f /etc/i+it@d/x+tpd So(t)are "+stall /oftware 3+i+stall software 0ist i+stalled software =erify i+stalled software 0ist all files 0ist i+stalled patches Package ow+er /R Directory LINUX(RedHat) rpm .mS/ s4i+/prtdiag ok test.i pkgi+fo .i package rpm .file type Rewi+di+g tape drive .l .rewi+di+g tape drive Oloppy drive /dev/sda /dev/cdrom iso6##7 /dev/rst7 /dev/+rst7 /dev/fd7 { c 6 7} { c 6 1&) } .v pmadm .<a rpm .l /usr/platform/Su+ame .D psri+fo .o+.<l package rpm .* ok go /etc/sysco+fig/clock /etc/+tp@co+f /etc/rc@d/i+it@d/x+tpd /etc/A" 1T-.= package rpm .p pkgchk .p pkgchk .

Sign up to vote on this title
UsefulNot useful