soalris 命令以及sa239考点集锦( 三 )


difference between 2 and 3 level;

0 ,PROM monitor
S , single-user mode with critical file systems;
1 , single-user mode with all available local file systems;
2 , multiuser mode, All system daemons are running except NFS and other network resource;
3 , multiuser mode , all system and has NFS ,/etc/inittab file default level;
5 , shutdown and power off;
6 , shutdown and reboots to the default run level.

---------------------------------------------------------------------------------
(31),reboot or shutdown system command

init 5 change run level to 5 and poweroff
init 6 reboot system to default run level;
halt shutdwon system ,stop the solaris OE ,change run level to 0
shutdown shutdown -g 30 -i 5 -y ,have grace period;
poweroff immediate shutdown
reboot immediate shutwon and reinitialization system;
----------------------------------------------------------------------------
(32),
useing the solaris OE Print Manager
/user/sadm/admin/bin/printmgr &

----------------------------------------------------------------------
(33), administering Printer services

lpadmin
lpstat
lpshut

---------------------------------------------------
(34), pinter command;

accept ---- permits print requests to the queued
reject ---- prevents print requests from queued
enable ---- activate the specified printers
disable---- deactivates the specified printers
lpmove ---- moves the print requests
----------------------------------------------------
(35), useing the CDE process manager
/usr/dt/bin/sdtprocess &

-------------------------------------------------------------
(36), prstat command and the option (必考)

-a ---- displays separate reports
-c ---- continuously prints new reports
-n nproc ---- restricts the number of output lines
-p pidlist ---- reports only on processes that have a PID
-s key ---- sort output lines by key in descending
-S key ---- sort output lines bye key in ascending
-t ---- reports total usage summary for ech user
-u euidlist ---- reports only processes that EUID
-U euidlist ---- reports only processes that real UID

----------------------------------------------------------------
(37), kill and pkill command
1 ----- SIGHUP hangup
2 ----- SIGINT interrupt
9 ----- SIGKILL kill
15 ---- SIGTERM terminate

--------------------------------------------------------------
(38),scheduling an Automatic one-time execution

at command
-m ---- sends mail to the user
-r job ---- removes a scheduled at job from the queue
time ---- specifies a time
-l ---- reports all jobs
date ---- specifies an optional date
------------------------------------------------------
(39), at.deny and at.allow file

if at.allow file exists, only the users listed in this at.allow file.
if at.allow file does not exists, all users except for users listed in at.deny;
if neither file exists, only the root can use the at comman;

------------------------------------------------------------------
(40), /var/spool/cron/crontabs

10 3 * * 0 /usr/sbin/log/adm
minute
hour
day
month
day of week
command
cron.allow and cron.deny similar to at.allow and at.deny

-------------------------------------------------------------------
(41), mt command

mt -f tape-device-name command count

mt status ---- displays status information about the tape drive;
mt rewind ---- rewind the tape
mt offline ---- rewinds the tape and ,takes the drive offline
mt fsf count ---- moves the tape forward count records

------------------------------------------------------------------
(42), backing up an Unmounted File systems

ufsdump option argument filesystem_name

0-9 ---- back up level
v ------ verify
S ----- size estimate.
l ---- autoload
o ---- offline
u ---- update

推荐阅读