Inizio  >  Docs  >  Linux  >  How to  >  Unix Guide  
Unix GuideUnix Guide

Index

Unix Guide

http://www.unixguide.net/unixguide.shtml


<tt> © 2000 UNIXguide.net, All Rights Reserved. Hermelito Go  (Last Update:  Wednesday, 07-Dec-2005 11:11:32 PST )</tt>

<tt>Directory Mappings </tt>

<tt>AIX</tt>

<tt>FreeBSD</tt>

<tt>HP-UX</tt>

<tt>LINUX(RedHat)</tt>

<tt>SOLARIS</tt>

<tt>Tru64</tt>

<tt>Root filesystem</tt>

<tt>/              {/dev/hd4}</tt>

/<tt>       {/dev/ad0s1a}</tt>

<tt>/          {/dev/vg00/lvol1}</tt>

<tt>/                  {/dev/sda1}</tt>

<tt>/  {/dev/vx/dsk/rootvol}</tt>

<tt>/     {/dev/rz0a}</tt>

<tt>Home Directory</tt>

<tt>/home          {/dev/hd1}</tt>

 

<tt>/home      {/dev/vg00/lvol4}</tt>

<tt> </tt>

<tt>/export/home</tt>
<tt>       /dev/vx/dsk/home}</tt>

<tt> </tt>

<tt> </tt>

<tt>/tmp           {/dev/hd3}</tt>

 

<tt>/tmp       {/dev/vg00/lvol6}</tt>

<tt> </tt>

<tt>/tmp </tt>
<tt>    /dev/vx/dsk/swapvol}</tt>

<tt> </tt>

<tt> </tt>

<tt>/usr           {/dev/hd2}</tt>

/<tt>usr    {/dev/ad0s1f}</tt>

<tt>/usr       {/dev/vg00/lvol7}</tt>

<tt> </tt>

<tt>/usr </tt>

<tt>/usr    {/dev/rz0g}</tt>

<tt> </tt>

<tt>/var        {/dev/hd9var}</tt>

/<tt>var    {/dev/ad0s1e}</tt>

<tt>/var       {/dev/vg00/lvol8}</tt>

<tt> </tt>

<tt>/var</tt>

<tt> </tt>

<tt>Sample configuration files</tt>

<tt>-</tt>

 

<tt>/usr/newconfig</tt>

<tt> </tt>

<tt> </tt>

<tt> </tt>

<tt>User Accounts</tt>

<tt>AIX</tt>

<tt>FreeBSD</tt>

<tt>HP-UX</tt>

<tt>LINUX(RedHat)</tt>

<tt>Solaris</tt>

<tt>Tru64</tt>

<tt>Password files</tt>

<tt>/etc/passwd</tt>
<tt>/etc/security/passwd</tt>

/<tt>etc/passwd</tt>
<tt>/etc/master.passwd</tt>

<tt>/etc/passwd</tt>
<tt>/tcb/files/auth/r/root</tt>

<tt>/etc/passwd</tt>
<tt>/etc/shadow</tt>

<tt>/etc/passwd </tt>
<tt>/etc/shadow</tt>

<tt>/etc/passwd </tt>

<tt>Groups file</tt>

<tt>/etc/group</tt>
<tt>/etc/security/group</tt>

<tt>/etc/group</tt>

<tt>/etc/group</tt>
<tt>/etc/logingroup</tt>

<tt>/etc/group</tt>

<tt>/etc/group</tt>

<tt>/etc/group</tt>

<tt>Maximum # of user ID</tt>

<tt>4294967295</tt>

<tt>65535</tt>

<tt>2147483647</tt>

<tt>65535</tt>

<tt>2147483647</tt>

<tt>65535</tt>

<tt>Allow/Deny remote login</tt>

<tt>/etc/security/user</tt>
<tt>{rlogin=true}</tt>

/<tt>etc/ttys </tt>
<tt>{secure}</tt>

<tt>/etc/securetty</tt>
<tt>{console}</tt>

<tt>/etc/securetty</tt>
<tt>{ttyp1}</tt>

<tt>/etc/default/login</tt>
<tt>{CONSOLE=/dev/console}</tt>

<tt>/etc/securettys</tt>
<tt>{ttyp1}</tt>

<tt>User nobody's id #</tt>

<tt>4294967294</tt>

<tt>65534</tt>

<tt>-2</tt>

<tt>99</tt>

<tt>60001 & 65534(nobody4)</tt>

<tt>65534</tt>

<tt>Group nobody's id #</tt>

<tt>4294967294</tt>

<tt>65534</tt>

<tt>-2(nogroup)</tt>

<tt>99</tt>

<tt>60002 & 65534(nogroup)</tt>

<tt>65534</tt>

<tt>Recover root password</tt>

<tt>boot from CD/Tape</tt>
<tt>Installation/Maintenance</tt>
<tt>Start Limited Shell</tt>
<tt>getrootfs hdisk0</tt>
<tt>vi /etc/security/passwd</tt>

<tt>ok boot -s</tt>
<tt>passwd root</tt>

<tt>>boot
Interact with IPL ? Y
ISL>hpux -iS</tt>
<tt>passwd root</tt>

<tt>{lilo}
control-x
linux S
passwd root

{grub}
c
kernel vmlinuz-2.4.9-13 single   ro root=/dev/hda8
initrd /initrd-2.4.9-13.img
boot
passwd root</tt>

<tt>boot cdrom -s</tt>
<tt>mkdir /tmp/a</tt>
<tt>mount /dev/c0t0d0s0 /tmp/a</tt>
<tt>vi /tmp/a/etc/shadow</tt>

