Directory Mappings Linux Tru64 Solaris AIX Hp−Ux Hp−Ux: Hermelito Go

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

Comments

Content

UNIXguide.net ( AIX, FreeBSD, HP−UX, LINUX, SOLARIS & Tru64)

 © 2000 UNIXguide.n UNIXguide.net, et, All Rights Reserved. Hermelito Go Go   (Last Update: Update: 14 Nov 2000)

Directory Mappings

Root filesystem

LINUX

 / {/dev/sda1}

Tru64

 /

{/dev/rz0a}

Home Directory

 /usr

{/dev/rz0g}

SOLARIS

AIX

LINUX

 / {/dev/vg00/lvol1}

 / {/dev/vg00/lvol1}

/home

/home

/

 /export/home   /dev/vx/dsk/home}

 /home

 /tmp  /dev/vx/dsk/swapvol}  /dev/vx/dsk/swapv ol}

 /tmp

/usr

/usr

{/dev/hd2}

/usr

{/dev/vg00/lvol7}

/usr

{/dev/vg00/lvol7}

 /var

/var

{/dev/hd9var}

/var

{/dev/vg00/lvol8}

/var

{/dev/vg00/lvol8}

{/dev/hd1}

{/dev/hd3}



User Accounts

HP−UX

/ {/dev/vx/dsk/rootvol}

Sample configuration files

{/dev/hd4}

HP−UX

Tru64

Solaris

Password files

 /etc/passwd  /etc/shadow

 /etc/passwd

 /etc/passwd  /etc/shadow

Groups file

/etc/group

/etc/group

/etc/group

/tmp

{/dev/vg00/lvol4}

{/dev/vg00/lvol6}

/usr/newconfig

AIX

/tmp

{/dev/vg00/lvol4}

{/dev/vg00/lvol6}

/usr/newconfig

HP−UX

HP−UX

 /etc/passwd  /etc/security/passwd  /etc/security/pa sswd

 /etc/passwd  /tcb/files/auth/r/roott  /tcb/files/auth/r/roo

 /etc/passwd  /tcb/files/auth/r/roott  /tcb/files/auth/r/roo

 /etc/group

 /etc/group

 /etc/group

 /etc/security/group  /etc/security/gr oup

 /etc/logingroup

 /etc/logingroup

Maximum # of user ID

65535

65535

2147483647

4294967295

2147483647

2147483647

Allow/Deny remote login

 /etc/securetty {ttyp1}

 /etc/securettys {ttyp1}

 /etc/default/login {CONSOLE=/dev/console}

 /etc/security/user  /etc/security/user {rlogin=true}

 /etc/securetty {console}

 /etc/securetty {console}

User nobody's id #

99

65534

60001 & 65534(nobody4)

4294967294

−2

−2

Group nobody's id #

99

65534

60002 & 65534(nogroup)

4294967294

−2(nogroup)

−2(nogroup)

Recover root password

linux S vi /etc/shadow

press the HALT Button or (Control−P) >>>boot −fl s lsmbstartup  /sbin/bcheckrc

boot cdrom −s mount /dev/c0t0d0s0 /mnt vi /mnt/etc/shadow

boot from CD/Tape Installation/Maintenance Start Limited Shell getrootfs hdisk0 vi /etc/security/passwd /etc/security/passwd

>boot Interact with IPL ? Y ISL>hpux −is vi /t cb/files/auth/r/r cb/files/auth/r/root oot vi /etc/shadow

>boot Interact with IPL ? Y ISL>hpux −is vi /tcb/files/auth/r/ro /tcb/files/auth/r/root ot vi /etc/shadow

1

UNIXguide.net ( AIX, FreeBSD, HP−UX, LINUX, SOLARIS & Tru64) passwd root Create new user

useradd

useradd

useradd

mkuser

useradd

Delete user

userdel

userdel

userdel

rmuser

userdel

userdel

logins

lsuser −f ALL

logins

logins

usermod

chuser −a

usermod

usermod

List users Modify user account

usermod

General Commands

LINUX

Unique host ID

hostid

Administrator

linuxconf

Performance monitor

usermod

Tru64

hostid

AIX

HP−UX

HP−UX

hostid

hostid

uname −i

uname −i

admintool

smit

sam

sam

top monitor

top glance

top glance sar

top

top

top sar

sar

sar

vmstat

vmstat

vmstat

vmstat

vmstat

vmstat

iostat

iostat

iostat

iostat

iostat

System activity reporter Virtual Memory statistics

Solaris

useradd

I/O statistics Error logs

dmesg

uerf −R −o full

dmesg

alog −o −t boot errpt

dmesg

dmesg

Physical RAM

64 GB {>2.3.24}

4TB

16TB

1M TB

4TB

4TB

Shared Memory

sysctl kernel.shmmax

64K TB

8TB

8TB

Process Data Space

900 MB

384K TB

4TB

4TB

Swap device

/dev/sda2

/dev/rz0b

/dev/vx/dsk/swapvol

/dev/hd6

/dev/vg00/lvol2

/dev/vg00/lvol2

Swap file type

partition type 82

raw

swap

