Unix全般 -> コマンド
Directory Mappings  Solaris HP-UX LINUX(RedHat) AIX
Root filesystem         {/dev/vx/dsk/rootvol} /          {/dev/vg00/lvol1} /                  {/dev/sda1} /              {/dev/hd4}
Home Directory /export/home {/dev/vx/dsk/home} /home      {/dev/vg00/lvol4}   /home          {/dev/hd1}
/tmp /tmp      {/dev/vx/dsk/swapvol} /tmp       {/dev/vg00/lvol6}   /tmp           {/dev/hd3}
/usr /usr  /usr       {/dev/vg00/lvol7}   /usr           {/dev/hd2}
/var /var /var       {/dev/vg00/lvol8}   /var        {/dev/hd9var}
Sample configuration files   /usr/newconfig   -
Directory Mappings  Solaris HP-UX LINUX(RedHat) AIX
Password files /etc/passwd  /etc/passwd /etc/passwd /etc/passwd
/etc/shadow /tcb/files/auth/r/root /etc/shadow /etc/security/passwd
Groups file /etc/group /etc/group /etc/group /etc/group
  /etc/logingroup   /etc/security/group
Maximum # of user ID 2,147,483,647 2,147,483,647 65,535 4,294,967,295
Allow/Deny remote login /etc/default/login /etc/securetty /etc/securetty /etc/security/user
{CONSOLE=/dev/console} {console} {ttyp1} {rlogin=true}
User nobody's id # 60001 & 65534(nobody4) -2 99 4294967294
Group nobody's id # 60002 & 65534(nogroup) -2(nogroup) 99 4294967294
Recover root password boot cdrom -s >boot {lilo} boot from CD/Tape
mkdir /tmp/a Interact with IPL ? Y control-x Installation/Maintenance
mount /dev/c0t0d0s0 /tmp/a ISL>hpux -iS linux S Start Limited Shell
vi /tmp/a/etc/shadow passwd root passwd root getrootfs hdisk0
    {grub} vi /etc/security/passwd
    c  
    kernel vmlinuz-2.4.9-13 single   ro root=/dev/hda8  
    initrd /initrd-2.4.9-13.img  
    boot  
    passwd root  
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
Directory Mappings  Solaris HP-UX LINUX(RedHat) AIX
Unique host ID hostid uname -i hostid hostid
Administrator admintool sam linuxconf smit
Performance monitor prstat top top top
  glance   monitor
System activity reporter sar sar sar {sysstat} sar
Virtual Memory statistics vmstat vmstat vmstat vmstat
I/O statistics iostat iostat iostat {sysstat} iostat
Error logs dmesg dmesg dmesg  alog -o -t boot
      errpt