<tt>press the HALT Button or (Control-P)</tt>
<tt>>>>boot -fl s</tt>
<tt>lsmbstartup</tt>
<tt>/sbin/bcheckrc</tt>
<tt>passwd root</tt>

<tt>Create new user</tt>

<tt>mkuser</tt>

<tt>adduser</tt>

<tt>useradd</tt>

<tt>useradd</tt>

<tt>useradd</tt>

<tt>useradd</tt>

<tt>Delete user</tt>

<tt>rmuser</tt>

<tt>rmuser</tt>

<tt>userdel</tt>

<tt>userdel</tt>

<tt>userdel</tt>

<tt>userdel</tt>

<tt>List users</tt>

<tt>lsuser -f ALL</tt>

 

<tt>logins</tt>

<tt> </tt>

<tt>logins</tt>

 

<tt>Modify user account</tt>

<tt>chuser -a</tt>

 

<tt>usermod</tt>

<tt>usermod</tt>

<tt>usermod</tt>

<tt>usermod</tt>

<tt>General Commands</tt>

<tt>AIX</tt>

<tt>FreeBSD</tt>

<tt>HP-UX</tt>

<tt>LINUX(RedHat)</tt>

<tt>Solaris</tt>

<tt>Tru64</tt>

<tt>Unique host ID</tt>

<tt>hostid</tt>

 

<tt>uname -i</tt>

<tt>hostid</tt>

<tt>hostid</tt>

<tt>hostid</tt>

<tt>Administrator</tt>

<tt>smit</tt>

 

<tt>sam</tt>

<tt>linuxconf</tt>

<tt>admintool</tt>

<tt>sysman</tt>

<tt>Performance monitor</tt>

<tt>top</tt>
<tt>monitor</tt>

<tt>top</tt>

<tt>top</tt>
<tt>glance</tt>

<tt>top</tt>

<tt>top</tt>

<tt>top</tt>

<tt>System activity reporter</tt>

<tt>sar</tt>

<tt>sa</tt>

<tt>sar</tt>

<tt>sar {sysstat}</tt>

<tt>sar</tt>

<tt>/usr/opt/svr4/bin/sar</tt>

<tt>Virtual Memory statistics</tt>

<tt>vmstat</tt>

<tt>vmstat</tt>

<tt>vmstat</tt>

<tt>vmstat</tt>

<tt>vmstat</tt>

<tt>vmstat</tt>

<tt>I/O statistics</tt>

<tt>iostat</tt>

<tt>iostat</tt>

<tt>iostat</tt>

<tt>iostat {sysstat}</tt>

<tt>iostat</tt>

<tt>iostat</tt>

<tt>Error logs</tt>

<tt>alog -o -t boot</tt>
<tt>errpt</tt>

<tt>dmesg</tt>

<tt>dmesg</tt>

<tt>dmesg </tt>

<tt>dmesg</tt>

<tt>uerf -R -o full</tt>

<tt>Physical RAM</tt>

<tt>1TB</tt>

 

<tt>4TB</tt>

<tt>64 GB {>2.3.24}</tt>

<tt>16TB</tt>

<tt>4TB</tt>

<tt>Shared Memory</tt>

<tt>2.75GB</tt>

 

<tt>8TB</tt>

<tt>sysctl kernel.shmmax</tt>

<tt> </tt>

<tt> </tt>

<tt>Process Data Space</tt>

<tt>2GB</tt>

 

<tt>4GB</tt>

<tt>900 MB</tt>

<tt> </tt>

<tt> </tt>

<tt>Swap device</tt>

<tt>/dev/hd6</tt>

/<tt>dev/ad0s1b</tt>

<tt>/dev/vg00/lvol2</tt>

<tt>/dev/sda2</tt>

<tt>/dev/vx/dsk/swapvol</tt>

<tt>/dev/rz0b</tt>

<tt>Swap file type</tt>

<tt>/etc/swapspaces</tt>

<tt>swap</tt>

<tt>swap</tt>

<tt>partition type 82 </tt>

<tt>swap</tt>

<tt>raw</tt>

<tt>Display swap size</tt>

<tt>lsps -a</tt>

<tt>swapinfo</tt>

<tt>swapinfo -a</tt>

<tt>free</tt>

<tt>swap -l</tt>

<tt>swapon -s</tt>

<tt>Activate Swap</tt>

<tt>swapon -a</tt>

<tt>swapon -a</tt>

<tt>swapon -a</tt>

<tt>swapon -a</tt>

<tt>swap -a</tt>

<tt>swapon -a</tt>

<tt>Printers</tt>

<tt>AIX</tt>

<tt>FreeBSD</tt>

<tt>HP-UX</tt>

<tt>LINUX</tt>

<tt>Solaris</tt>

<tt>Tru64</tt>

<tt>Printer Queues</tt>

<tt>/etc/qconfig</tt>

<tt>/var/spool/print</tt>

