Beruflich Dokumente
Kultur Dokumente
IMPORTANT FILES
/etc/hosts
/etc/resolv.conf
/etc/security/limits
/etc/security/environ
/etc/security/lastlog
/etc/security/limits
/etc/security/user
/usr/lib/security/mkuser.default
/usr/lib/security/mkuser.sys
/etc/passwd
/etc/security/passwd
/etc/security/login.cfg
/etc/utmp
/var/adm/wtmp
/etc/security/failedlogin
/etc/motd
/etc/environment
/etc/profile
$HOME/.profile
/etc/group
/etc/security/group
/etc/nologin
logging in.
/var/adm/cron/cron.allow and
/var/adm/cron/cron.deny
/var/adm/cron/at.allow and
/var/adm/cron/at.deny
/var/spool/mqueue/log
/var/spool/mail
- System mailbox
$HOME/mbox
- Personal mailbox
$HOME/dead.letter
- incomplete message
ADMIN COMMANDS
# /usr/bin/tcbck
# installp
# oslevel -r
# installp -L -d /dev/cd0
# smitty install_latest
# lslpp
# instfix -T -d /dev/cd0
# smitty bffcreate
# lppchk -v
# bootlist -m normal -o
# bootinfo -y
# lsitab init
# smit mkroute
# smit mktcpip
# ifconfig en0 up
# smitty chgenet
# lsps -a
# rmps paging03
# telinit M
# mknfs -N
# startsrc -s nfsd
# startsrc -g group
# lssrc -g nfs
# showmount -e MyServer
# exportfs -i /dirname
# smitty rmnfsexp
- to unexport an NFS.
# exportfs -u dirname
- to unexport an NFS.
# ifconfig en0
- To check IP address
# netstat -nr
DEVICES
# lscfg -v -p -l rmt0
# rmdev -l rmt0
# smitty chdev
[ chdev -l ]
LVM
# lspv
# lspv -l hdisk0
- display the names of all the LVs that have at least one
partition located on the physical volume
[-p to display the allocation of PPs to logical volumes]
[-M command to display the layout of a physical
volume]
# chdev -l hdisk7 -a pv=yes
# chpv -c hdisk1
hdisk1.
# lsvg -l VGName
# lsvg -p test1vg
# chvg -Qy newvg [ chvg -Qn newvg ] - To turn off /ON the quorum.
# chvg -t 16 newvg
# chvg -G newvg
# chvg -u
# lquerypv -M hdisk0
# synclvodm testvg
# exportvg testvg
# reorgvg test1vg
# syncvg -v testvg
# mirrorvg rootvg
# joinvg test1vg
# rmlv lv7
# lslv -l lv1
volume lv1.
# lslv -m lv1
FILESYSTEMS
# rmfs /test
# defragfs /home
# istat /etc/passwd
# cp /dev/null /etc/sandeep.txt
- To empty a file
DIAGONISATION COMMANDS
# /usr/lib/errdemon
# /usr/lib/errstop
# /usr/lib/errdemon -l
# errpt -a
# errpt -j 8527F6F4
# errclear 0
# errclear -d S 0
# errinstall
# errupdate
# errmsg
# errupdate
# ras_logger
# sar 2 5
- To reprt current activity for each 2 sec. for the next 5 sec.
# topas
# netstat -i
- to find both the MAC add and IP add for the interfaces.
# iostat -T -d 1 60
# procmon [ GUI ]
system.
# prtconf
the system.
# lsrsrc
# diag
# sysdumpdev -l
# sysdumpdev -L
# sysdumpdev -e
# sysdumpdev -P -p /dev/dumpdev
# usrck -n ALL
# usrck -y ALL
# grpck -n ALL
# grpck -p ALL
# grpck -t install
# pwdck -y ALL
# pwdck -y gpsilva
# sysck
# ping -c 5 server2
# arp -a
# mksysb -e /dev/rmt0
# cat /etc/exclude.rootvg
# smitty mksysb
# smitty lsmksysb
# smitty restmksysb
# savevg -r -f /vg_
bkup/sandeep_vg sandeep
# restvg -d /vg_bkup/sandeep_vg
hdisk2
# backup -0 -u -f /dev/rmt0 /
# mkcd -d /dev/cd1
# mkcd -d /dev/cd1 -L
# gzip -c sandeep
- To compress a file.
# gzip -d sandeep.gz
- To decompress a file.
# gzip -t sandeep.gz
# tcopy /dev/rmt0
DAILY MANAGEMENT
# smitty users
# lsuser ALL
# who
system.
- to disp info abt all the users who are logged on to the
# who am i
# who -r
# who -p
# ps -f -l -ujim,jane,su
# ps -M
# kill -9 -1
# nice [ renice ]
# fuser -u /etc/filesystems
processes
# fuser -k -x -u -c /dev/hd1
system
# at -f filename -t CCYYMMDDhhmmSS Increment - CC-1st 2 digi of Year, YY-2nd 2 digi, MMMonth, DD-day of d month
hh-Hour, mm- Min, SS-Sec, Increment-a + sign
followed by a no.
# atq
# crontab -l
# crontab -v
# crontab -r sandeep
# telinit option
- switches runlevels.
# CommandName&
# fg 589934
# john: /dev/null
mail.
# mailq
PRINTER ADMIN
# lpstat
# qchk
# lpq
associated
# lpr /etc/passwd
# enq -D -P 'lpforu:lp0'
# enq -U -P 'lpforu:lp0'
# enable lpforu:lp0
|
|
#
#
#
#
|
|
|
|
qcan -P lpforu -x 3
cancel 3
lprm -P lpforu 3
enq -P lpforu -x 3