Physical RAM 16TB 4TB 64 GB {>2.3.24} 1TB
Shared Memory   8TB sysctl kernel.shmmax 2.75GB
Process Data Space   4GB 900 MB 2GB
Swap device /dev/vx/dsk/swapvol /dev/vg00/lvol2 /dev/sda2 /dev/hd6
Swap file type swap swap partition type 82  /etc/swapspaces
Display swap size swap -l swapinfo -a free lsps -a
Activate Swap swap -a swapon -a swapon -a swapon -a
Directory Mappings  Solaris HP-UX LINUX(RedHat) AIX
Printer Queues /etc/lp/interfaces/* /etc/lp/interface/* /var/spool/lpd/lp/* /etc/qconfig
Stop LP  /usr/lib/lp/lpshut lpshut /etc/init.d/lpd stop stopsrc -s lpd
Start LP /usr/lib/lp/lpsched lpsched /etc/init.d/lpd start startsrc -s lpd
Submit print jobs lp lp lpr enq
  lpr     lp
        lpr
        qprt
LP statistics lpstat lpstat lpq enq -A
        lpq
        lpstat
        qchk
Remove print jobs cancel cancel lprm cancel
  lprm     lprm
        qcan
        enq -x
Add printer queue lpadmin -p pq lpadmin -p pq printtool 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"
Directory Mappings  Solaris HP-UX LINUX(RedHat) AIX
Network IP configuration /etc/hostname.* /etc/rc.config.d/netconf /etc/sysconfig/network-scripts/  lsattr -E -l inet0
/etc/inet/*      
/etc/defaultrouter      
Hosts IP addresses /etc/inet/hosts /etc/hosts /etc/hosts /etc/hosts
Name service switch /etc/nsswitch.conf /etc/nsswitch.conf /etc/nsswitch.conf /etc/netsvc.conf
Network parameters ndd /dev/[tcp|ip] ? ndd -h sysctl -a | grep net no -a
Routing daemon in.routed gated routed gated
NIC Configurations ifconfig -a lanscan -v ifconfig -a ifconfig -a
Secondary IP Address ifconfig hme0:1 IP up ifconfig lan0:1 IP  modprobe ip_alias ifconfig en0 alias IP 
    ifconfig eth0:1 IP  
Login prompt BANNER @ telnetd -b /etc/issue  /etc/issue HERALD @
/etc/default/telnetd /etc/security/login.cfg 
Increase the # of  
  pseudo-terminals
{/etc/system} rebuild your kernel with these cd /dev odmget -q "attribute=num and
set pt_cnt = #   {SYSV} new values NPTY=#  ./MAKEDEV -v pty uniquetype=pty/pty/pty" PdAt | 
set npty = #     {BSD} NSTRPY=#   sed "s/0-64/0-512/" |
{/etc/iu.ap} reboot   odmchange -q "attribute=num and
ptsl 0 # ldterm ttcompat insf -d ptys -n #   uniquetype=pty/pty/pty" -o PdAt
halt insf -d ptym -n #   chdev -l pty0 -anum=256 -P
boot -r insf -d pts -s # -e -v   reboot
Maximum # of ptys 176               {BSD} {MAXUSERS} 256 512
3000              {SYSV}
Remote Shell rsh remsh rsh remsh
    rsh   rsh
YP/NIS service binder /usr/lib/netsvc/yp/ypbind /usr/lib/netsvc/yp/ypbind  /sbin/ypbind /usr/lib/netsvc/yp/ypbind 
Directory Mappings  Solaris HP-UX LINUX(RedHat) AIX
NFS exported /etc/dfs/dfstab /etc/exports /etc/exports /etc/exports
/etc/dfs/sharetab      
NFS Client mounted directories /etc/rmtab /etc/xtab /var/lib/nfs/xtab /etc/xtab
Max File System 1 TB 128 GB 2 TB  128 GB
  8000 TB {vxfs}      
Max File Size 1 TB 128 GB 2 GB     {512B block size}  64 GB
  2 GB {=<2.5.1}   8192 GB  {8KB block size}   
Max # File Descriptors 64 K 60~ K sysctl fs.file-max 64 K
DISK/LVM Commands SOLARIS HP-UX LINUX(RedHat) AIX
Filesystem table /etc/vfstab /etc/fstab /etc/fstab /etc/filesystems
Free disk blocks df -k bdf df -k (-m) df -k
Device listing sysdef /sbin/ioscan cat /proc/devices lsdev -C
Disk information format -d c#t#d# diskinfo /dev/rdsk/c#t#d# cat /proc/scsi/scsi0/sda/model bootinfo -s hdisk# 
format>current      
format>inquiry      
Disk Label prtvtoc pvdisplay -v /dev/dsk/C#t#d# fdisk -l lspv -l hdisk#
LVM Concepts sub disk logical extents logical extents Partition 
Volume logical volume logical volume Volume
Plex      
disk group volume group volume group Volume group
Journal Filesystem type vxfs vxfs ext3 jfs
    reiserfs  
Default volume group /dev/vx/dsk/rootdg /dev/vg00   /dev/rootvg
Display volume group vxprint -l -g rootdg vgdisplay -v vg00 vgdisplay -v lsvg -l rootvg
Modify physical volume   pvchange pvchange chpv
Prepare physical disk vxdiskadd pvcreate pvcreate mkdev -c disk -l hdisk#
List physical volume vxprint -dl pvdisplay pvdisplay lspv
Remove disk from volume group vxdg rmdisk vgreduce vgreduce reducevg
Move logical volumes to another physical volumes vxassist move pvmove pvmove migratepv
Create volume group vxdg init vgcreate vgcreate mkvg
Remove volume group   vgremove vgremove  
Volume group availability   vgchange vgchange chvg
        varyonvg
        varyoffvg
Restore volume group   vgcfgrestore vgcfgrestore  
Exports volume group vxdg deport vgexport vgexport exportvg
Imports volume group vxdg import vgimport vgimport importvg
Volume group listing   vgscan vgscan lsvg
Change logical volume characteristics  vxedit set lvchange lvchange  chlv
List logical volume vxprint -vl lvdisplay lvdisplay lslv
Make logical volume vxassist make lvcreate lvcreate mklv
Extend logical volume vxassist growto lvextend lvextend extendlv
Reduce logical volume vxassist shrinkto lvreduce lvreduce AIX reduce LV
Remove logical volume vxedit rm lvremove lvremove rmlv
Prepare boot volumes vxbootsetup lvlnboot lilo bootlist -m normal
Remove boot volumes   lvrmboot    
Extend File system vxva extendfs /dev/vg00/lvol8 resize2fs chfs -a size=# /mt
mkfs -M fsadm -F vxfs -b {LE * 1024} /mt resize_reiserfs  
Reduce/Split mirrors   lvsplit lvsplit rmlvcopy
Merge mirrors   lvmerge lvmerge  
Create mirrors vxassist mirror lvcreate -m 1   mklv -c 2
Add mirrors   lvextend -m 1   mklvcopy lv 2 
Create striped volumes vxassist make vol 100mb layout=raid5 lvcreate -i 3 -I 64 lvcreate -i 3 -I 64 mklv -u 3 -S 64K
System recovery tape   /opt/ignite/bin/make_recovery   mksysb -i /dev/rmt0
Backup ufsdump fbackup tar cvf /dev/rst0 / savevg -i rootvg
Restore ufsrestore frecover tar xvf /dev/rst0  restvg 
MISC SOLARIS HP-UX LINUX(RedHat) AIX
Startup script /etc/init.d /sbin/rc /etc/rc.d/rc /etc/rc
Kernel /kernel/genunix /stand/vmunix /boot/vmlinuz /usr/lib/boot/unix_up
Kernel Parameters sysdef -i sysdef  sysctl -a lsattr -E -l sys0
  kmtune     
  kmsystem    
Reconfigure the kernel vi /etc/system cd /stand/build cd /usr/src/linux  chdev -l sys0 -a
reboot /usr/lbin/sysadm/system_prep make mrproper   
             -v -s system make menuconfig   
  vi system make dep   
  mk_kernel -s system make clean   
  cd /stand make bzImage  
  mv system system.prev make install  
  mv vmunix vmunix.prev make modules  
  mv dlkm dlkm.prev make modules_install  
  mv /stand/build/system system cp arch/i386/boot/bzImage/boot/  
  kmupdate vmlinuz-2.2.16  
  /stand/build/vmunix_test mkinitrd  
  /boot/initrd-2.2.16.img 2.2.16  
      vi /etc/lilo.conf  
      lilo  
List modules modinfo kmadmin -s lsmod genkex
Load module modload kmadmin -L insmod  
Unload module modunload kmadmin -U rmmod  
Initialize system sys-unconfig set_parms initial netconf install_assist
Physical RAM prtconf grep -i Physical /var/adm/syslog/syslog.log free bootinfo -r
Kernel Bits isainfo -kv getconf KERNEL_BITS getconf LONG_BIT bootinfo -K
Crash utility crash adb lcrash crash
Trace System Calls truss tusc strace syscalls
Machine model uname -imp model uname -m uname -m
uname -m bootinfo -m
OS Level uname -r uname -r uname -r oslevel
Run Level who -r who -r runlevel who -r
Core dump files /var/crash/`uname -n` /var/adm/crash   /var/adm/ras
Boot single user ok boot -s >boot {lilo} Key on service mode/F4
Interact with IPL ? Y control-x Boot from CD/Tape
ISL>hpux -iS linux S Select Maintenance
  {grub} Limited function Shell
  c  
  kernel vmlinuz-2.4.9-13 single   ro root=/dev/hda8  
  initrd /initrd-2.4.9-13.img  
  boot  
Maintenance mode ok boot -as >boot    
Interact with IPL ? Y
ISL>hpux -lm
Interrupt Key Stop-A control-B    
Return to console ok go co    
Timezone Management /etc/TIMEZONE /etc/TIMEZONE /etc/sysconfig/clock /etc/environment
/etc/default/init     /etc/profile
NTP Daemon /etc/inet/ntp.conf /etc/rc.config.d/netdaemons /etc/ntp.conf /etc/ntp.conf
/etc/init.d/xntpd /sbin/init.d/xntpd /etc/rc.d/init.d/xntpd startsrc -s xntpd
Software SOLARIS HP-UX LINUX(RedHat) AIX
Install Software pkgadd swinstall rpm -i package installp -a
Uninstall software pkgrm swremove rpm -e package installp -u
List installed software pkginfo swlist rpm -qa lslpp -L all
Verify installed software pkginfo -i swlist -l fileset -a state rpm -V package lppchk -v
pkginfo -p      
List all files pkgchk -l package swlist -l file fileset rpm -ql package lslpp -f fileset
List installed patches patchadd -p swlist -l patch   instfix -i
showrev -p what /stand/vmunix    
Package owner pkgchk -l -p path swlist -l file | grep path rpm -qf file lslpp -w path
SW Directory /var/sadm /var/adm/sw/ /var/lib/rpm /usr/lpp
Devices SOLARIS HP-UX LINUX(RedHat) AIX
Devices /devices /dev /dev /dev
Install devices for attached peripherals drvconfig insf -e /dev/MAKEDEV cfgmgr –v
devlinks      
disks      
tapes      
ports      
Remove device rem_drv rmsf   rmdev –l
Device drivers prtconf -D lsdev   Lscfg
CPU psrinfo -v ioscan -fnC processor cat /proc/cpuinfo lsdev -Cc processor
List Terminal pmadm -l ioscan -fnC tty   lsdev -Cc tty
Diagnostics /usr/platform/`uname -m`/ stm lspci Diag
sbin/prtdiag   pnpdump  
ok test-all      
/opt/SUNWvts/bin/sunvts      
Whole Disk /dev/c#t#d0s2 /dev/dsk/c#t#d0 /dev/sda /dev/hdisk#
CDROM /dev/dsk/c#t6d0s2 /dev/dsk/c#t2d0 /dev/cdrom /dev/cd0
CDROM file type hsfs cdfs iso9660 Cdrfs
Rewinding tape drive /dev/rmt/0 /dev/rmt/0m /dev/rst0       { c 9 0} /dev/rmt0
Non-rewinding tape drive /dev/rmt/0n /dev/rmt/0mn /dev/nrst0      { c 9 128 } /dev/rmt0.1
Floppy drive /dev/diskette - /dev/fd0 /dev/rfd0
      Document-Folder          一覧
HP-UX
HULFT
JAVA
JP1
JavaScript
Linux
MAC
PHP
Perl
Python
Ruby
SOA
Solaris
Unix全般
Windows
XML
エクセル
スタイルシート
セキュリティー
データベース
ネットワーク
パソコン
ブラウザ
プログラム構文
仮想化
          RSS-Folder
ニュース
   アットマーク・アイティ(@IT)
   シンクイット(ThinkIT)
   インターネットコム
   インターネットウォッチ
   日経IT-Pro
   日経パソコン
   CNET Japan
   ZD-NetJapan
   MYCOM
   RBB-Today
ベンダー
   日本IBM
   日本HP
   サンマイクロシステムズ
   NEC
   富士通
   日立
ソフトウェア
   マイクロソフト
   トレンドマイクロ
   オラクル
   サイボウズ
   Mozilla
   野村総合研究所
   (その他ソフトウェア企業)
更新履歴 一覧
 07/08 PERF
プログラム構文
 07/07 PERF
プログラム構文
 06/25 オブジェクトプログラミング2
Perl>サンプル
 07/12 クローン作成
仮想化>vCenter
 07/12 vyatta設定
ネットワーク>vyatta
 07/12 vyattaインストール
ネットワーク>vyatta
 07/12 リポジトリサーバ
Linux>サーバ構築
 07/05 VMwareのインストール
仮想化>VMware
 07/05 PXEブート
仮想化>KVM
 07/01 DHCPでのPXEブート
仮想化>KVM
 06/27 qcow2仮想DISK作成
仮想化>KVM
 06/13 NWの設定
仮想化>VMwareEsxi
 06/13 IPアドレスの変更
仮想化>VMwareEsxi
 06/12 自動ssh
Unix全般>シェル>Bash
 06/12 diffプログラミング
Python
Google