<tt>/etc/lp/interface/*</tt>

<tt>/var/spool/lpd/lp/*</tt>

<tt>/etc/lp/interfaces/*</tt>

<tt>/usr/spool/lpd</tt>

<tt>Stop LP </tt>

<tt>stopsrc -s lpd</tt>

 

<tt>lpshut</tt>

<tt>/etc/init.d/lpd stop</tt>

<tt>/usr/lib/lp/lpshut</tt>

<tt>/sbin/init.d/lpd stop</tt>

<tt>Start LP</tt>

<tt>startsrc -s lpd</tt>

<tt>lpd</tt>

<tt>lpsched</tt>

<tt>/etc/init.d/lpd start</tt>

<tt>/usr/lib/lp/lpsched</tt>

<tt>/sbin/init.d/lpd start</tt>

<tt>Submit print jobs</tt>

<tt>enq</tt>
<tt>lp</tt>
<tt>lpr</tt>
<tt>qprt</tt>

<tt>lp</tt>

<tt>lp</tt>

<tt>lpr</tt>

<tt>lp</tt>
<tt>lpr</tt>

<tt>lp</tt>
<tt>lpr</tt>

<tt>LP statistics</tt>

<tt>enq -A</tt>
<tt>lpq</tt>
<tt>lpstat</tt>
<tt>qchk</tt>

<tt>lpq</tt>

<tt>lpstat</tt>

<tt>lpq</tt>

<tt>lpstat</tt>

<tt>lpstat</tt>

<tt>Remove print jobs</tt>

<tt>cancel</tt>
<tt>lprm</tt>
<tt>qcan</tt>
<tt>enq -x</tt>

<tt>cancel</tt>
<tt>lprm</tt>

<tt>cancel</tt>

<tt>lprm</tt>

<tt>cancel</tt>
<tt>lprm</tt>

<tt>cancel</tt>
<tt>lprm</tt>

<tt>Add printer queue</tt>

<tt>smit mkpq</tt>

 

<tt>lpadmin -p pq</tt>

<tt>printtool</tt>

<tt>lpadmin -p pq</tt>

<tt>lprsetup</tt>

<tt>Remove Printer queue</tt>

<tt>smit rmpq</tt>

 

<tt>lpadmin -x pq</tt>

<tt> </tt>

<tt>lpadmin -x pq</tt>

<tt>lprsetup</tt>

<tt>Make default printer</tt>

<tt>export LPDEST="pq"</tt>

 

<tt>lpadmin -d pq</tt>

<tt> </tt>

<tt>lpadmin -d pq</tt>

<tt>export PRINTER="lp"</tt>

<tt>TCP/IP</tt>

<tt>AIX</tt>

 

<tt>HP-UX</tt>

<tt>LINUX(RedHat)</tt>

<tt>Solaris</tt>

<tt>Tru64</tt>

<tt>Network IP configuration</tt>

<tt>lsattr -E -l inet0</tt>

<tt>/etc/rc.conf</tt>

<tt>/etc/rc.config.d/netconf</tt>

<tt>/etc/sysconfig/network-scripts/ </tt>

<tt>/etc/hostname.*</tt>
<tt>/etc/inet/*</tt>
<tt>/etc/defaultrouter</tt>

<tt>/etc/rc.config</tt>

<tt>Hosts IP addresses</tt>

<tt>/etc/hosts</tt>

<tt>/etc/hosts</tt>

<tt>/etc/hosts</tt>

<tt>/etc/hosts</tt>

<tt>/etc/inet/hosts</tt>

<tt>/etc/hosts</tt>

<tt>Name service switch</tt>

<tt>/etc/netsvc.conf</tt>

<tt>/etc/host.conf</tt>

<tt>/etc/nsswitch.conf</tt>

<tt>/etc/nsswitch.conf</tt>

<tt>/etc/nsswitch.conf</tt>

<tt>/etc/svc.conf</tt>

<tt>Network parameters</tt>

<tt>no -a</tt>

<tt>sysctl</tt>

<tt>ndd -h</tt>

<tt>sysctl -a | grep net</tt>

<tt>ndd /dev/[tcp|ip] ?</tt>

<tt> </tt>

<tt>Routing daemon</tt>

<tt>gated</tt>

<tt>routed</tt>

<tt>gated</tt>

<tt>routed</tt>

<tt>in.routed</tt>

<tt>routed</tt>

<tt>NIC Configurations</tt>

<tt>ifconfig -a</tt>

<tt>ifconfig -a</tt>

<tt>lanscan -v</tt>

<tt>ifconfig -a</tt>

<tt>ifconfig -a</tt>

<tt>ifconfig -a</tt>

<tt>Secondary IP Address</tt>

<tt>ifconfig en0 alias IP </tt>

<tt>ifconfig xl0 alias IP</tt>

<tt>ifconfig lan0:1 IP </tt>

<tt>modprobe ip_alias</tt>
<tt>ifconfig eth0:1 IP</tt>

<tt>ifconfig hme0:1 IP up</tt>

<tt>ifconfig ln0 alias</tt>

<tt>Login prompt</tt>

<tt>HERALD @</tt>
<tt>/etc/security/login.cfg </tt>

 

<tt>telnetd -b /etc/issue </tt>

<tt>/etc/issue</tt>

<tt>BANNER @</tt>
<tt>/etc/default/telnetd</tt>

<tt>/etc/issue</tt>

<tt>Increase the # of pseudo-terminals</tt>

<tt>odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" |</tt>
<tt>odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt</tt>

<tt>chdev -l pty0 -anum=256 -P</tt>
<tt>reboot</tt>

 

<tt>rebuild your kernel with these new values NPTY=# </tt>
<tt>NSTRPY=#</tt>

<tt>reboot</tt>

<tt>insf -d ptys -n #</tt>
<tt>insf -d ptym -n #</tt>
<tt>insf -d pts -s # -e -v</tt>
<tt> </tt>

<tt>cd /dev</tt>
<tt>./MAKEDEV -v pty</tt>

<tt>{/etc/system}</tt>
<tt>set pt_cnt = #   {SYSV}</tt>
<tt>set npty = #      {BSD}</tt>

<tt>{/etc/iu.ap}</tt>
<tt>ptsl 0 # ldterm ttcompat</tt>

<tt>halt</tt>
<tt>boot -r</tt>

<tt>cd /dev</tt>
<tt>./MAKEDEV PTY_1</tt>

<tt>Maximum # of ptys</tt>

<tt>512</tt>

 

<tt>{MAXUSERS}</tt>

<tt>256</tt>

<tt>176                {BSD}</tt>
<tt>3000              {SYSV}</tt>

<tt>8192</tt>

<tt>Remote Shell</tt>

<tt>remsh</tt>
<tt>rsh</tt>

<tt>rsh</tt>

<tt>remsh</tt>

<tt>rsh</tt>

<tt>rsh</tt>

<tt>rsh</tt>

<tt>YP/NIS service binder</tt>

<tt>/usr/lib/netsvc/yp/ypbind </tt>

<tt>/usr/sbin/ypbind</tt>

<tt>/usr/lib/netsvc/yp/ypbind </tt>

<tt>/sbin/ypbind</tt>

<tt>/usr/lib/netsvc/yp/ypbind</tt>

<tt>/usr/sbin/ypbind</tt>

<tt>System Files</tt>

<tt>AIX</tt>

<tt>FreeBSD</tt>

<tt>HP-UX</tt>

<tt>LINUX(RedHat)</tt>

<tt>Solaris</tt>

<tt>Tru64</tt>

<tt>NFS exported</tt>

<tt>/etc/exports</tt>

<tt>/etc/exports</tt>

<tt>/etc/exports</tt>

<tt>/etc/exports</tt>

<tt>/etc/dfs/dfstab</tt>
<tt>/etc/dfs/sharetab</tt>

<tt>/etc/exports</tt>

<tt>NFS Client mounted directories</tt>

<tt>/etc/xtab</tt>

 

<tt>/etc/xtab</tt>

<tt>/var/lib/nfs/xtab</tt>

<tt>/etc/rmtab</tt>

<tt>/var/adm/mountdtab</tt>

<tt>Max File System</tt>

<tt>128 GB</tt>

 

<tt>128 GB</tt>

<tt>2 TB </tt>

<tt>1 TB
8000 TB {vxfs}</tt>

<tt>128 GB {<= 3.2G}</tt>
<tt>512 GB {>= 4.0}</tt>
<tt>16 TB {advfs}</tt>

<tt>Max File Size</tt>

<tt>64 GB</tt>

 

<tt>128 GB</tt>

<tt>2 GB     {512B block size} </tt>
<tt>8192 GB  {8KB block size} </tt>

<tt>1 TB
2 GB {=<2.5.1}</tt>

<tt>128 GB {<= 3.2G}</tt>
<tt>512 GB {>= 4.0}</tt>
<tt>16 TB {advfs}</tt>

<tt>Max # File Descriptors</tt>

<tt>64 K</tt>

 

<tt>60~ K</tt>

<tt>sysctl fs.file-max</tt>

<tt>64 K</tt>

<tt>64 K</tt>

<tt>DISK/LVM Commands</tt>

<tt>AIX</tt>

<tt>FreeBSD</tt>

<tt>HP-UX:Disk &Filesystem</tt>

<tt>LINUX(RedHat)</tt>

<tt>SOLARIS</tt>

<tt>Tru64</tt>

<tt>Filesystem table</tt>

<tt>/etc/filesystems</tt>

<tt>/etc/fstab</tt>

<tt>/etc/fstab</tt>

<tt>/etc/fstab</tt>

<tt>/etc/vfstab</tt>

<tt>/etc/fstab</tt>

<tt>Free disk blocks</tt>

<tt>df -k</tt>

<tt>df -k</tt>

<tt>bdf</tt>

<tt>df -k</tt>

<tt>df -k</tt>

<tt>df -k</tt>

<tt>Device listing</tt>

<tt>lsdev -C</tt>

 

<tt>/sbin/ioscan</tt>

<tt>cat /proc/devices</tt>

<tt>sysdef</tt>

<tt> </tt>

<tt>Disk information</tt>

<tt>bootinfo -s hdisk# </tt>

<tt>fdisk -v ad0</tt>

<tt>diskinfo /dev/rdsk/c#t#d#</tt>

<tt>cat /proc/scsi/scsi0/sda/model</tt>

<tt>format -d c#t#d#</tt>
<tt>format>current</tt>
<tt>format>inquiry</tt>

<tt>file /dev/rrz0c</tt>

<tt>Disk Label</tt>

<tt>lspv -l hdisk#</tt>

<tt>disklabel ad0</tt>

<tt>pvdisplay -v /dev/dsk/C#t#d#</tt>

<tt>fdisk -l</tt>

<tt>prtvtoc</tt>

<tt>disklabel -p rz0</tt>

<tt>LVM Concepts</tt>

<tt>Partition </tt>

<tt>sub disk</tt>

<tt>logical extents</tt>

<tt>logical extents</tt>

<tt>sub disk</tt>

<tt>sub disk</tt>

<tt> </tt>

<tt>Volume</tt>

<tt>Volume</tt>

<tt>logical volume</tt>

<tt>logical volume</tt>

<tt>Volume</tt>

<tt>Volume</tt>

<tt> </tt>

<tt> </tt>

<tt>Plex</tt>

<tt> </tt>

<tt> </tt>

<tt>Plex</tt>

<tt>Plex</tt>

<tt> </tt>

<tt>Volume group</tt>

 

<tt>volume group</tt>

<tt>volume group</tt>

<tt>disk group</tt>

<tt>disk group</tt>

<tt>Journal Filesystem type</tt>

<tt>jfs</tt>

 

<tt>vxfs</tt>

<tt>ext3
reiserfs</tt>

<tt>vxfs</tt>

<tt>advfs</tt>

<tt>Default volume group</tt>

<tt>/dev/rootvg</tt>

 

<tt>/dev/vg00</tt>

<tt> </tt>

<tt>/dev/vx/dsk/rootdg</tt>

<tt>/dev/vol/rootdg</tt>

<tt>Display volume group</tt>

<tt>lsvg -l rootvg</tt>

 

<tt>vgdisplay -v vg00</tt>

<tt>vgdisplay -v</tt>

<tt>vxprint -l -g rootdg</tt>

<tt>volprint -l -g rootdg</tt>

<tt>Modify physical volume</tt>

<tt>chpv</tt>

 

<tt>pvchange</tt>

<tt>pvchange</tt>

<tt> </tt>

<tt> </tt>

<tt>Prepare physical disk</tt>

<tt>mkdev -c disk -l hdisk#</tt>

 

<tt>pvcreate</tt>

<tt>pvcreate</tt>

<tt>vxdiskadd</tt>

<tt>voldiskadd</tt>

<tt>List physical volume</tt>

<tt>lspv</tt>

<tt>vinum ld </tt>

<tt>pvdisplay</tt>

<tt>pvdisplay</tt>

<tt>vxprint -dl</tt>

<tt>volprint -dl</tt>

<tt>Remove disk from volume group</tt>

<tt>reducevg</tt>

 

<tt>vgreduce</tt>

<tt>vgreduce</tt>

<tt>vxdg rmdisk</tt>

<tt>voldg rmdisk</tt>

<tt>Move logical volumes to another physical volumes</tt>

<tt>migratepv</tt>

<tt>vinum move -f drive object</tt>

<tt>pvmove</tt>

<tt>pvmove</tt>

<tt>vxassist move</tt>

<tt>volassist move</tt>

<tt>Create volume group</tt>

<tt>mkvg</tt>

 

<tt>vgcreate</tt>

<tt>vgcreate</tt>

<tt>vxdg init</tt>

<tt>voldg init</tt>

<tt>Remove volume group</tt>

<tt> </tt>

 

<tt>vgremove</tt>

<tt>vgremove</tt>

<tt> </tt>

<tt> </tt>

<tt>Volume group availability</tt>

<tt>chvg</tt>
<tt>varyonvg</tt>
<tt>varyoffvg</tt>

 

<tt>vgchange</tt>

<tt>vgchange</tt>

<tt> </tt>

<tt> </tt>

<tt>Restore volume group</tt>

<tt> </tt>

 

<tt>vgcfgrestore</tt>

<tt>vgcfgrestore</tt>

<tt> </tt>

<tt> </tt>

<tt>Exports volume group</tt>

<tt>exportvg</tt>

 

<tt>vgexport</tt>

<tt>vgexport</tt>

<tt>vxdg deport</tt>

<tt>voldg deport</tt>

<tt>Imports volume group</tt>

<tt>importvg</tt>

 

<tt>vgimport</tt>

<tt>vgimport</tt>

<tt>vxdg import</tt>

<tt>voldg import</tt>

<tt>Volume group listing</tt>

<tt>lsvg</tt>

 

<tt>vgscan</tt>

<tt>vgscan</tt>

<tt> </tt>

<tt> </tt>

<tt>Change logical volume characteristics </tt>

<tt>chlv</tt>

 

<tt>lvchange</tt>

<tt>lvchange </tt>

<tt>vxedit set</tt>

<tt>voledit set</tt>

<tt>List logical volume</tt>

<tt>lslv</tt>

<tt>vinum lv</tt>

<tt>lvdisplay</tt>

<tt>lvdisplay</tt>

<tt>vxprint -vl</tt>

<tt>volprint -vl</tt>

<tt>Make logical volume</tt>

<tt>mklv</tt>

 

<tt>lvcreate</tt>

<tt>lvcreate</tt>

<tt>vxassist make</tt>

<tt>volassist make</tt>

<tt>Extend logical volume</tt>

<tt>extendlv</tt>

 

<tt>lvextend</tt>

<tt>lvextend</tt>

<tt>vxassist growto</tt>

<tt>volassist growto</tt>

<tt>Reduce logical volume</tt>

<tt>AIX reduce LV</tt>

 

<tt>lvreduce</tt>

<tt>lvreduce</tt>

<tt>vxassist shrinkto</tt>

<tt>volassist shrinkto</tt>

<tt>Remove logical volume</tt>

<tt>rmlv</tt>

<tt>vinum rm vol</tt>

<tt>lvremove</tt>

<tt>lvremove</tt>

<tt>vxedit rm</tt>

<tt>voledit -g rootdg -rf rm vol1</tt>

<tt>Prepare boot volumes</tt>

<tt>bootlist -m normal</tt>

 

<tt>lvlnboot</tt>

<tt>lilo</tt>

<tt>vxbootsetup</tt>

<tt> </tt>

<tt>Remove boot volumes</tt>

<tt> </tt>

 

<tt>lvrmboot</tt>

<tt> </tt>

<tt> </tt>

<tt> </tt>

<tt>Extend File system</tt>

<tt>chfs -a size=# /mt</tt>

 

<tt>extendfs /dev/vg00/lvol8</tt>
<tt>fsadm -F vxfs -b {LE * 1024} /mt</tt>

<tt>resize2fs
resize_reiserfs</tt>

<tt>vxva</tt>
<tt>mkfs -M</tt>

<tt> </tt>

<tt>Reduce/Split mirrors</tt>

<tt>rmlvcopy</tt>

 

<tt>lvsplit</tt>

<tt>lvsplit</tt>

<tt> </tt>

<tt> </tt>

<tt>Merge mirrors</tt>

<tt> </tt>

 

<tt>lvmerge</tt>

<tt>lvmerge</tt>

<tt> </tt>

<tt> </tt>

<tt>Create mirrors</tt>

<tt>mklv -c 2</tt>

<tt>vinum mirror drive</tt>

<tt>lvcreate -m 1</tt>

 

<tt>vxassist mirror</tt>

<tt>volassist make vol 100mb mirror=true</tt>

<tt>Add mirrors</tt>

<tt>mklvcopy lv 2 </tt>

 

<tt>lvextend -m 1</tt>

<tt> </tt>

<tt> </tt>

<tt> </tt>

<tt>Create striped volumes</tt>

<tt>mklv -u 3 -S 64K</tt>

<tt>vinum stripe drive</tt>

<tt>lvcreate -i 3 -I 64</tt>

<tt>lvcreate -i 3 -I 64</tt>

<tt>vxassist make vol 100mb layout=raid5</tt>

<tt>volassist make vol 100mb layout=stripe</tt>

<tt>System recovery tape</tt>

<tt>mksysb -i /dev/rmt0</tt>

 

<tt>/opt/ignite/bin/make_recovery</tt>

<tt> </tt>

 

<tt>/usr/sys/bin/btcreate</tt>

<tt>Backup</tt>

<tt>savevg -i rootvg</tt>

<tt>vinum saveconfig</tt>

<tt>fbackup</tt>

<tt>tar cvf /dev/rst0 /</tt>

<tt>ufsdump</tt>

<tt>vdump</tt>

<tt>Restore</tt>

<tt>restvg </tt>

 

<tt>frecover</tt>

<tt>tar xvf /dev/rst0 </tt>

<tt>ufsrestore</tt>

<tt>vrestore</tt>

<tt>MISC</tt>

<tt>AIX</tt>

<tt>FreeBSD</tt>

<tt>HP-UX</tt>

<tt>LINUX(RedHat)</tt>

<tt>SOLARIS</tt>

<tt>Tru64</tt>

<tt>Startup script</tt>

<tt>/etc/rc</tt>

/<tt>etc/rc</tt>

<tt>/sbin/rc</tt>

<tt>/etc/rc.d/rc</tt>

<tt>/etc/init.d</tt>

<tt>/sbin/init.d</tt>

<tt>Kernel</tt>

<tt>/usr/lib/boot/unix_up</tt>

<tt>/kernel</tt>

<tt>/stand/vmunix</tt>

<tt>/boot/vmlinuz</tt>

<tt>/kernel/genunix</tt>

<tt>/vmunix</tt>

<tt>Kernel Parameters</tt>

<tt>lsattr -E -l sys0</tt>

<tt>sysctl -a</tt>

<tt>sysdef
kmtune
kmsystem</tt>

<tt>sysctl -a</tt>

<tt>sysdef -i</tt>

<tt>sysconfig</tt>
<tt>dxkerneltuner</tt>

<tt>Reconfigure the kernel</tt>


<tt>chdev -l sys0 -a </tt>

<tt>cd /sys/i386/conf</tt>
<tt>vi KERNEL</tt>
<tt>config KERNEL</tt>
<tt>cd ../../compile/KERNEL</tt>
<tt>make depend</tt>
<tt>make</tt>
<tt>make install</tt>

<tt>cd /stand/build</tt>
<tt>/usr/lbin/sysadm/system_prep -v -s system</tt>
<tt>vi system</tt>
<tt>mk_kernel -s system</tt>
<tt>cd /stand</tt>
<tt>mv system system.prev</tt>
<tt>mv vmunix vmunix.prev</tt>
<tt>mv dlkm dlkm.prev</tt>
<tt>mv /stand/build/system system</tt>
<tt>kmupdate /stand/build/vmunix_test</tt>

<tt>cd /usr/src/linux </tt>
make mrproper 
make menuconfig 
make dep 
make clean 
make bzImage
make install
make modules
make modules_install

cp arch/i386/boot/bzImage /boot/vmlinuz-2.2.16
mkinitrd /boot/initrd-2.2.16.img 2.2.16
vi /etc/lilo.conf
lilo

<tt>vi /etc/system</tt>
<tt>reboot</tt>

<tt>doconfig</tt>

<tt>List modules</tt>

<tt>genkex</tt>

<tt>kldstat</tt>

<tt>kmadmin -s</tt>

<tt>lsmod</tt>

<tt>modinfo</tt>

 

<tt>Load module</tt>

 

<tt>kldload</tt>

<tt>kmadmin -L</tt>

<tt>insmod</tt>

<tt>modload</tt>

 

<tt>Unload module</tt>

 

<tt>kldunload</tt>

<tt>kmadmin -U</tt>

<tt>rmmod</tt>

<tt>modunload</tt>

 

<tt>Initialize system</tt>

<tt>install_assist</tt>

<tt>/stand/sysinstall</tt>

<tt>set_parms initial</tt>

<tt>netconf</tt>

<tt>sys-unconfig</tt>

netsetup

<tt>Physical RAM</tt>

<tt>bootinfo -r</tt>

<tt>sysctl hw.physmem</tt>

<tt>grep -i Physical /var/adm/syslog/syslog.log</tt>

<tt>free</tt>

<tt>prtconf</tt>

<tt>uerf | grep memory</tt>

<tt>Kernel Bits</tt>

<tt>bootinfo -K</tt>

 

<tt>getconf KERNEL_BITS</tt>

<tt>getconf LONG_BIT</tt>

<tt>isainfo -kv</tt>

64

<tt>Crash utility</tt>

<tt>crash</tt>

<tt>crash</tt>

<tt>adb</tt>

<tt>lcrash</tt>

<tt>crash</tt>

<tt>kdbx</tt>

<tt>Trace System Calls</tt>

<tt>syscalls</tt>

<tt>truss</tt>

<tt>tusc</tt>

<tt>strace</tt>

<tt>truss</tt>

<tt>trace</tt>

<tt>Machine model</tt>

<tt>uname -m</tt>
<tt>bootinfo -m</tt>

<tt>uname -m</tt>

<tt>model</tt>
<tt>uname -m</tt>

<tt>uname -m</tt>

<tt>uname -imp</tt>

<tt>uname -p</tt>

<tt>OS Level</tt>

<tt>oslevel</tt>

<tt>uname -r</tt>

<tt>uname -r</tt>

<tt>uname -r</tt>

<tt>uname -r</tt>

<tt>sizer -v</tt>

<tt>Run Level</tt>

<tt>who -r</tt>

 

<tt>who -r</tt>

<tt>runlevel</tt>

<tt>who -r</tt>

<tt>who -r</tt>

<tt>Core dump files</tt>

<tt>/var/adm/ras</tt>

 

<tt>/var/adm/crash</tt>

<tt> </tt>

<tt>/var/crash/`uname -n`</tt>

<tt> </tt>

<tt>Boot single user</tt>

<tt>Key on service mode/F4</tt>
<tt>Boot from CD/Tape</tt>
<tt>Select Maintenance</tt>
<tt>Limited function Shell</tt>

<tt>ok boot -s</tt>

<tt>>boot
Interact with IPL ? Y
ISL>hpux -iS</tt>

<tt>{lilo}
control-x
linux S

{grub}
c
kernel vmlinuz-2.4.9-13 single   ro root=/dev/hda8
initrd /initrd-2.4.9-13.img
boot</tt>

<tt>ok boot -s</tt>

<tt>>>> boot -fl s</tt>

<tt>Maintenance mode</tt>

 

<tt>ok boot -as</tt>

<tt>>boot
Interact with IPL ? Y
ISL>hpux -lm</tt>

<tt> </tt>

<tt>ok boot -as</tt>

<tt> </tt>

<tt>Interrupt Key</tt>

<tt> </tt>

 

<tt>control-B</tt>

<tt> </tt>

<tt>Stop-A</tt>

<tt>control-P</tt>

<tt>Return to console</tt>

<tt> </tt>

 

<tt>co</tt>

<tt> </tt>

<tt>ok go</tt>

<tt> </tt>

<tt>Timezone Management</tt>

<tt>/etc/environment
/etc/profile</tt>

<tt>/etc/localtime</tt>

<tt>/etc/TIMEZONE</tt>

<tt>/etc/sysconfig/clock</tt>

<tt>/etc/TIMEZONE
/etc/default/init</tt>

<tt>/etc/svid3_tz
timezone</tt>

<tt>NTP Daemon</tt>

<tt>/etc/ntp.conf
startsrc -s xntpd</tt>

<tt>/etc/rc.conf {xntpd_enable="YES"}
/etc/rc.network</tt>

<tt>/etc/rc.config.d/netdaemons
/sbin/init.d/xntpd</tt>

<tt>/etc/ntp.conf
/etc/rc.d/init.d/xntpd</tt>

<tt>/etc/inet/ntp.conf
/etc/init.d/xntpd</tt>

<tt>rcmgr set XNTPD_CONF YES
/sbin/init.d/xntpd</tt>

<tt>Software</tt>

<tt>AIX</tt>

 

<tt>HP-UX</tt>

<tt>LINUX(RedHat)</tt>

<tt>SOLARIS</tt>

<tt>Tru64</tt>

<tt>Install Software</tt>

<tt>installp -a</tt>

<tt>pkg_add</tt>

<tt>swinstall</tt>

<tt>rpm -i package</tt>

<tt>pkgadd</tt>

<tt>setld -l</tt>

<tt>Uninstall software</tt>

<tt>installp -u</tt>

<tt>pkg_delete</tt>

<tt>swremove</tt>

<tt>rpm -e package</tt>

<tt>pkgrm</tt>

<tt>setld -d</tt>

<tt>List installed software</tt>

<tt>lslpp -L all</tt>

<tt>pkg_info -a</tt>

<tt>swlist</tt>

<tt>rpm -qa</tt>

<tt>pkginfo</tt>

<tt>setld -i</tt>

<tt>Verify installed software</tt>

<tt>lppchk -v</tt>

 

<tt>swlist -l fileset -a state</tt>

<tt>rpm -V package</tt>

<tt>pkginfo -i</tt>
<tt>pkginfo -p</tt>

<tt>setld -v</tt>

<tt>List all files</tt>

<tt>lslpp -f fileset</tt>

<tt>pkg_info -L package</tt>

<tt>swlist -l file fileset</tt>

<tt>rpm -ql package</tt>

<tt>pkgchk -l package</tt>

<tt>setld -i package</tt>

<tt>List installed patches</tt>

<tt>instfix -i</tt>

 

<tt>swlist -l patch</tt>
<tt>what /stand/vmunix</tt>

<tt> </tt>

<tt>patchadd -p</tt>

<tt>dupatch -track -type patch</tt>

<tt>Package owner</tt>

<tt>lslpp -w path</tt>

 

<tt>swlist -l file | grep path</tt>

<tt>rpm -qf file</tt>

<tt>pkgchk -l -p path</tt>

 

<tt>SW Directory</tt>

<tt>/usr/lpp</tt>

<tt>/var/db/pkg</tt>

<tt>/var/adm/sw/</tt>

<tt>/var/lib/rpm</tt>

<tt>/var/sadm</tt>

<tt>/var/adm/smlogs</tt>

<tt>Devices</tt>

<tt>AIX</tt>

<tt>FreeBSD</tt>

<tt>HP-UX</tt>

<tt>LINUX(RedHat)</tt>

<tt>SOLARIS</tt>

<tt>Tru64</tt>

<tt>Devices</tt>

<tt>/dev</tt>

<tt>/dev</tt>

<tt>/dev</tt>

<tt>/dev</tt>

<tt>/devices</tt>

<tt>/dev</tt>

<tt>Install devices for attached peripherals</tt>

<tt>cfgmgr -v</tt>

<tt>/dev/MAKEDEV</tt>

<tt>insf -e</tt>

<tt>/dev/MAKEDEV</tt>

<tt>drvconfig</tt>
<tt>devlinks</tt>
<tt>disks</tt>
<tt>tapes</tt>
<tt>ports</tt>

<tt>scu scan edt
scsimgr -scan_all</tt>

<tt>Remove device</tt>

<tt>rmdev -l</tt>

 

<tt>rmsf</tt>

<tt> </tt>

<tt>rem_drv</tt>

<tt> </tt>

<tt>Device drivers</tt>

<tt>lscfg</tt>

 

<tt>lsdev</tt>

<tt> </tt>

<tt>prtconf -D</tt>

<tt> </tt>

<tt>CPU</tt>

<tt>lsdev -Cc processor</tt>

<tt>sysctl hw.model</tt>

<tt>ioscan -fnC processor</tt>

<tt>cat /proc/cpuinfo</tt>

<tt>psrinfo -v</tt>

<tt>psrinfo -v</tt>

<tt>List Terminal</tt>

<tt>lsdev -Cc tty</tt>

 

<tt>ioscan -fnC tty</tt>

<tt> </tt>

<tt>pmadm -l</tt>

<tt> </tt>

<tt>Diagnostics</tt>

<tt>diag</tt>

<tt>pciconf -l</tt>

<tt>stm</tt>

<tt>lspci
pnpdump</tt>

<tt>/usr/platform/`uname -m`/</tt>
<tt>sbin/prtdiag</tt>
<tt>ok test-all</tt>
<tt>/opt/SUNWvts/bin/sunvts</tt>

<tt> </tt>

<tt>Whole Disk</tt>

<tt>/dev/hdisk#</tt>

<tt>/dev/ad0s1c</tt>

<tt>/dev/dsk/c#t#d0</tt>

<tt>/dev/sda</tt>

<tt>/dev/c#t#d0s2</tt>

<tt>/dev/rz0c</tt>

<tt>CDROM</tt>

<tt>/dev/cd0</tt>

<tt>/dev/acd0c</tt>

<tt>/dev/dsk/c#t2d0</tt>

<tt>/dev/cdrom</tt>

<tt>/dev/dsk/c#t6d0s2</tt>

<tt>/dev/rz3c</tt>

<tt>CDROM file type</tt>

<tt>cdrfs</tt>

<tt>cd9660</tt>

<tt>cdfs</tt>

<tt>iso9660</tt>

<tt>hsfs</tt>

<tt>cdfs</tt>

<tt>Rewinding tape drive</tt>

<tt>/dev/rmt0</tt>

<tt>/dev/rwt0d</tt>

<tt>/dev/rmt/0m</tt>

<tt>/dev/rst0               { c 9 0}</tt>

<tt>/dev/rmt/0</tt>

<tt>/dev/rmt0</tt>

<tt>Non-rewinding tape drive</tt>

<tt>/dev/rmt0.1</tt>

<tt>/dev/nrwt0d</tt>

<tt>/dev/rmt/0mn</tt>

<tt>/dev/nrst0           { c 9 128 }</tt>

<tt>/dev/rmt/0n</tt>

<tt>/dev/nrmt0</tt>

<tt>Floppy drive</tt>

<tt>/dev/rfd0</tt>

<tt>/dev/fd0</tt>

<tt>-</tt>

<tt>/dev/fd0</tt>

<tt>/dev/diskette</tt>

<tt>/dev/fd0c</tt>

<tt>Links</tt>

<tt>AIX</tt>

<tt>FreeBSD</tt>

<tt>HP-UX</tt>

<tt>LINUX(RedHat)</tt>

<tt>SOLARIS</tt>

<tt>Tru64</tt>

<tt>FAQ</tt>

<tt>AIX-FAQ</tt>

FreeBSD FAQ

<tt>HP-UX FAQ</tt>

<tt>LINUX FAQ</tt>

<tt>Solaris 2 FAQ</tt>

<tt>Tru64 FAQ</tt>

<tt>Online Manual</tt>

<tt>AIX 5.3 Docs</tt>

FreeBSD Hand Book

<tt>HP-UX Reference Manual</tt>

<tt>Linux Documentation Project</tt>

<tt>Solaris 10 Documentation</tt>

<tt>Tru64 Documents</tt>

<tt>Technical Support</tt>

<tt>p5 TechSupport</tt>

 

<tt>IT Resource Center</tt>

<tt>Red Hat support</tt>

<tt>SunSolve</tt>

<tt>Alpha Systems Support</tt>

<tt>Phone Number</tt>

<tt>1-800-CALL-AIX</tt>

 

<tt>1-800-633-3600</tt>

<tt>1-888-REDHAT1</tt>

<tt>1-800-USA-4SUN</tt>

<tt>1-800-474-6836</tt>

<tt>Free Software</tt>

<tt>Public Domain Software Library</tt>

FreeBSD Primary Site

<tt>HP-UX Ports</tt>

<tt>Linux Software Map</tt>

<tt>Sun Freeware</tt>

<tt>Tru64 Demos, Shareware & Freeware</tt>

<tt>Certification</tt>

<tt>www.ibm.com</tt>

 

<tt>education.hp.com</tt>

<tt>RHCE</tt>

<tt>suned.sun.com</tt>

<tt>ASE Information</tt>

To top