Directory Mappings Aix Freebsd Hp-Ux Linux(Redhat): Hermelito Go

Published on July 2020 | Categories: Documents | Downloads: 9 | Comments: 0 | Views: 109
of 5
Download PDF   Embed   Report

Comments

Content

 

© 2000 UNIXguide.net, All Rights Reserved.Hermelito Reserved.Hermelito Go (Last Update: Directory Mappings AIX FreeBSD

Wednesday, 07-Dec-2005 11:11:32 PST ) HP-UX LINUX(RedHa / / {/dev/vg00/lvol1} {/dev/sda1}

Root filesystem

/

{/dev/hd4}

/

Home Directory

/home

{/dev/hd1}

 

/home

{/dev/vg00/lvol4}

/tmp

{/dev/hd3}

 

/tmp

{/dev/vg00/lvol6}

/usr

{/dev/hd2}

/usr

{/dev/vg00/lvol7}

/var

{/dev/hd9var}

/usr /var  

/var

{/dev/vg00/lvol8}

S am am pl pl e c on on fi fi gu gu ra ra ti ti on on fi le le s

-

User Accounts

Password files Groups file Maximum # of user ID Allow/Deny remote login User nobody's id # Group nobody's id #

{/dev/ad0s1a}

{/dev/ad0s1f} {/dev/ad0s1e}

AIX

/etc/passwd  /etc/security/passwd /etc/group  /etc/security/group 4294967295 /etc/security/user  {rlogin=true} 4294967294 4294967294

/usr/newconfig FreeBSD

/etc/passwd  /etc/master.passwd

/etc/group  /etc/logingroup 2147483647

/etc/group 65535

/etc/ttys

/etc/securetty  {console} -2 -2(nogroup)

{secure} 65534 65534

Recover root password

getrootfs hdisk0  vi /etc/security/passwd

Create new user Delete user

mkuser rmuser

List users

lsuser -f ALL

Modify user account

chuser -a

General Commands

hostid

Administrator

smit

Performance monitor

top  monitor sar vmstat iostat

System activity reporter Virtual Memory statistics I/O statistics

>boot Interact with IPL ? Y

ok boot -s  passwd root

ISL>hpux -iS  passwd root

adduser rmuser

Error logs

alog -o -t boot  errpt

Physical RAM

1TB

Shared Memory

2.75GB

Process Data Space

2GB

Swap device

/dev/hd6

Swap file type Display swap size Activate Swap Printers Printer Queues

/etc/swapspaces lsps -a swapon -a AIX /etc/qconfig

Stop LP

stopsrc -s lpd

Start LP

startsrc -s lpd

useradd userdel

   

/etc/group 65535 /etc/securetty  {ttyp1} 99 99

{grub} c kernel vmlinuz-2.4. e ro root=/dev/hd initrd /initrd-2.4. boot passwd root useradd userdel

logins usermod

AIX

Unique host ID

LINUX(RedHa

/etc/passwd  /etc/shadow

{lilo} control-x linux S passwd root

boot from CD/Tape  Installation/Maintenance  Start Limited Shell 

HP-UX

/etc/passwd  /tcb/files/auth/r/root

FreeBSD

usermod HP-UX

LINUX(RedHa

   

uname -i

hostid

sam

linuxconf

top

top  glance sar vmstat iostat

top

dmesg

dmesg

sa vmstat iostat dmesg

      /dev/ad0s1b swap swapinfo swapon -a FreeBSD /var/spool/print

 

4TB

64 GB {>2.3.24}

8TB

sysctl kernel.shmma

4GB

900 MB

/dev/vg00/lvol2

/dev/sda2

swap swapinfo -a swapon -a HP-UX /etc/lp/interface/* lpshut

lpd

sar{sysstat} vmstat iostat{sysstat}

lpsched

partition type 82 free swapon -a LINUX /var/spool/lpd/lp

/etc/init.d/lpd sto

/etc/init.d/lpd st

 

enq  Submit print jobs

lp  lpr  qprt

lp

lp

lpr

lpq

lpstat

lpq

cancel  lprm

cancel

lprm

lpadmin -p pq

printtool

enq -A  LP statistics

lpq  lpstat  qchk cancel 

Remove print jobs

Add printer queue

lprm  qcan  enq -x smit mkpq

Remove Printer queue

smit rmpq

Make default printer

export LPDEST="pq"

TCP/IP

AIX

Network IP configuration

lsattr -E -l inet0

Hosts IP addresses Name se service s sw witch Network parameters Routing daemon NIC Configurations

/etc/hosts /etc/netsvc.conf no -a gated ifconfig -a

Secondary IP Address

ifconfig en0 alias IP

Login prompt

Increase the # of pseudoterminals

       

lpadmin -x pq lpadmin -d pq HP-UX

/etc/rc.conf /etc/hosts /etc/host.conf sysctl routed ifconfig -a ifconfig xl0 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 

Remote Shell YP/NIS service binder System Files NFS exported NFS Client mounted directories

512 remsh  rsh /usr/lib/netsvc/yp/ypbind AIX

ifconfig lan0:1 IP

/etc/sysconfig/netw scripts/

/etc/hosts /etc/nsswitch.con sysctl -a | grep n routed ifconfig -a modprobe ip_alias  ifconfig eth0:1 IP /etc/issue

rebuild your kernel with these new values NPTY=# NSTRPY=#  reboot 

 

insf -d ptys -n # 

cd /dev  ./MAKEDEV -v pty

insf -d ptym -n #  insf -d pts -s # -e -v 

 

{MAXUSERS}

256

rsh

remsh

rsh

/usr/sbin/ypbind FreeBSD

/etc/exports /etc/xtab

/etc/hosts /etc/nsswitch.conf ndd -h gated lanscan -v

telnetd -b /etc/issue

chdev -l pty0 -anum=256 -P  reboot

Maximum # of ptys

/etc/rc.config.d/netconf

LINUX(RedHa

/etc/exports

/usr/lib/netsvc/yp/ypbind HP-UX /etc/exports

/sbin/ypbind LINUX(RedHa /etc/exports

 

/etc/xtab

/var/lib/nfs/xtab

Max File System

128 GB

 

128 GB

2 TB

Max File Size

64 GB

 

128 GB

2 GB 8192 GB

Max # File Descriptors

64 K

 

60~ K

sysctl fs.file-max

DISK/LVM Commands Filesystem table Free disk blocks

AIX /etc/filesystems df -k

Device listing

lsdev -C

Disk information

bootinfo -s hdisk#

fdisk -v ad0

Disk Label LVM Concepts

lspv -l hdisk# Partition

disklabel ad0 sub disk

FreeBSD

/etc/fstab df -k

 

HP-UX:Disk &Filesystem  /etc/fstab bdf

/sbin/ioscan diskinfo /dev/rdsk/c#t#d#

{512B bloc {8KB block

LINUX(RedHa /etc/fstab df -k

cat /proc/devices

cat /proc/scsi/scsi0/sd

pvdisplay -v /dev/dsk/C#t#d# fdisk -l logical extents logical extents

 

Volume

Volume Plex

logical volume

logical volume

Volume group

 

volume group

volume group ext3 reiserfs

Journal Fi Filesystem ty type

jfs

 

vxfs

Default volume group

/dev/rootvg

/dev/vg00

Display volume group

lsvg -l rootvg

       

Modify physical volume

chpv

Prepare ph physical d di isk

mkdev -c di disk -l -l h hd disk#

List physical volume lspv Remove Remov e disk from from vol volume ume group group reducevg reducevg Move logical volumes to another physical volumes Create volume group

 

migratepv

vgdisplay -v vg00

vinum ld

vinum move -f drive object

 

mkvg

Remove volume group

vgdisplay -v

pvchange

pvchange

pvcreate

pvcreate

pvdisplay vgreduce

pvdisplay vgreduce

pvmove

pvmove

vgcreate

vgcreate

vgremove

Volume group availability

chvg  varyonvg  varyoffvg

vgremove

 

vgchange

     

vgexport

vgexport

vgimport

vgimport

vgscan

vgscan

 

lvchange

lvchange

Restore volume group

vgchange

vgcfgrestore

Exports volume group

exportvg

Imports volume group

importvg

Volume group listing

lsvg

Change logical volume characteristics List logical volume

chlv lslv

Make logical volume

vinum lv

Extend logical volume

extendlv AIX reduce LV

Reduce logical volume Remove logical volume

rmlv

Prepare boot volumes

bootlist -m normal

lvdisplay

     

mklv

vgcfgrestore

vinum rm vol

lvdisplay

lvcreate

lvcreate

lvextend

lvextend

lvreduce

lvreduce

lvremove

 

lvremove

lvlnboot

Remove boot volumes

lilo

lvrmboot

Extend File system

chfs -a size=# /mt

 

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

resize2fs resize_reiserfs

Reduce/Split mirrors

rmlvcopy

 

lvsplit

lvsplit

lvmerge

lvmerge

Merge mirrors Create mirrors

mklv -c 2

Add mirrors

mklvcopy lv 2

Create striped volumes

mklv -u 3 -S 64K

System recovery tape

mksysb -i /dev/rmt0

Backup Restore

savevg -i rootvg restvg  

MISC

vinum mirror drive 

lvextend -m 1 vinum stripe drive

lvcreate -i 3 -I

/opt/ignite/bin/make_recovery vinum saveconfig

AIX

fbackup frecover FreeBSD

/etc/rc

/etc/rc

Kernel

/usr/lib/boot/unix_up

/kernel

Kernel Parameters

lsattr -E -l sys0

sysctl -a

chdev -l sys0 -a

lvcreate -i 3 -I 64

 

Startup script

Reconfigure the kernel

 

lvcreate -m 1

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

tar cvf /dev/rst0 tar xvf /dev/rst0 HP-UX

/sbin/rc /stand/vmunix sysdef kmtune kmsystem

L

/etc/rc.d/rc /boot/vmlinuz sysctl -a

cd /stand/build  cd /usr/src/linux /usr/lbin/sysadm/system_prep make mrproper  -v -s system  make menuconfig vi system  mk_kernel -s system 

cd /stand  mv system system.prev  mv vmunix vmunix.prev  mv dlkm dlkm.prev 

make dep make clean make bzImage make install make modules make modules_install

  mv /stand/build/system system kmupdate cp arch/i386/boot/bzI /stand/build/vmunix_test /boot/vmlinuz-2.2.16

 

mkinitrd /boot/initrd-2 2.2.16 vi /etc/lilo.conf  lilo List modules

genkex

Load module

   

Unload module

kldstat

kmadmin -s

kldload

kmadmin -L

insmod

kldunload

kmadmin -U

rmmod

Initialize system

install_assist

/stand/sysinstall

Physical RAM

bootinfo -r

sysctl hw.physmem

Kernel Bits

bootinfo -K

Crash utility Trace System Calls

crash syscalls

OS Level

uname -m  bootinfo -m oslevel

Run Level

who -r

Core dump files

/var/adm/ras

Machine model

  crash truss

grep -i Physical /var/adm/syslog/syslog.log adb tusc

uname -r

   

netconf free getconf L LO ONG_BIT lcrash strace

model  uname -m uname -r

uname -m

Boot from CD/Tape  Select Maintenance  Limited function Shell

set_parms initial

getconf K KE ERNEL_BITS

uname -m uname -r

who -r

runlevel

/var/adm/crash {lilo} control-x linux S

Key on service mode/F4  Boot single user

lsmod

ok boot -s

>boot Interact with IPL ? Y ISL>hpux -iS

ok boot -as

>boot Interact with IPL ? Y ISL>hpux -lm

{grub} c kernel vmlinuz-2.4. e ro root=/dev/hd initrd /initrd-2.4. boot

Maintenance mode

 

Interrupt Key

control-B

Return to console Timezone Management NTP Daemon

co /etc/environment /etc/profile /etc/ntp.conf startsrc -s xntpd

Software

AIX

Install Software Uninstall software List installed software

installp -a installp -u lslpp -L all

V er er if if y i ns ns ta ta ll ll ed ed s of of tw twa re re

l pp pp ch ch k - v

List all files

lslpp -f fileset

List installed patches Package owner

instfix -i lslpp -w path

SW Directory Devices Devices

/usr/lpp

/etc/localtime

 

swli swlist st -l file filese set t -a -a sta state te pkg_info -L package

/var/db/pkg

Device drivers

lscfg

CPU

lsdev -Cc processor

List Terminal

lsdev -Cc tty

Diagnostics

diag

swlist -l file fileset swlist -l patch  what /stand/vmunix swli swlist st -l file file | g gre rep p p pat ath h

   

/etc/ntp.conf /etc/rc.d/init.d/xn

LINUX(RedHa

rpm -i package rpm -e package rpm -qa rpm rpm -V -V pac packa kage ge rpm -ql package   rpm rpm -qf qf file file

/dev

/var/adm/sw/ HP-UX /dev

/var/lib/rpm LINUX(RedHa /dev

/dev/MAKEDEV

insf -e

/dev/MAKEDEV

AIX

rmdev -l

/etc/sysconfig/clo

HP-UX

swinstall swremove swlist

 

/dev

/etc/TIMEZONE

/etc/rc.conf {xntpd_enable="YES"} /etc/rc.config.d/netdaemons /sbin/init.d/xntpd /etc/rc.network pkg_add pkg_delete pkg_info -a

Install devices for attached cfgmgr -v peripherals

Remove device

 

FreeBSD

   

rmsf lsdev sysctl hw.model

  pciconf -l

ioscan -fnC processor

cat /proc/cpuinfo

ioscan -fnC tty

stm

lspci pnpdump

 

Whole Disk CDROM CDROM file type

/dev/hdisk# /dev/cd0 cdrfs

/dev/ad0s1c /dev/acd0c cd9660

/dev/dsk/c#t#d0 /dev/dsk/c#t2d0 cdfs

Rewinding tape drive

/dev/rmt0

/dev/rwt0d

/dev/rmt/0m

Non-rewinding tape drive

/dev/rmt0.1

/dev/nrwt0d

/dev/rmt/0mn

Floppy drive

/dev/rfd0 Links

/dev/fd0 AIX

FreeBSD

HP-UX

/dev/sda /dev/cdrom iso9660 /dev/rst0 0} /dev/nrst0 128 } /dev/fd0 LINUX(RedHa

FAQ

AIX-FAQ

FreeBSD FAQ

HP-UX FAQ

LINUX FAQ

Online Manual Technical Support

AIX 5.3 Docs p5 TechSupport

HP-UX Reference Manual IT Resource Center

Linux Documentation Red Hat support

1-800-633-3600

1-888-REDHAT1

Phone Number

1-800-CALL-AIX

FreeBSD Hand Book     

Free Software

Public Domain Software Library

FreeBSD Primary Site

HP-UX Ports

Linux Software Map

Certification

www.ibm.com

 

education.hp.com

RHCE

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close