all unix command
DESCRIPTION
UNIXTRANSCRIPT
Root filesystem
Home directory
Sample configuration files
User Accounts
Password files
Groups file
Maximum user ID
Allow/deny remote login
User nobody's idGroup nobody's idRecover root password
Create new userDelete userList usersModify user account
General CommandsUnique host IDAdministrator
Performance monitor
System activity reporterVirtual memory statisticsI/O statistics
Error logs
Physical RAMShared memoryProcess data space
Directory Mappings
Swap deviceSwap file typeDisplay swap sizeActivate swap
PrintersPrinter queues
Start LPSubmit print jobs
LP statistics
Remove print jobs
Add printer queueRemove printer queueMake default printer
TCP/IPNetwork IP configuration
Hosts IP addressesName service switchNetwork parametersRouting daemonNIC configurations
Secondary IP address
Login prompt
Increase the number of pseudo-terminals
Stop LP
Increase the number of pseudo-terminals
Maximum number of ptys
Remote shell
YP/NIS service binder
System Files
NFS exported
NFS client-mounted directories
Maximum file system
Maximum file size
Maximum number file descriptorsDisk/LVM Commands
Filesystem tableFree disk blocksDevice listing
Disk information
Disk labelLVM concepts
Journal filesystem type
Default volume groupDisplay volume groupModify physical volumePrepare physical diskList physical volumeRemove disk from volume group
Create volume groupRemove volume groupVolume group availability
Restore volume group
Move logical volumes to other physical volumes
Exports volume groupImports volume groupVolume group listing
List logical volumeMake logical volumeExtend logical volumeReduce logical volumeRemove logical volumePrepare boot volumesRemove boot volumes
Extend file system
Reduce/split mirrorsMerge mirrorsCreate mirrorsAdd mirrorsCreate striped volumes
System recovery tape
BackupRestore
MiscellaneousStartup scriptKernelKernel parameters
Reconfigure the kernel
List modules
Change logical volume characteristics
Load moduleUnload moduleInitialize system
Physical RAM
Kernel bitsCrash utilityTrace system calls
Miscellaneous
Machine model
OS LevelRun Level
Core dump filesMiscellaneous
Boot single user
Maintenance mode
Maintenance mode
Interrupt keyReturn to console
Timezone management
NTP dæmon
SoftwareInstall softwareUninstall softwareList installed software
Verify installed software
List all files
List installed patches
Package ownerSW directory
DevicesDevicesInstall devices for attached peripherals
Remove deviceDevice driversCPUList terminalDiagnostics
Whole diskCDROMCDROM file typeRewinding tape driveNon-rewinding tape driveFloppy drive
LinksFAQOnline manualTechnical supportFree software
Fun links
Solaris
/var
Solaris
/etc/shadow
/etc/group
2147483647/etc/default/login{CONSOLE=/dev/console}60001 & 65534(nobody4)60002 & 65534(nogroup)
vi /tmp/a/etc/shadow
useradduserdelloginsusermod
Solarishostidadmintool
top
sarvmstatiostat
dmesg
16TB
/ {/dev/vx/dsk/rootvol}/export/home /dev/vx/dsk/home}/tmp /dev/vx/dsk/swapvol}/usr
/etc/passwd
boot cdrom -s mkdir /tmp/a mount /dev/c0t0d0s0 /tmp/a
/dev/vx/dsk/swapvolswapswap -lswap -a
Solaris/etc/lp/interfaces/*/usr/lib/lp/lpshut/usr/lib/lp/lpschedlplpr
lpstat
cancellprm
lpadmin -p pqlpadmin -x pqlpadmin -d pq
Solaris/etc/hostname.*/etc/inet/*/etc/defaultrouter/etc/inet/hosts/etc/nsswitch.confndd /dev/[tcp|ip] ?in.routedifconfig -a
ifconfig hme0:1 IP up
BANNER @/etc/default/telnetd{/etc/system}
set pt_cnt = # {SYSV}
set npty = # {BSD}
{/etc/iu.ap}
boot -r
rsh
/usr/lib/netsvc/yp/ypbind
Solaris
/etc/dfs/sharetab/etc/rmtab1 TB8000 TB {vxfs}
1 TB2 GB {=<2.5.1}
64 KSolaris
/etc/vfstabdf -ksysdefformat -d c#t#d#format>currentformat>inquiryprtvtocsub diskvolumePlexdisk group
vxfs
/dev/vx/dsk/rootdgvxprint -l -g rootdg
vxdiskaddvxprint -dlvxdg rmdisk
vxassist move
vxdg init
ptsl 0 # ldterm ttcompat halt
176 {BSD} 3000 {SYSV}
/etc/dfs/dfstab
vxdg deportvxdg import
vxedit set
vxprint -vlvxassist makevxassist growtovxassist shrinktovxedit rmvxbootsetup
vxva
mkfs -M
vxassist mirror
vxassist make vol 100mb layout=raid5
ufsdumpufsrestore
Solaris/etc/init.d/kernel/genunixsysdef -i
reboot
modinfo
vi /etc/system
modloadmodunloadsys-unconfig
prtconf
isainfo -kvcrashtruss
Solaris
uname -imp
uname -rwho -r
rc0 - firmware (sparc).
rc5 - power-down.rc6 - reboot.
Q, q - re-examine /etc/inittab./var/crash/`uname -n`
Solarisok boot -s
ok boot -as
S, s - single user mode, /etc/inittab not required, basic filesystems mounted.
rc1 - administrator mode, local filesystems mounted, essential system processes, also single user mode.
rc2 - multiuser mode, multiuser environment processes and daemons.
rc3 - multiuser extended mode, local resources available over network.
rc4 - alternative multiuser configuration, not necessary for operation, usually unused.
a, b, c - /etc/inittab pseudo-state entries with the a, b, or c run level set.
ok boot -as
Stop-Aok go/etc/TIMEZONE/etc/default/init/etc/inet/ntp.conf/etc/init.d/xntpd
Solarispkgaddpkgrmpkginfo
pkginfo -ppkgchk -l package
patchadd -p
pkgchk -l -p path/var/sadm
Solaris/devices
portsrem_drvprtconf -Dpsrinfo -vpmadm -l/usr/platform/`uname -m`/
/opt/SUNWvts/bin/sunvts/dev/c#t#d0s2/dev/dsk/c#t6d0s2hsfs/dev/rmt/0/dev/rmt/0n/dev/diskette
SolarisSolaris 2 FAQSolaris 10 documentationSunSolveSun freeware
pkginfo -i
drvconfig devlinks disks tapes
sbin/prtdiag ok test-all
Linux (RedHat)
Linux (RedHat)
/etc/shadow
/etc/group
65535/etc/securetty{ttyp1}
9999
{lilo}control-xlinux Spasswd root
{grub}c
initrd /initrd-2.4.9-13.imgbootpasswd rootuseradduserdel
usermodLinux (RedHat)
hostidlinuxconf
top
vmstat
64 GB {>2.3.24}sysctl kernel.shmmax900 MB
/ {/dev/sda1}
/etc/passwd
kernel vmlinuz-2.4.9-13 single ro root=/dev/hda8
sar {sysstat}
iostat {sysstat}
dmesg
/dev/sda2
freeswapon -a
Linux/var/spool/lpd/lp/*/etc/init.d/lpd stop/etc/init.d/lpd startlpr
lpq
lprm
printtool
Linux (RedHat)
/etc/hosts/etc/nsswitch.confsysctl -a | grep netroutedifconfig -amodprobe ip_aliasifconfig eth0:1 IP
/etc/issue
cd /dev
./MAKEDEV -v pty
partition type 82
/etc/sysconfig/network-scripts/
256
rsh
/sbin/ypbind
Linux (RedHat)
/etc/exports
/var/lib/nfs/xtab
sysctl fs.file-maxLinux (RedHat)
/etc/fstabdf -kcat /proc/devices
cat /proc/scsi/scsi0/sda/model
fdisk -llogical extentslogical volume
volume groupext3reiserfs
vgdisplay -vpvchangepvcreatepvdisplayvgreduce
pvmove
vgcreatevgremovevgchange
vgcfgrestore
2 TB
2 GB {512B block size} 8192 GB {8KB block size}
vgexportvgimportvgscan
lvdisplaylvcreatelvextendlvreducelvremovelilo
resize2fs
resize_reiserfs
lvsplitlvmerge
lvcreate -i 3 -I 64
tar cvf /dev/rst0 /
Linux (RedHat)/etc/rc.d/rc/boot/vmlinuzsysctl -a
lilolsmod
lvchange
tar xvf /dev/rst0
cd /usr/src/linux 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
insmodrmmodnetconf
free
getconf LONG_BIT
straceLinux (RedHat)
uname -m
uname -rrunlevelrc0 - system halted.
rc1 - single-user mode.
Linux (RedHat){lilo}control-xlinux S
{grub}c
initrd /initrd-2.4.9-13.imgboot
lcrash
rc2-4 - multiuser modes, level 2 or 3 depends on distro.
rc5 - multiuser with GUI, most (but not all) distros.
rc6 - reboot system, return to default run level.
kernel vmlinuz-2.4.9-13 single ro root=/dev/hda8
/etc/sysconfig/clock
/etc/ntp.conf/etc/rc.d/init.d/xntpd
Linux (RedHat)rpm -i packagerpm -e packagerpm -qa
rpm -V package
rpm -ql package
rpm -qf file/var/lib/rpm
Linux (RedHat)/dev/dev/MAKEDEV
cat /proc/cpuinfo
lspcipnpdump
/dev/sda/dev/cdromiso9660
/dev/fd0Linux (RedHat)
/dev/rst0 { c 9 0}/dev/nrst0 { c 9 128 }
Linux FAQLinux documentation ProjectRed Hat supportLinux software map
AIX
-AIX
/etc/security/passwd
/etc/security/group4294967295
/etc/security/user{rlogin=true}
42949672944294967294
vi /etc/security/passwd
mkuserrmuserlsuser -f ALLchuser -a
AIXhostidsmittopmonitorsarvmstatiostatalog -o -t booterrpt1TB2.75GB2GB
/ {/dev/hd4}
/home {/dev/hd1}
/tmp {/dev/hd3}
/usr {/dev/hd2}/var {/dev/hd9var}
/etc/passwd
/etc/group
boot from CD/Tape Installation/Maintenance Start Limited Shell getrootfs hdisk0
/dev/hd6/etc/swapspaceslsps -aswapon -a
AIX/etc/qconfigstopsrc -s lpdstartsrc -s lpdenqlplprqprtenq -Alpqlpstatqchkcancellprmqcanenq -xsmit mkpqsmit rmpqexport LPDEST="pq"
AIXlsattr -E -l inet0
/etc/hosts/etc/netsvc.confno -agatedifconfig -a
chdev -l pty0 -anum=256 -P
reboot
ifconfig en0 alias IP
HERALD @ /etc/security/login.cfg odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" |
odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt
512
remshrsh
AIX
/etc/exports
/etc/xtab
128 GB
64 GB
64 KAIX
/etc/filesystemsdf -klsdev -C
lspv -l hdisk#
volume
volume group
jfs
/dev/rootvglsvg -l rootvgchpvmkdev -c disk -l hdisknumlspvreducevg
migratepv
mkvg
chvgvaryonvgvaryoffvg
/usr/lib/netsvc/yp/ypbind
bootinfo -s hdisk#
Partition
exportvgimportvglsvg
chlv
lslvmklvextendlv
rmlvbootlist -m normal
rmlvcopy
mklv -c 2
mklv -u 3 -S 64K
mksysb -i /dev/rmt0
savevg -i rootvg
AIX/etc/rc/usr/lib/boot/unix_uplsattr -E -l sys0
genkex
AIX reduce LV
chfs -a size=# /mt
mklvcopy lv 2
restvg
chdev -l sys0 -a
install_assist
bootinfo -r
bootinfo -Kcrashsyscalls
AIXuname -mbootinfo -moslevelwho -rrc0 - reserved.
rc1 - reserved.
rc2 - (default) multiuser mode.
rc3-rc9 - administrator-defined.
/var/adm/rasAIX
Limited function Shell
Key on service mode/F4 Boot from CD/Tape Select Maintenance
/etc/environment/etc/profile/etc/ntp.confstartsrc -s xntpd
AIXinstallp -ainstallp -ulslpp -L all
lppchk -v
lslpp -f fileset
instfix -i
lslpp -w path/usr/lpp
AIX/devcfgmgr -v
rmdev -llscfglsdev -Cc processorlsdev -Cc ttydiag
/dev/hdisk#/dev/cd0cdrfs/dev/rmt0/dev/rmt0.1/dev/rfd0
AIXAIX-FAQAIX 5.3 documentationp5 TechSupportPublic-domain software library
AIX command primer
HP-UX
/usr/newconfig
HP-UX
/tcb/files/auth/r/root
/etc/logingroup2147483647
/etc/securetty{console}
-2-2(nogroup)>bootInteract with IPL ? Y
passwd root
useradduserdelloginsusermod
HP-UXuname -isamtopglancesarvmstatiostat
dmesg
4TB8TB4GB
/ {/dev/vg00/lvol1}
/home {/dev/vg00/lvol4}
/tmp {/dev/vg00/lvol6}
/usr {/dev/vg00/lvol7}/var {/dev/vg00/lvol8}
/etc/passwd
/etc/group
ISL>hpux -iS
/dev/vg00/lvol2swapswapinfo -aswapon -a
HP-UX/etc/lp/interface/*lpshutlpschedlp
lpstat
cancel
lpadmin -p pqlpadmin -x pqlpadmin -d pq
HP-UX/etc/rc.config.d/netconf
/etc/hosts/etc/nsswitch.confndd -hgatedlanscan -v
ifconfig lan0:1 IP
telnetd -b /etc/issue
rebuild your kernel with these new values NPTY=#
NSTRPY=#
reboot
insf -d ptys -n #
{MAXUSERS}
remsh
HP-UX
/etc/exports
/etc/xtab
128 GB
128 GB
60~ K
/etc/fstabbdf/sbin/ioscan
diskinfo /dev/rdsk/c#t#d#
pvdisplay -v /dev/dsk/C#t#d#logical extentslogical volume
volume group
vxfs
/dev/vg00vgdisplay -v vg00pvchangepvcreatepvdisplayvgreduce
pvmove
vgcreatevgremovevgchange
vgcfgrestore
insf -d ptym -n # insf -d pts -s # -e -v
/usr/lib/netsvc/yp/ypbind
HP-UX:Disk &Filesystem
vgexportvgimportvgscan
lvchange
lvdisplaylvcreatelvextendlvreducelvremovelvlnbootlvrmboot
lvsplitlvmergelvcreate -m 1lvextend -m 1lvcreate -i 3 -I 64
/opt/ignite/bin/make_recovery
fbackupfrecover
HP-UX/sbin/rc/stand/vmunixsysdef
kmsystem
mv /stand/build/system system
kmupdate /stand/build/vmunix_test
kmadmin -s
extendfs /dev/vg00/lvol8
fsadm -F vxfs -b {LE * 1024} /mt
kmtun
cd /stand/build /usr/lbin/sysadm/system_prep -v -s system
vi system mk_kernel -s system cd /stand mv system system.prev mv vmunix vmunix.prev mv dlkm dlkm.prev
kmadmin -Lkmadmin -Uset_parms initial
getconf KERNEL_BITSadb
HP-UXmodeluname -muname -rwho -r
rc2 - multiuser mode, without NFS.
rc4 - multiuser mode, with VUE (GUI).
rc6 - reboot.
/var/adm/crashHP-UX
>bootInteract with IPL ? YISL>hpux -iS
>bootInteract with IPL ? Y
grep -i Physical /var/adm/syslog/syslog.log
tusc
rc0 - shut down, processes terminated, filesystems unmounted.
rc1,s,S - single-user mode, services and daemons terminated, filesystems unmounted.
rc3 - multiuser mode, normal operational.
ISL>hpux -lmcontrol-Bco
/etc/TIMEZONE
/etc/rc.config.d/netdaemons/sbin/init.d/xntpd
HP-UXswinstallswremoveswlist
swlist -l fileset -a state
swlist -l file filesetswlist -l patchwhat /stand/vmunixswlist -l file | grep path/var/adm/sw/
HP-UX/devinsf -e
rmsflsdevioscan -fnC processorioscan -fnC ttystm
/dev/dsk/c#t#d0/dev/dsk/c#t2d0cdfs/dev/rmt/0m/dev/rmt/0mn-
HP-UXHP-UX FAQHP-UX reference manualIT Resource CenterHP-UX portsDeveloper downloads Compiler (gcc) HP’s gdb (wdb) Newer version of Perl