반응형
굉장히 도움이 될 것 같아서 퍼옴..
출처 : http://cafe.daum.net/oddtip/Jxkw/94?docid=1CBe5Jxkw9420081218175643]
|
AIX, HP-UX, SOLARIS 특징 및 명령어 비교 |
|||
| Directory | AIX | HP-UX | SOLARIS |
| Root filesystem | / {/dev/hd4} | / {/dev/vg00/lvol1} | / {/dev/vx/dsk/rootvol} |
| Home Directory | /home {/dev/hd1} | /home {/dev/vg00/lvol4} | /export/home |
| /dev/vx/dsk/home} | |||
| /tmp {/dev/hd3} | /tmp {/dev/vg00/lvol6} | /tmp | |
| /dev/vx/dsk/swapvol} | |||
| /usr {/dev/hd2} | /usr {/dev/vg00/lvol7} | /usr | |
| /var {/dev/hd9var} | /var {/dev/vg00/lvol8} | /var | |
| Sample configuration files | - | /usr/newconfig | |
| User Accounts | AIX | HP-UX | Solaris |
| Password files | /etc/passwd | /etc/passwd | /etc/passwd |
| /etc/security/passwd | /tcb/files/auth/r/root | /etc/shadow | |
| Groups file | /etc/group | /etc/group | /etc/group |
| /etc/security/group | /etc/logingroup | ||
| Maximum # of user ID | 4294967295 | 2147483647 | 2147483647 |
| Allow/Deny remote login | /etc/security/user | /etc/securetty | /etc/default/login |
| {rlogin=true} | {console} | {CONSOLE=/dev/console} | |
| User nobody's id # | 4294967294 | -2 | 60001 & 65534(nobody4) |
| Group nobody's id # | 4294967294 | -2(nogroup) | 60002 & 65534(nogroup) |
| Recover root password | boot from CD/Tape | ISL>hpux -is | boot cdrom -s |
| Installation/Maintenance | vi /tcb/files/auth/r/root | mount /dev/c0t0d0s0 /mnt | |
| Start Limited Shell | vi /etc/shadow | vi /mnt/etc/shadow | |
| getrootfs hdisk0 | |||
| vi /etc/security/passwd | |||
| Create new user | mkuser | useradd | useradd |
| Delete user | rmuser | userdel | userdel |
| List users | lsuser -f ALL | logins | logins |
| Modify user account | chuser -a | usermod | usermod |
| General Commands | AIX | HP-UX | Solaris |
| Unique host ID | hostid | uname -i | hostid |
| Administrator | smit | sam | admintool |
| Performance monitor | top | top | top |
| monitor | glance | ||
| System activity reporter | sar | sar | sar |
| Virtual Memory statistics | vmstat | vmstat | vmstat |
| I/O statistics | iostat | iostat | iostat |
| Error logs | alog -o -t boot | dmesg | dmesg |
| errpt | |||
| Physical RAM | 1M TB | 4TB | 16TB |
| Shared Memory | 64K TB | 8TB | |
| Process Data Space | 384K TB | 4TB | |
| Swap device | /dev/hd6 | /dev/vg00/lvol2 | /dev/vx/dsk/swapvol |
| Swap file type | /etc/swapspaces | swap | swap |
| Display swap size | lsps -a | swapinfo -a | swap -l |
| Activate Swap | swapon -a | swapon -a | swap -a |
| Printers | AIX | HP-UX | Solaris |
| Printer Queues | /etc/qconfig | /etc/lp/interface/* | /etc/lp/interfaces/* |
| Stop LP | stopsrc -s lpd | lpshut | /usr/lib/lp/lpshut |
| Start LP | startsrc -s lpd | lpsched | /usr/lib/lp/lpsched |
| Submit print jobs | enq | lp | lp |
| lp | lpr | ||
| lpr | |||
| qprt | |||
| LP statistics | enq -A | lpstat | lpstat |
| lpq | |||
| lpstat | |||
| qchk | |||
| Remove print jobs | cancel | cancel | cancel |
| lprm | lprm | ||
| qcan | |||
| enq -x | |||
| Add printer queue | smit mkpq | lpadmin -p pq | lpadmin -p pq |
| Remove Printer queue | smit rmpq | lpadmin -x pq | lpadmin -x pq |
| Make default printer | export LPDEST="pq" | lpadmin -d pq | lpadmin -d pq |
| TCP/IP | AIX | HP-UX | Solaris |
| Network IP configuration | lsattr -E -l inet0 | /etc/rc.config.d/netconf | /etc/hostname.* |
| /etc/inet/* | |||
| /etc/defaultrouter | |||
| Hosts IP addresses | /etc/hosts | /etc/hosts | /etc/inet/hosts |
| Name service switch | /etc/netsvc.conf | /etc/nsswitch.conf | /etc/nsswitch.conf |
| Network parameters | no -a | ndd -h | ndd /dev/[tcp|ip] |
| Routing daemon | gated | gated | in.routed |
| NIC Configurations | ifconfig -a | lanscan -v | ifconfig -a |
| Secondary IP Address | ifconfig en0 alias IP | ifconfig lan0:1 IP | ifconfig hme0:1 IP up |
| Login prompt | HERALD @ | telnetd -b /etc/issue | BANNER @ |
| /etc/security/login.cfg | /etc/default/telnetd | ||
| Increase the # of pseudo-terminals | odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" | | rebuild your kernel with these new values NPTY=# | {/etc/system} |
| odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt | NSTRPY=# | set pt_cnt = # {SYSV} | |
| set npty = # {BSD} | |||
| chdev -l pty0 -anum=256 -P | reboot | ||
| reboot | {/etc/iu.ap} | ||
| insf -d ptys -n # | ptsl 0 # ldterm ttcompat | ||
| insf -d ptym -n # | |||
| insf -d pts -s # -e -v | halt | ||
| boot -r | |||
| Maximum # of ptys | 512 | {MAXUSERS} | 176 {BSD} |
| 3000 {SYSV} | |||
| Remote Shell | remsh | remsh | rsh |
| rsh | |||
| YP/NIS service binder | /usr/lib/netsvc/yp/ypbind | /usr/lib/netsvc/yp/ypbind | /usr/lib/netsvc/yp/ypbind |
| System Files | AIX | HP-UX | Solaris |
| NFS exported | /etc/exports | /etc/exports | /etc/dfs/dfstab |
| /etc/dfs/sharetab | |||
| NFS Client mounted directories | /etc/xtab | /etc/xtab | /etc/rmtab |
| Max File System | 128 GB | 128 GB | 1 TB |
| Max File Size | 64 GB | 128 GB | 1 TB |
| Max # File Descriptors | 64 K | 60~ K | 64 K |
| DISK/LVM Commands | AIX | HP-UX:Disk &Filesystem | SOLARIS |
| Filesystem table | /etc/filesystems | /etc/fstab | /etc/vfstab |
| Free disk blocks | df -k | bdf | df -k |
| Device listing | lsdev -C | /sbin/ioscan | sysdef |
| Disk information | bootinfo -s hdisk# | diskinfo /dev/rdsk/c#t#d# | format -d c#t#d# |
| format>current | |||
| format>inquiry | |||
| Disk Label | lspv -l hdisk# | pvdisplay -v /dev/dsk/C#t#d# | prtvtoc |
| LVM Concepts | Partition | logical extents | sub disk |
| Volume | logical volume | Volume | |
| Plex | |||
| Volume group | volume group | disk group | |
| Journal Filesystem type | jfs | vxfs | vxfs |
| Default volume group | /dev/rootvg | /dev/vg00 | /dev/vx/dsk/rootdg |
| Display volume group | lsvg -l rootvg | vgdisplay -v vg00 | vxprint -l -g rootdg |
| Modify physical volume | chpv | pvchange | |
| Prepare physical disk | mkdev -c disk -l hdisk# | pvcreate | vxdiskadd |
| List physical volume | lspv | pvdisplay | vxprint -dl |
| Remove disk from volume group | reducevg | vgreduce | vxdg rmdisk |
| Move logical volumes to another physical volumes | migratepv | pvmove | vxassist move |
| Create volume group | mkvg | vgcreate | vxdg init |
| Remove volume group | vgremove | ||
| Volume group availability | chvg | vgchange | |
| varyonvg | |||
| varyoffvg | |||
| Restore volume group | vgcfgrestore | ||
| Exports volume group | exportvg | vgexport | vxdg deport |
| Imports volume group | importvg | vgimport | vxdg import |
| Volume group listing | lsvg | vgscan | |
| Change logical volume characteristics | chlv | lvchange | vxedit set |
| List logical volume | lslv | lvdisplay | vxprint -vl |
| Make logical volume | mklv | lvcreate | vxassist make |
| Extend logical volume | extendlv | lvextend | vxassist growto |
| Reduce logical volume | AIX reduce LV | lvreduce | vxassist shrinkto |
| Remove logical volume | rmlv | lvremove | vxedit rm |
| Prepare boot volumes | bootlist -m normal | lvlnboot | vxbootsetup |
| Remove boot volumes | lvrmboot | ||
| Extend File system | chfs -a size=# | extendfs -F vxfs -s # | vxva |
| fsadm -F vxfs -b {LE * 1024} | mkfs -M | ||
| Reduce/Split mirrors | rmlvcopy | lvsplit | |
| Merge mirrors | lvmerge | ||
| Create mirrors | mklv -c 2 | lvcreate -m 1 | vxassist mirror |
| Add mirrors | mklvcopy lv 2 | lvextend -m 1 | |
| Create striped volumes | mklv -u 3 -S 64K | lvcreate -i 3 -I 64 | vxassist make vol 100mb layout=raid5 |
| System recovery tape | mksysb -i /dev/rmt0 | /opt/ignite/bin/make_recovery | |
| Backup | savevg -i rootvg | fbackup | ufsdump |
| Restore | restvg | frecover | ufsrestore |
| MISC | AIX | HP-UX | SOLARIS |
| Startup script | /etc/rc | /sbin/rc | /sbin/init.d |
| Kernel | /usr/lib/boot/unix_up | /stand/vmunix | /kernel/genunix |
| Kernel Parameters | lsattr -E -l sys0 | kmtune | sysdef- i |
| kmsystem | |||
| Reconfigure the kernel | cd /stand/build | vi /etc/system | |
| chdev -l sys0 -a | /usr/lbin/sysadm/system_prep -v -s system | reboot | |
| vi system | |||
| mk_kernel -s system | |||
| cd /stand | |||
| Reconfigure the kernel | mv system system.prev | ||
| mv vmunix vmunix.prev | |||
| mv dlkm dlkm.prev | |||
| mv ./build/system system | |||
| kmupdate /stand/build | |||
| List modules | kmadmin -s | modinfo | |
| Load module | kmadmin -L | modload | |
| Unload module | kmadmin -U | modunload | |
| Initialize system | install_assist | set_parms initial | sys-unconfig |
| Physical RAM | bootinfo -r | grep -i Physical /var/adm/syslog/syslog.log | prtconf |
| Kernel Bits | getconf WORD_BIT | getconf KERNEL_BITS | isainfo -kv |
| Crash utility | crash | crashutil | crash |
| Machine model | uname -m | model | uname -imp |
| bootinfo -m | uname -m | ||
| OS Level | oslevel | uname -r | uname -r |
| Run Level | who -r | who -r | who -r |
| Core dump files | /var/adm/ras | /var/adm/crash | /var/crash/`uname -n` |
| Boot single user | Key on service mode/F4 | ISL>hpux -iS | ok boot -s |
| Boot from CD/Tape | |||
| Select Maintenance | |||
| Limited function Shell | |||
| Maintenance mode | ISL>hpux -lm | ok boot -as | |
| Interrupt Key | control-B | Stop-A | |
| Return to console | co | ok go | |
| Software | AIX | HP-UX | SOLARIS |
| Install Software | installp -a | swinstall | pkgadd |
| Uninstall software | installp -u | swremove | pkgrm |
| List installed software | lslpp -L all | swlist | pkginfo |
| Verify installed software | lppchk -v | swlist -l fileset -a state | pkginfo -i |
| pkginfo -p | |||
| List all files | lslpp -f fileset | swlist -l file fileset | pkgchk -l package |
| List installed patches | instfix -i | swlist -l patch | patchadd -p |
| what /stand/vmunix | |||
| Package owner | lslpp -w path | swlist -l file | grep path | pkgchk -l -p path |
| SW Directory | /usr/lpp | /var/adm/sw/ | /var/sadm |
| Devices | AIX | HP-UX | SOLARIS |
| Devices | /dev | /dev | /devices |
| Install devices for attached peripherals | cfgmgr -v | insf -e | drvconfig |
| devlinks | |||
| disks | |||
| tapes | |||
| ports | |||
| Remove device | rmdev -l | rmsf | rem_drv |
| Device drivers | lscfg | lsdev | prtconf -D |
| CPU | lsdev -Cc processor | ioscan -fnC processor | psrinfo -v |
| List Terminal | lsdev -Cc tty | ioscan -fnC tty | pmadm -l |
| Diagnostics | diag | stm | /usr/platform/`uname -m`/ |
| sbin/prtdiag | |||
| ok test-all | |||
| /opt/SUNWvts/bin/sunvts | |||
| Whole Disk | /dev/hdisk# | /dev/dsk/c#t#d0 | /dev/c#t#d0s2 |
| CDROM | /dev/cd0 | /dev/dsk/c#t2d0 | /dev/dsk/c#t6d0s2 |
| CDROM file type | cdrfs | cdfs | hsfs |
| Rewinding tape drive | /dev/rmt0 | /dev/rmt/0m | /dev/rmt/0 |
| Non-rewinding tape drive | /dev/rmt0.1 | /dev/rmt/0mn | /dev/rmt/0n |
| Floppy drive | /dev/rfd0 | - | /dev/diskette |
| Links | AIX | HP-UX | SOLARIS |
| FAQ | AIX-FAQ | HP-UX FAQ | Solaris 2 FAQ |
| Online Manual | AIX 4.3 Books | HP-UX 11.00 Collection | Solaris 7 Documentation |
| Technical Support | RS/6000 TechSupport | IT Resource Center | SunSolve |
| Phone Number | 1-800-CALL-AIX | 1-800-633-3600 | 1-800-USA-4SUN |
| Free Software | Bull | HP-UX Ports | Sun Freeware |
| Certification | www.ibm.com | education.hp.com | suned.sun.com |
잘 알아놓고 두고두고 써야겠당
반응형
'OS > Common' 카테고리의 다른 글
| 유닉스 언어 설정 확인 및 변경 (0) | 2013.10.02 |
|---|---|
| Z 확장자 압축해제 (0) | 2013.07.09 |
| 해당 바이너리의 비트 확인하기 (0) | 2012.05.21 |
| ftp 사용법 [명령어] (0) | 2011.10.20 |
| Tar 와 Gzip Bzip2사용법 (0) | 2011.10.20 |