--------------------------------------------------- (12) 使用mount命令的option Some options used to mount local file systems include: ro, nosetuid, noatime, nolargefiles, and logging.
---------------------------------- fuser command – Lists all of the processes that are accessing the file system and kills them if necessary
----------------------------------------------
(14), umountall状态为busy的系统:
以下四种情况,文件系统都会显示:umount: file_system_name busy
1 A program is accessing a file or directory in the file system 2 A user is accessing a directory or file in the file system 3 A program has a file open in that file system 4 The file is being shared
banner---- displays the power-on banner(also list Ethernet address,HostID,model name , boot PROM version,the amount of memory.) boot ---- boots the system(-s boot the system to single-usermode; -a boot the system interactively; -v boots the system displaying more detailed info; -r Performs a reconfigration boot.) help ---- Lists the main help categories words ---- displays the FORTH words in the dictionary sifting text ----- Displays the FORTH commands contianing text Printenv ---- Dislplays all paramenter's current and default values. setenv ---- set the specified NVRAM parameter to some value. reset-all ---- Resets the entire system; similar to a power cycle. set-defaults ---- Resets all paramter values to the factory defualts. probe-ide probe-scsi probe-fcal-all probe-scsi-all probe-ide probe-pci-slot test ---- Runs self-test on specified devices; .version ---- Displays the version and the date of the boot PROM; .enet-addr ---- Displays the Ethernet address; .idprom ---- Displays the IP PROM contents. .speed ---- Displays the speed oft processor and of the buses attached to the sytem; .registers ----- Displays the contents of the registers;
show-devs ---- view the entire device tree; devalias ---- To identify the current boot device alias for the system; nvalias ---- Creat a new device alias name; nvunalias ---- Remove a custom device alias name;
-------------------------------------------------------------------------------- (30),Identifying RUN level (必考)
0 and S and 1 , this three level differ; 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 &
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
-------------------------------------------------------------- (3,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;
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 n ---- notify f device ---- specify. N ---- incrmental backup e.g. : ufsdump 0uf /dev/rmt/0 /export/home
------------------------------------------------------------------- (43), restor a ufs file system
ufsrestore option argument filsystem t ---- lists the table of contents of the backup media r ---- restors the entire file system x file1 file2 ---- restores only the files i ---- invoke interactive restore v ---- verbos mode f device ---- specifies the tape device name
------------------------------------------------------------- (44),fssnap command -d ---- delete the snapshot associated with the geiven file system; if the -o unlink option was used when you built the snapshot,the backing-store file is deleted together with th snapshot. -F FSType ---- specifies the file systme type to be used -i ------ displays the state of the snapshot -V ------ echoes the complete command line but does note execute -o ------ enable you to use special_option -----------------------------------------------------------------