. | Sharable | Non-sharable |
---|---|---|
Static | /usr /usr/local |
/etc /boot |
Variable | /var/mail /home |
/var/log /proc |
brw-r----- 1 root 7, 80 Oct 13 1990 sd10a brw-r----- 1 root 7, 81 Oct 13 1990 sd10b brw-r----- 1 root 7, 82 Oct 13 1990 sd10c crw-rw-rw- 1 root 20, 38 Oct 13 1990 ttyr6 crw-rw-rw- 1 root 20, 39 Oct 13 1990 ttyr7 crw-rw-rw- 1 root 20, 40 Oct 13 1990 ttyr8
. | User Commands | Sysadmin Commands |
---|---|---|
Vendor supplied
essential (root filesystem) |
/bin | /sbin |
Vendor Supplied
no-essential (/usr) |
/usr/bin | /usr/sbin |
Locally suppied
non essential |
/usr/local/bin | /usr/local/sbin |
Each disk may contain between 1 and 16 partitons.Each partition is assigned an integer number that is appended to the device name. For example the first partition on IDE disk /dev/hda is /dev/hda1. The three types of partitions are:
partition | Type | Mounted Filesystem | Size |
---|---|---|---|
/dev/hda1 | Primary | / | 300 MB |
/dev/hda2 | Extended | - | - |
/dev/hda5 | Logical | /boot | 300 MB |
/dev/hda6 | Logical | /opt | 300 MB |
/dev/hda7 | Logical | /tmp | 300 MB |
/dev/hda8 | Logical | /usr | 600 MB |
/dev/hda9 | Logical | /var | 300 MB |
/dev/hda10 | Logical | (/swap partition) | 128 MB |
/dev/hdb1 | Primary | /home | 6 GB |
$ df Filesystem Total KB free %used iused %iused Mounted on /dev/hd4 49152 33776 31% 831 6% / /dev/hd9var 16384 9900 39% 179 4% /var /dev/hd2 1515520 664744 56% 24338 6% /usr /dev/hd3 327680 311576 4% 67 0% /tmp /dev/hd1 81920 49492 39% 584 2% /home /dev/lv01 327680 175616 46% 2448 2% /public
$ du . 64 ./class 4 ./assignments/vie 3 ./assignments/other 34 ./assignments 35 ./quizes 254 .
: : Note - initdefault and sysinit should be the first and second entry. : Identifier:RunLevel:Action:Command init:2:initdefault: brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot rc:2:wait:/etc/rc 2>&1 | alog -tboot > /dev/console # Multi-User checks fbcheck:2:wait:/usr/sbin/fbcheck 2>&1 | alog -tboot > /dev/console srcmstr:2:respawn:/usr/sbin/srcmstr # System Resource Controller rctcpip:2:wait:/etc/rc.tcpip > /dev/console 2>&1 # Start TCP/IP daemons rcnfs:2:wait:/etc/rc.nfs > /dev/console 2>&1 # Start NFS Daemons cron:2:respawn:/usr/sbin/cron rclocal:2:wait:/etc/rc.local >/dev/console 2>&1 # Start etc/rc.local
#==============================================================================
# FIELD: USAGE
# 1: minute (0-59)
# 2: hour (0-23)
# 3: day of month (1-31)
# 4: month (1-12)
# 5: day of week (0-6)
# 6: shell command
#==============================================================================
01 3 * * * /etc/lpp/diagnostics/bin/run_ela 1>/dev/null 2>/dev/null
01 4 * * * /etc/lpp/diagnostics/bin/test_batt 1>/dev/null 2>/dev/null
0 11 * * * /usr/bin/errclear -d S,O 30
0 12 * * * /usr/bin/errclear -d H 90
#==============================================================================
0 2 * * 6 /crontab_scripts/cron_wrapper /crontab_scripts/garbage_collector
0 19 * * 4 /crontab_scripts/cron_wrapper /crontab_scripts/aix_backup
1 0 * * 0 /crontab_scripts/cron_wrapper /crontab_scripts/save_gn_log
30 1 * * * /crontab_scripts/cron_wrapper /crontab_scripts/sboer.1
#==============================================================================
#!/bin/ksh # File Name: cron_wrapper # # Description: Shell script which calls another shell script, captures standard # out and standard error to a file, and mails the file to "ask" # $1 > /tmp/mailfile$$ 2>&1 # execute the command capture the output SUBJECT="`uname -n`:`basename $1`" # get the name of the command mail -s "$SUBJECT" ask < /tmp/mailfile$$ # mail output to ask rm /tmp/mailfile$$ # remove temporary file #-------------------------------------------------------------------------------
© Allan Kochis | Last revision 11/27/2001 |