/etc/swapspaces

swap

swap

Display swap size

free

swapon −s

swap −l

lsps −a

swapinfo −a

swapinfo −a

Activate Swap

swapon −a

swapon −a

swap −a

swapon −a

swapon −a

swapon −a

Printers

LINUX

Tru64

Solaris

AIX

HP−UX

HP−UX

Printer Queues

/var/spool/lpd/lp/*

/usr/spool/lpd

/etc/lp/interfaces/*

/etc/qconfig

/etc/lp/interface/*

Stop LP

/etc/init.d/lpd stop

/sbin/init.d/lpd stop

/usr/lib/lp/lpshut

stopsrc −s lpd

lpshut

/etc/lp/interface/* lpshut

Start LP

/etc/init.d/lpd start

/sbin/init.d/lpd start

/usr/lib/lp/lpsched

startsrc −s lpd

lpsched

lpsched

2

UNIXguide.net ( AIX, FreeBSD, HP−UX, LINUX, SOLARIS & Tru64) Submit print jobs

lpr

lp lpr

lp lpr

LP statistics

lpq

lpstat

lpstat

Remove print jobs

lprm

cancel lprm

cancel lprm

Add printer queue

printtool

enq lp lpr qprt −A enq lpq lpstat qchk  cancel lprm qcan enq −x

lp

lp

lpstat

lpstat

cancel

cancel

lprsetup

lpadmin −p pq

smit mkpq

lpadmin −p pq

lpadmin −p pq

Remove Printer queue

lprsetup

lpadmin −x pq

smit rmpq

lpadmin −x pq

lpadmin −x pq

Make default printer

export PRINTER="lp"

lpadmin −d pq

export LPDEST="pq"

lpadmin −d pq

lpadmin −d pq

TCP/IP

Ne Netwo twork rk IP con config figura uratio tion n

LINUX

/etc/s /etc/sysc ysconf onfig/ ig/net networ work−s k−scri cripts pts//

Tru64

/et /etc/r c/rc.c c.conf onfig ig

Solaris

 /etc/hostname.*  /etc/inet/*  /etc/defaultrouter  /etc/defaultro uter

AIX

lsattr −E −l inet0

HP−UX

/etc/rc.config.d/netconf

HP−UX

/etc/rc.config.d/netconf  

Hosts IP addresses

/etc/hosts

/etc/hosts

/etc/inet/hosts

/etc/hosts

/etc/hosts

/etc/hosts

Name service switch

/etc/nsswitch.conf

/etc/svc.conf

/etc/nsswitch.conf

/etc/netsvc.conf

/etc/nsswitch.conf

/etc/nsswitch.conf  

Network parameters

sysctl −a | grep net

ndd /dev/[tcp|ip] ?

no −a

ndd −h

ndd −h

Routing daemon

routed

routed

in.routed

gated

gated

gated

NIC Configurations

ifconfig −a

ifconfig −a

ifconfig −a

ifconfig −a

lanscan −v

lanscan −v

Secondary IP Address

modprobe ip_alias ifconfig eth0:1 IP

i fc fconfig ln0 alias

ifconfig hme0:1 IP up

ifconfig en0 alias IP

ifconfig lan0:1 IP

ifconfi g lan0:1 IP

BANNER @  /etc/default/telnetd  /etc/default/teln etd

HERALD @  /etc/security/login.cfg  /etc/security/login .cfg

{/etc/system} set pt_cnt = # {SYSV} set npty = # {BSD}

odmget −q "attribute=num and uniquetype=pty/pty/pty" uniquetype=pty/pty /pty" PdAt | sed "s/0−64/0−512/" | odmchange −q "attribute=num and uniquetype=pty/pty/pty" −o PdAt

Login prompt

/etc/issue

/etc/issue

Increase the # of  pseudo−terminals

cd /dev ./MAKEDEV −v pty

cd /dev ./MAKEDEV PTY_1

{/etc/iu.ap} ptsl 0 # ldterm ttcompat

halt

chdev −l pty0 −anum=256 −P reboot

telnetd −b /etc/issue

telnetd −b /etc/issue

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

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

reboot

reboot

insf −d ptys −n #

insf −d ptys −n #

insf −d ptym −n #

insf −d ptym −n #

3

UNIXguide.net ( AIX, FreeBSD, HP−UX, LINUX, SOLARIS & Tru64) boot −r

insf −d pts −s # −e −v

insf −d pts −s # −e −v

Maximum # of ptys

256

8192

176 {BSD} 3000 {SYSV}

512

{MAXUSERS}

{MAXUSERS}

Remote Shell

rsh

rsh

rsh

remsh rsh

remsh

remsh

YP/NIS service binder

/sbin/ypbind

/usr/sbin/ypbind

/usr/lib/netsvc/yp/ypbind

/usr/lib/netsvc/yp/ypbind

/usr/lib/netsvc/yp/ypbind

/usr/lib/netsvc/yp/ypbind

System Files

LINUX

Tru64

Solaris

AIX

HP−UX

HP−UX

NFS exported

/etc/exports

/etc/exports

 /etc/dfs/dfstab  /etc/dfs/sharetab  /etc/dfs/share tab

 /etc/exports

/etc/exports

/etc/exports

NFS Client mounted directories

/var/lib/nfs/xtab

/var/adm/mountdtab

/etc/rmtab

/etc/xtab

/etc/xtab

/etc/xtab

Max File System

2 TB

128 GB {<= 3.2G} 512 GB {>= 4.0} 16 TB {advfs}

1 TB 8000 TB {vxfs}

128 GB

128 GB

128 GB

Max File Size

2 GB {512B block size} 8192 GB {8KB block size}

128 GB {<= 3.2G} 512 GB {>= 4.0} 16 TB {advfs}

1 TB 2 GB {=<2.5.1}

64 GB

128 GB

128 GB

Max # File Descriptors

sysctl fs.file−max

64 K

64 K

64 K

60~ K

60~ K

DISK/LVM Commands

LINUX

Tru64

SOLARIS

AIX

 

HP−UX:Disk HP−UX: Disk &Filesy &Filesystem stem

HP−UX:Disk HP−UX: Disk &Filesy &Filesystem stem

Filesystem table

/etc/fstab

/etc/fstab

/etc/vfstab

/etc/filesystems

/etc/fstab

/etc/fstab

Free disk blocks

df −k

df −k

df −k

df −k

bdf

bdf

Device listing

cat /proc/devices

sysdef

lsdev −C

/sbin/ioscan

/sbin/ioscan

Disk in information

cat //p proc/scsi/scsi0/sda/model

file /d /dev/rrz0c

format −d c#t#d# format>current format>inquiry

bootin bootinfo fo −s hdisk# hdisk#

diskin diskinfo fo /dev/r /dev/rdsk dsk/c# /c#t#d t#d# #

diskin diskinfo fo /dev/r /dev/rdsk dsk/c# /c#t#d t#d# #

Disk Label

fdisk −l

disklabel −p rz0

prtvtoc

lspv −l hdisk#

pvdisplay −v /dev/dsk/C#t#d#

pvdisplay −v /dev/dsk/C#t#d#

logical extents

sub disk

sub disk

Partition

logical extents

logical extents

logical volume

Volume

Volume

Volume

logical volume

logical volume

Plex

Plex

LVM Concepts

 

4

UNIXguide.net ( AIX, FreeBSD, HP−UX, LINUX, SOLARIS & Tru64)

Journal Filesystem type

volume group

disk group

ext2

Default volume group Display volume group

vgdisplay −v

disk group

Volume group

volume group

volume group

advfs

vxfs

/dev/vol/rootdg

/dev/vx/dsk/rootdg

jfs

vxfs

vxfs

/dev/rootvg

/dev/vg00

/dev/vg00

volprint −l −g rootdg

vxprint −l −g rootdg

lsvg −l rootvg

vgdisplay −v vg00

vgdisplay −v vg00

Modify physical volume

pvchange

chpv

pvchange

pvchange

Prepare physical disk

pvcreate

voldiskadd

vxdiskadd

mkdev −c disk −l hdisk#

pvcreate

pvcreate

List physical volume

pvdisplay

volprint −dl

vxprint −dl

lspv

pvdisplay

pvdisplay

Remove disk from volume group

vgreduce

voldg rmdisk

vxdg rmdisk

reducevg

vgreduce

vgreduce

Move logical volumes to another physical volumes

pvmove

volassist move

vxassist move

migratepv

pvmove

pvmove

Create volume group

vgcreate

voldg init

vxdg init

mkvg

vgcreate

vgcreate

Remove volume group

vgremove

vgremove

vgremove

Vol um um e gr gr o ou up a va va ilil ab ab ilil itit y

vg ch ch an an g gee

vgchange

vgchange

Restore volume group

vgcfgrestore

vgcfgrestore

vgcfgrestore

chvg varyonvg varyoffvg

Exports volume group

vgexport

voldg deport

vxdg deport

exportvg

vgexport

vgexport

Imports volume group

vgimport

voldg import

vxdg import

importvg

vgimport

vgimport

Volume group listing

vgscan

lsvg

vgscan

vgscan

Change logical volume characteristics

lvchange

voledit set

vxedit set

chlv

lvchange

lvchange

List logical volume

lvdisplay

volprint −vl

vxprint −vl

lslv

lvdisplay

lvdisplay

Make logical volume

lvcreate

volassist make

vxassist make

mklv

lvcreate

lvcreate

Extend logical volume

lvextend

volassist growto

vxassist growto

extendlv

lvextend

lvextend

Reduce logical volume

lvreduce

volassist shrinkto

vxassist shrinkto

AIX reduce LV

lvreduce

lvreduce

Remove logical volume

lvremove

voledit rm

vxedit rm

rmlv

lvremove

lvremove

Prepare boot volumes

lilo

vxbootsetup

bootlist −m normal

lvlnboot

lvlnboot

lvrmboot

lvrmboot

chfs −a size=#

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

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

rmlvcopy

lvsplit

lvsplit

Remove boot volumes Extend File system

resize2fs

Reduce/Split mirrors

lvsplit

vxva mkfs −M

5

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