Directory Mappings | HP-UX | LINUX | SOLARIS | AIX |
Root filesystem | / {/dev/vg00/lvol1} | / {/dev/sda1} | / {/dev/vx/dsk/rootvol} | / {/dev/hd4} |
Home Directory | /home {/dev/vg00/lvol4} | /export/home | /home {/dev/hd1} | |
/dev/vx/dsk/home} | ||||
/tmp {/dev/vg00/lvol6} | /tmp | /tmp {/dev/hd3} | ||
/dev/vx/dsk/swapvol} | ||||
/usr {/dev/vg00/lvol7} | /usr | /usr {/dev/hd2} | ||
/var {/dev/vg00/lvol8} | /var | /var {/dev/hd9var} | ||
Sample configuration files | /usr/newconfig | - | ||
User Accounts | HP-UX | LINUX | Solaris | AIX |
Password files | /etc/passwd | /etc/passwd | /etc/passwd | /etc/passwd |
/tcb/files/auth/r/root | /etc/shadow | /etc/shadow | /etc/security/passwd | |
Groups file | /etc/group | /etc/group | /etc/group | /etc/group |
/etc/logingroup | /etc/security/group | |||
Maximum # of user ID | 2147483647 | 65535 | 2147483647 | 4294967295 |
Allow/Deny remote login | /etc/securetty | /etc/securetty | /etc/default/login | /etc/security/user |
{console} | {ttyp1} | {CONSOLE=/dev/console} | {rlogin=true} | |
User nobody's id # | -2 | 99 | 60001 & 65534(nobody4) | 4294967294 |
Group nobody's id # | -2(nogroup) | 99 | 60002 & 65534(nogroup) | 4294967294 |
Recover root password | >boot | linux S | boot cdrom -s | boot from CD/Tape |
Interact with IPL ? Y | vi /etc/shadow | mount /dev/c0t0d0s0 /mnt | Installation/Maintenance | |
ISL>hpux -is | vi /mnt/etc/shadow | Start Limited Shell | ||
vi /tcb/files/auth/r/root | getrootfs hdisk0 | |||
vi /etc/shadow | vi /etc/security/passwd | |||
Create new user | useradd | useradd | useradd | mkuser |
Delete user | userdel | userdel | userdel | rmuser |
List users | logins | logins | lsuser -f ALL | |
Modify user account | usermod | usermod | usermod | chuser -a |
General Commands | HP-UX | LINUX | Solaris | AIX |
Unique host ID | uname -i | hostid | hostid | hostid |
Administrator | sam | linuxconf | admintool | smit |
Performance monitor | top , gpm | top | top , perfmeter | top , topas , xmperf |
glance | monitor , netmon | |||
System activity reporter | sar | sar | sar | |
Virtual Memory statistics | vmstat | vmstat | vmstat | vmstat |
I/O statistics | iostat | iostat | iostat | |
하드웨어 상태 점검 | /usr/platform/sun4u/sbin/prtdiag -v | |||
Error logs | dmesg | dmesg | dmesg | alog -o -t boot |
errpt | ||||
Physical RAM | 4TB | 64 GB {>2.3.24} | 16TB | 1M TB |
Shared Memory | 8TB | sysctl kernel.shmmax | 64K TB | |
Process Data Space | 4TB | 900 MB | 384K TB | |
Swap device | /dev/vg00/lvol2 | /dev/sda2 | /dev/vx/dsk/swapvol | /dev/hd6 |
Swap file type | swap | partition type 82 | swap | /etc/swapspaces |
Display swap size | swapinfo -a | free | swap -l | lsps -a |
Activate Swap | swapon -a | swapon -a | swap -a | swapon -a |
Printers | HP-UX | LINUX | Solaris | AIX |
Printer Queues | /etc/lp/interface/* | /var/spool/lpd/lp/* | /etc/lp/interfaces/* | /etc/qconfig |
Stop LP | lpshut | /etc/init.d/lpd stop | /usr/lib/lp/lpshut | stopsrc -s lpd |
Start LP | lpsched | /etc/init.d/lpd start | /usr/lib/lp/lpsched | startsrc -s lpd |
Submit print jobs | lp | lpr | lp | enq |
lpr | lp | |||
lpr | ||||
qprt | ||||
LP statistics | lpstat | lpq | lpstat | enq -A |
lpq | ||||
lpstat | ||||
qchk | ||||
Remove print jobs | cancel | lprm | cancel | cancel |
lprm | lprm | |||
qcan | ||||
enq -x | ||||
Add printer queue | lpadmin -p pq | printtool | lpadmin -p pq | smit mkpq |
Remove Printer queue | lpadmin -x pq | lpadmin -x pq | smit rmpq | |
Make default printer | lpadmin -d pq | lpadmin -d pq | export LPDEST="pq" | |
TCP/IP | HP-UX | LINUX | Solaris | AIX |
Network IP configuration | /etc/rc.config.d/netconf | /etc/sysconfig/network-scripts/ | /etc/hostname.* | lsattr -E -l inet0 |
/etc/inet/* | ||||
/etc/defaultrouter | ||||
Hosts IP addresses | /etc/hosts | /etc/hosts | /etc/inet/hosts | /etc/hosts |
Name service switch | /etc/nsswitch.conf | /etc/nsswitch.conf | /etc/nsswitch.conf | /etc/netsvc.conf |
Network parameters | ndd -h | sysctl -a | grep net | ndd /dev/[tcp|ip] ? | no -a |
Routing daemon | gated | routed | in.routed | gated |
NIC Configurations | lanscan –v | ifconfig -a | ifconfig -a | ifconfig -a |
lanadmin | ||||
Secondary IP Address | ifconfig lan0:1 IP | modprobe ip_alias | ifconfig hme0:1 IP up | ifconfig en0 alias IP |
ifconfig eth0:1 IP | ||||
Login prompt | telnetd -b /etc/issue | /etc/issue | BANNER @ | HERALD @ |
/etc/default/telnetd | /etc/security/login.cfg | |||
Increase the # of pseudo-terminals | rebuild your kernel with these new values NPTY=# | cd /dev | {/etc/system} | odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" | |
NSTRPY=# | ./MAKEDEV -v pty | set pt_cnt = # {SYSV} | odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt | |
set npty = # {BSD} | ||||
reboot | chdev -l pty0 -anum=256 -P | |||
{/etc/iu.ap} | reboot | |||
insf -d ptys -n # | ptsl 0 # ldterm ttcompat | |||
insf -d ptym -n # | ||||
insf -d pts -s # -e -v | halt | |||
boot -r | ||||
Maximum # of ptys | {MAXUSERS} | 256 | 176 {BSD} | 512 |
3000 {SYSV} | ||||
Remote Shell | remsh | rsh | rsh | remsh |
rsh | ||||
YP/NIS service binder | /usr/lib/netsvc/yp/ypbind | /sbin/ypbind | /usr/lib/netsvc/yp/ypbind | /usr/lib/netsvc/yp/ypbind |
System Files | HP-UX | LINUX | Solaris | AIX |
NFS exported | /etc/exports | /etc/exports | /etc/dfs/dfstab | /etc/exports |
/etc/dfs/sharetab | ||||
NFS Client mounted directories | /etc/xtab | /var/lib/nfs/xtab | /etc/rmtab | /etc/xtab |
Max File System | 128 GB | 2 TB | 1 TB | 128 GB |
Max File Size | 128 GB | 2 GB {512B block size} | 1 TB | 64 GB |
8192 GB {8KB block size} | ||||
Max # File Descriptors | 60~ K | sysctl fs.file-max | 64 K | 64 K |
DISK/LVM Commands | HP-UX:Disk &Filesystem | LINUX | SOLARIS | AIX |
Filesystem table | /etc/fstab | /etc/fstab | /etc/vfstab | /etc/filesystems |
Free disk blocks | bdf | df -k | df -k | df -k |
Device listing | /sbin/ioscan | cat /proc/devices | sysdef | lsdev -C |
Disk information | diskinfo /dev/rdsk/c#t#d# | cat /proc/scsi/scsi0/sda/model | format -d c#t#d# | bootinfo -s hdisk# |
format>current | ||||
format>inquiry | ||||
Disk Label | pvdisplay -v /dev/dsk/C#t#d# | fdisk -l | prtvtoc | lspv -l hdisk# |
LVM Concepts | logical extents | logical extents | sub disk | Partition |
logical volume | logical volume | Volume | Volume | |
Plex | ||||
volume group | volume group | disk group | Volume group | |
Journal Filesystem type | vxfs | ext2 | vxfs | jfs |
Default volume group | /dev/vg00 | /dev/vx/dsk/rootdg | /dev/rootvg | |
Display volume group | vgdisplay -v vg00 | vgdisplay -v | vxprint -l -g rootdg | lsvg -l rootvg |
Modify physical volume | pvchange | pvchange | chpv | |
Prepare physical disk | pvcreate | pvcreate | vxdiskadd | mkdev -c disk -l hdisk# |
List physical volume | pvdisplay | pvdisplay | vxprint -dl | lspv |
Remove disk from volume group | vgreduce | vgreduce | vxdg rmdisk | reducevg |
Move logical volumes to another physical volumes | pvmove | pvmove | vxassist move | migratepv |
Create volume group | vgcreate | vgcreate | vxdg init | mkvg |
Remove volume group | vgremove | vgremove | ||
Volume group availability | vgchange | vgchange | chvg | |
varyonvg | ||||
varyoffvg | ||||
Restore volume group | vgcfgrestore | vgcfgrestore | ||
Exports volume group | vgexport | vgexport | vxdg deport | exportvg |
Imports volume group | vgimport | vgimport | vxdg import | importvg |
Volume group listing | vgscan | vgscan | lsvg | |
Change logical volume characteristics | lvchange | lvchange | vxedit set | chlv |
List logical volume | lvdisplay | lvdisplay | vxprint -vl | lslv |
Make logical volume | lvcreate | lvcreate | vxassist make | mklv |
Extend logical volume | lvextend | lvextend | vxassist growto | extendlv |
Reduce logical volume | lvreduce | lvreduce | AIX reduce LV | extendlv |
Remove logical volume | lvremove | lvremove | vxedit rm | rmlv |
Prepare boot volumes | lvlnboot | lilo | vxbootsetup | bootlist -m normal |
Remove boot volumes | lvrmboot | |||
Extend File system | extendfs /dev/vg00/lvol8 | resize2fs | vxva | chfs -a size=# |
fsadm -F vxfs -b {LE * 1024} | mkfs -M | |||
Reduce/Split mirrors | lvsplit | lvsplit | rmlvcopy | |
Merge mirrors | lvmerge | lvmerge | ||
Create mirrors | lvcreate -m 1 | vxassist mirror | mklv -c 2 | |
Add mirrors | lvextend -m 1 | mklvcopy lv 2 | ||
Create striped volumes | lvcreate -i 3 -I 64 | lvcreate -i 3 -I 64 | vxassist make vol 100mb layout=raid5 | mklv -u 3 -S 64K |
System recovery tape | /opt/ignite/bin/make_recovery | mksysb -i /dev/rmt0 | ||
Backup | Fbackup` | tar cvf /dev/rst0 / | tar cvf /dev/rmt/0 ./etc | savevg -i rootvg |
tar cvf /dev/rmt/0m ./usr ./var ./etc | ||||
tar cvf /dev/rmt/0mn ./usr ./var ./etc | tar cvf /dev/rmt0 ./usr | |||
tar cvf /dev/rmt1 ./usr | ||||
Restore | frecover | tar xvf /dev/rst0 | ufsrestore | restvg |
MISC | HP-UX | LINUX | SOLARIS | AIX |
Startup script | /sbin/rc | /etc/rc.d/rc | /sbin/init.d | /etc/rc |
Kernel | /stand/vmunix | /boot/vmlinuz | /kernel/genunix | /usr/lib/boot/unix_up |
Kernel Parameters | sysdef | sysctl -a | sysdef -i | lsattr -E -l sys0 |
kmtune | ||||
kmsystem | ||||
Reconfigure the kernel | cd /stand/build | cd /usr/src/linux | vi /etc/system | |
/usr/lbin/sysadm/system_prep -v -s system | make mrproper | reboot | chdev -l sys0 -a | |
vi system | make menuconfig | |||
mk_kernel -s system | make dep | |||
cd /stand | make clean | |||
mv system system.prev | make bzimage | |||
mv vmunix vmunix.prev | make install | |||
mv dlkm dlkm.prev | make modules | |||
mv /stand/build/system system | make modules_install | |||
kmupdate /stand/build/vmunix_test | ||||
cp arch/i386/boot/bzImage /boot/vmlinuz-2.2.16 | ||||
mkinitrd /boot/initrd-2.2.16.img | ||||
vi /etc/lilo.conf | ||||
lilo | ||||
List modules | kmadmin -s | Lsmod | modinfo | |
Load module | kmadmin -L | Insmod | modload | |
Unload module | kmadmin -U | Rmmod | modunload | |
Initialize system | set_parms initial | Netconf | sys-unconfig | install_assist |
Physical RAM | grep -i Physical /var/adm/syslog/syslog.log | Free | prtconf | bootinfo -r |
Kernel Bits | getconf KERNEL_BITS | getconf WORD_BIT | isainfo –kv (getconf WORD_BIT) | getconf WORD_BIT |
Crash utility | adb | lcrash | crash | crash |
Trace System Calls | tusc | Strace | truss | syscalls |
Machine model | model | uname –m | uname -imp | uname -m |
uname -m | bootinfo -m | |||
OS Level | uname -r | uname –r | uname -r | oslevel |
Run Level | who -r | Runlevel | who -r | who -r |
Core dump files | /var/adm/crash | /var/crash/`uname -n` | /var/adm/ras | |
Boot single user | >boot | linux S | ok boot -s | Key on service mode/F4 |
Interact with IPL ? Y | Boot from CD/Tape | |||
ISL>hpux -iS | Select Maintenance | |||
Limited function Shell | ||||
Maintenance mode | >boot | ok boot -as | ||
Interact with IPL ? Y | ||||
ISL>hpux -lm | ||||
Interrupt Key | control-B | Stop-A | ||
Return to console | Co | ok go | ||
Timezone Management | /etc/TIMEZONE | /etc/sysconfig/clock | /etc/TIMEZONE | /etc/environment |
/etc/default/init | /etc/profile | |||
.profile | .profile | /etc/environment | ||
Path setenv | /etc/profile | /etc/profile | /etc/profile | |
/etc/PATH , /etc/MANPATH | .profile | |||
NTP Daemon | /etc/rc.config.d/netdaemons | /etc/ntp.conf | /etc/inet/ntp.conf | /etc/ntp.conf |
/sbin/init.d/xntpd | /etc/rc.d/init.d/xntpd | /etc/init.d/xntpd | startsrc -s xntpd | |
Software | HP-UX | LINUX | SOLARIS | AIX |
Install Software | swinstall | rpm -i package | pkgadd | installp -a |
Uninstall software | swremove | rpm -e package | pkgrm | installp -u |
List installed software | swlist | rpm –qa | pkginfo | lslpp -L all |
Verify installed software | swlist -l fileset -a state | rpm -V package | pkginfo -i | lppchk -v |
pkginfo -p | ||||
List all files | swlist -l file fileset | rpm -ql package | pkgchk -l package | lslpp -f fileset |
List installed patches | swlist -l patch | patchadd -p | instfix -i | |
what /stand/vmunix | ||||
Package owner | swlist -l file | grep path | rpm -qf file | pkgchk -l -p path | lslpp -w path |
SW Directory | /var/adm/sw/ | /var/lib/rpm | /var/sadm | /usr/lpp |
Devices | HP-UX | LINUX | SOLARIS | AIX |
Devices | /dev | /dev | /devices | /dev |
Install devices for attached peripherals | insf –e | /dev/MAKEDEV | drvconfig | cfgmgr -v |
devlinks | ||||
disks | ||||
tapes | ||||
ports | ||||
Remove device | Rmsf | rem_drv | rmdev -l | |
Device drivers | Lsdev | prtconf -D | lscfg | |
CPU | ioscan -fnC processor | psrinfo -v | lsdev -Cc processor | |
List Terminal | ioscan -fnC tty | pmadm -l | lsdev -Cc tty | |
Diagnostics | Stm | /usr/platform/`uname -m`/ | diag | |
sbin/prtdiag | ||||
ok test-all | ||||
/opt/SUNWvts/bin/sunvts | ||||
Whole Disk | /dev/dsk/c#t#d0 | /dev/sda | /dev/c#t#d0s2 | /dev/hdisk# |
CDROM | /dev/dsk/c#t2d0 | /dev/cdrom | /dev/dsk/c#t6d0s2 | /dev/cd0 |
mount –r /dev/~ | mount –r –t hsfs /dev/~ | mount –r –v cdrfs | ||
자동 mount 되며 mount 되지 않을 시 다음의 daemon restart /etc/init.d/volmgt stop /etc/init.d/volmgt start cd 뺄때 eject | ||||
CDROM file type | Cdfs | iso9660 | hsfs | cdrfs |
Rewinding tape drive | /dev/rmt/0m | /dev/rst0 { c 9 0} | /dev/rmt/0 | /dev/rmt0 |
Non-rewinding tape drive | /dev/rmt/0mn | /dev/nrst0 { c 9 128 } | /dev/rmt/0n | /dev/rmt0.1 |
Floppy drive | - | /dev/fd0 | /dev/diskette | /dev/rfd0 |
'노트 > 메모' 카테고리의 다른 글
각 시도 교육청 및 교육지원청 주소 (0) | 2012.07.16 |
---|---|
통계적 방법론 – 범주형 자료 분석 (0) | 2012.06.16 |
금융부문의 분류 및 포괄범위 (0) | 2012.06.09 |
장성태, 박현섭, 신진호, 반석모, 김기서, 박대진, "리눅스 운영체제에 관한 보고서" (0) | 2012.06.01 |
Graphic Design - Architecture In Time (0) | 2012.05.25 |
Solutions to Principles of Electronic Materials and Devices: 3rd Edition (13 May 2005) (2) | 2012.05.24 |
Visual BASIC 6 KeyCode Note (0) | 2012.05.15 |
진수사칙연산 (0) | 2012.04.30 |
TOEFL Tips (0) | 2012.04.30 |
데이터 표현과 컴퓨터 연산 (0) | 2012.04.29 |