ebook 99-1

Size: px
Start display at page:

Download "ebook 99-1"

Transcription

1 s h e l l 1 setuid chown c h g r p umask ( ) 1) 2) 3) s h e l l 1) 2) 3) 1.1 i ls -l

2 2 shell total r w x r- x r- x 9 9 r w x r- x r- x r w x 1 root root r o o t ( r o o t ) 3578 K Oct 14 04:44 dmesg 1.2 ls -l d l ( ) s b c p t o u c h $ touch myfile ls -l

3 1 3 ( ) r w - r- - r a d m i n 1-1 ls -l ( )- ( ) r w - ( ) r- - ( ) r- - ( ) 1) 2) ( ) 3) r w / x m y f i l e - r w - r- - r-- m y f i l e u m a s k ( 1-2 ) 1-2 r r-- r r-- r-- r- - rwx r-- r- - rwx r-x --- ( )

4 4 shell rwx r-x r- x rw- rw- --- rw- rw- r- - rw- rw ( ) c h m o d c h m o d chmod [who] operator [permission] filename w h o u g o a ( ) o p e r a t o r + - = p e r m i s s i o n r w x s s e t - I D t * l u,g,o * t t t t ( ) t

5 chmod c h m o d m y f i l e r w x rwx rwx chmod a-x myfile rw- rw- rw- chmod og-w myfile rw- r-- r- - chmod g+w myfile rw- rw- r- - chmod u+x myfile rwx rw- r- - chmod go+x myfile rwx rwx r- x m y f i l e ( ) $ chmod u+x o-w myfile m y f i l e a d m i n $ chmod u+x dt c h m o d chmod [mode] file m o d e /

6 6 shell ( ) = ( ) = ( ) = r w x r w x r w x m y f i l e r w - r - - r chmod c h m o d chmod 666 rw- rw- rw- chmod 644 rw- r-- r- - chmod 744 rwx r-- r- - chmod 664 rw- rw- r- - chmod 700 rwx chmod 444 r-- r-- r- - y o a a d m i n chmod 644*

7 1 7 - R chmod -R 664 /usr/local/home/dave/* / u s r / l o c a l / h o m e / d a v e - R c h m o d r w x 1-6 drwx rwx r- x ( ) drwx r-x r- - ( ) drwx r-x r- x ( ) -- x d o c s p a y a d m i n a d m i n 1.6 suid/guid s u i d g u i d

8 8 shell s u i d s h e l l g u i d suid/guid g u i d U N I X s u i d g u i d / b i n / s b i n $ ls -l grep '^...s' s u i d $ ls -l grep '^...s..s' s u i d g u i d s u i d s u i d 4 g u i s x s u i d g u i d g u i d l o g i n s u i d rwx rw- r-- (741) c h m o d 4 chmod 4741 r w s rw- r- - $ chmod 4741 logit suid/guid 1-7 s u i d / g u i d chmod 4755 rws r-x r- x s u i d chmod 6711 rws --s --s s u i d g u i d chmod 4764 rws rw- r- - s u i d

9 1 9 s u i d / g u i d rwx r-x r- x s u i d chmod u+s <filename> rws r-x r-x s u i d rws r-x r- x S s u i d c h m o d chmod 1.7 chown chgrp / e t c / p a s s w d I D s u i d c h o w n chmod -R -h owner file - R - h chown p r o j e c t l o u i s e p a u l i n chgrp c h g r p c h o w n p a u l i n e a d m i n s y b a d m i n 1.7.3

10 10 shell i d m a t t y s y b a d m i n a p p s g e n p o s t 1.8 umask u m a s k c h m o d u m a s k u m a s k s h e l l u m a s k u m a s k / e t c / p r o f i l e u m a s k u m a s k $ H O M E. p r o f i l e. b a s h _ p r o f i l e umask u m a s k ( ) u m a s k 6 c h m o d u m a s k 7 umask nnn n n n u m a s k u m a s k u m a s k u m a s k 1-8 u m a s k u m a s k / u m a s k u m a s k u m a s k u m a s k

11 umask u m a s k u m a s k ( ) u m a s k 002 u m a s k 002 1) rwx rwx rwx (777) 2) umask w- 3) rwx rwx r-x (775) 4) rw- rw- r-- (664) u m a s k 022 1) rwx rwx rwx (777) 2 ) u m a s k w- -w- 3) rwx r-x r-x (755) 4) rw- r-- r-- (644) umask 1-9 u m a s k 1-9 u m a s k u m a s k umask u m a s k

12 12 shell u m a s k u m a s k $ umask 002 u m a s k u m a s k / u m a s k 600 / / u s r / l o c a l / a d m i n / s a l e s $ H O M E $ H O M E $ H O M E / u s r / o p t / a p p / l o g ln [-s] source_path target_path $ H O M E. p r o f i l e / u s r / l o c a l / m e n u s / p r o f i l e s a l e s. p r o f i l e a d m i n. p r o f i l e $ H O M E s a l e s. p r o f i l e $ H O M E a d m i n. p r o f i l e t a rg e t _ p a t h l n

13 1 13 m a t t y ( ) p r o f i l e 40 / u s r / o p t / m o n i t o r / r e g s t a r / v a r / a d m / l o g s $ ln -s /usr/opt/monitor/regstar/reg.log /var/adm/logs/monitor.log 777 rwx rwx rwx / v a r / t m p / v a r / t m p ( ) l n / v a r / t m p / v a r 1.10 chmod -R s u i d s u i d

14 2 find xargs ( ) F i n d find f i n d f i n d x a rg s f i n d ( N F S ) f i n d f i n d ( 30 G ) F i n d find pathname -options [-print -exec -ok] pathname find. / -print find -exec find s h e l l ' c o m m - and' {} \; {} \ -ok - e x e c s h e l l 2.1 find f i n d - -name -perm -prune f i n d - d e p t h - p r u n e f i n d -user -group -mtime -n +n - n + n n F i n d - a t i m e - c t i m e - m t i m

15 2 f i n d x a rg s 15 - m t i m e -nogroup / e t c / g r o u p s -nouser / e t c / p a s s w d -newer file1! file2 f i l e 1 f i l e 2 -type b - d - c - p - l - f - -size n[c] n c -depth -fstype / e t c / f s t a b -mount m o u n t -follow f i n d -cpio c p i o name f i n d $ H O M E *. t x t ~ ' p a t h n a m e ~ $ H O M E $ find ~ -name "*.txt" -print *. t x t $ find. -name "*.txt" -print $ find. -name "[A-Z]*" -print / e t c h o s t $ find /etc -name "host*" -print $ H O M E $ find ~ -name "*" -print find. -print $ find / -name "*" -print *. t x t a x 37. t x t

16 16 shell $ find. -name "[a-z][a-z][0--9][0--9].txt" -print perm - p e r m 755 $ find. -perm 755 -print f i n d - p e r m - - p e r 007 c h m o d $ find. -perm print p r u n e - p r u n - d e p t h - p r u n e f i n d / a p p s / a p p s / b i n $ find /apps -name "/apps/bin" -prune -o -print user nouser $ H O M E d a v e $ find ~ -user dave -print / e t c u u c p $ find /etc -user uucp -print - n o u s e r / e t c / p a s s w d - n o u s e r f i n d / h o m e $ find /home -nouser -print group nogroup u s e r n o u s e r f i n d / a p p s a c c t s $ find /apps -group accts -print n o g r o u p f i n d $ fine/-nogroup-print

17 2 f i n d x a rg s m t i m e m t i m e n + n 5 $ find / -mtime -5 -print / v a r / a d m 3 $ find /var/adm -mtime +3 -print n e w e r newest_file_name! oldest_file_name f i n d a g e. a w k b e l t s. a w k f i n d t o u c h 23 : : 4 0 f i n d - n e w e r $ find. -newer dstamp -print type U N I X L I N U X

18 18 shell / e t c $ find /etc -type d -print $ find.! -type d -print / e t c $ find /etc -type l -print size b l o c k N c 1 M $ find. -size c -print / h o m e / a p a c h e 100 $ find /home/apache -size 100c -print $ find. -size +10 -print depth f i n d d e p t h f i n d f i n f i n d C O N. F I L E $ find / -name "CON.FILE" -depth -print mount f i n d m o u n t X C $ find. -name "*.XC" -mount -print cpio c p i o f i n d c p i o c p i o / e t c / h o m e / a p p s

19 2 f i n d x a rg s 19 \ s h e l l \ / / e t c / e t c f i n d / e t c / h o m e / a p p s c p i o c p i o C B C K / exec ok shell - e x e c f i n d - e x e c - e x e c l s ls -l r m l s e x e c {} \ e x e c p r i n t f i n d ls -l ls f i n d - e x e c f i n d - e x e c ls -l / l o g s 5 $ find logs -type f -mtime +5 -exec rm {} \; s h e l l m v r m - e x e c f i n d. L O G 5 y n - e x e c g r e p f i n d

20 20 shell p a s s w d * p a s s w d p a s s w d. o l d p a s s w d. b a k g r e p r o u n d e r find f i n d f i n d $ H O M E $ find $HOME -print $ find ~ -print s u i d $ find. -type f -perm print 0 $ find / -type f -size 0 -exec ls -l {} \; / v a r / l o g s 7 $ find /var/logs -type f -mtime +7 -exec rm {} \; a u d i t $find /-name -group audit -print A d m i n. l o g a d m i n. l o g. 001 a d m i n. l o g. 002 f i n d / l o g s 7 a d m i n. l o g $ find /logs -name 'admin.log[0-9][0-9][0-9] '-atime +7 -exec rm {} \; $ find. -type d -print -local -mount sort r m t $ find /dev/rmt -print 2.2 xargs f i n d - e x e c f i n d e x e c e x e f i n d x a rg s f i n d F i n d x a rg s x a rg s - e x e c - e x e c

21 2 f i n d x a rg s 21 x a rg s x a rg s x a rg s f i n d x a rg s (core dump) /tmp/core.log $ find. -name "core" -print xargs echo "" >/tmp/core.log / a p p s / a u d i t $ find /apps/audit -perm -7 -print xargs chmod o-w g r e p d e v i c e $ find / -type f -print xargs grep "device" g r e p D B O $ find. -name -type \ f -print xargs grep "DBO" \ f i n d * s h e l l 2.3 f i n d e x e c x a rg s

22 3 c r o n t a b a t n o h u p cron At at & Nohup 3.1 cron crontab c r o n c r o n t a b c r o n t a s h e l l c r o n t a b c r o n. d e n y c r o n. a l l o w c r o n t a b crontab c r o n t a b

23 3 23 c r o n t a b < > < > < > < > < > < > C r o n t a b , 4 * * 5 # crontab c r o n t a b 30 21* * * /apps/bin/cleanup.sh 21 : 30 / a p p s / b i n c l e a n u p. s h ,10,22 * * /apps/bin/backup.sh : 45 / a p p s / b i n b a c k u p. s h 10 1 * * 6,0 /bin/find -name "core" -exec rm {} \; 1 : 10 f i n d 0, * * * /apps/bin/dbcheck.sh 18 : : / a p p s / b i n d b c h e c k. s h 0 23 * * 6 /apps/bin/qtrend.sh 11 : 00 p m / a p p s / b i n q t r e n d. s h c r o n t a b s h e l l c r o n c r o n c r o s h e l l c r o n crontab c r o n t a b Crontab [-u user] -e -l -r -u -e c r o n t a b -l c r o n t a b -r c r o n t a b - u c r o n t a b

24 24 shell crontab c r o n c r o n t a b E D I TO R c r o n c r o n t a b 99 % U N I X L I N U X v i $ H O M E. p r o f i l e EDITOR=vi; export EDITOR < u s e r > c r o n < u s e r > d a v e c r o n 5 15 t t y 1 c r o n t a b c r o n $ crontab davecron c r o n 15 / v a r / s p o o l / c r o n d a v e crontab c r o n t a b $ H O M E c r o n t a b $ crontab -l > $HOME/mycron c r o n t a b crontab c r o n t a b E D I TO R v i v i c r o n t a b $ crontab -e v i c r o n t a b

25 3 25 c r o n c r o n t a b c r o n t a b crontab -l crontab c r o n t a b $ crontab -r crontab c r o n t a b $ H O M E / v a r / s p o o l / c r o n / < u s e r n a m e > < u s e r n a m e > $ crontab <filename> < f i l e n a m e > $ H O M E $ H O M E c r o n t a b r e c r o n t a b c r o n t a b c r o n t a b c r o n t a b d e l e t e < C t r l - D > c r o n t a b 3.2 at a t c r o n 10 m i n c r o n t a b a t c r o n t a b c r o n t a b / e t c a t. a l l o w a t. d e n y

26 26 shell a t a c r o n t a b a t at [-f script] [-m -l -r] [time] [date] -f script -l a t q -r I D U N I X a t r m -m time at H H H. H H M M H H : M M H : M H M a. m. p. m. date a t t o d a y t o m o r r o w at a t a a t s h e l l a t / a t < C T R L - D > < E O T > < C T R L - D > 21 : 10 f i n d job 1 / a t

27 3 27 a t s h e l l - f d b _ t a b l e. s h 3 : 00 e c h o a t $ echo find /etc -name "passwd" -print at now +1 minute at -l / a a t a t q a t / v a r / s p o o l / a t atrm [job no] at -r [job no] at -l at -r at-r [job no] 3.3 &

28 28 shell & & f i n d s h e l l command >out.file 2>&1 & out.file f i n d s r m. c o n f f i n d. d t p s ps p s 1 p s g r e p ps x p s k i l l s h e l

29 3 29 k i l l kill -signal [process_number] ( ) k i l l n o h u p 3.4 nohup n o h u p N o h u ( n o hang up) nohup command & nohup n o h u p n o h u p. o u t nohup command > myout.file 2>&1 m y o u t. f i l e p s 1 s h e l l ps x ps -ef grep ps s h e l l n o h u p

30 30 shell $ chmod 744 quarterend q t r. o u t 3.5 C r o n

31 4 S h e l l * [...] [ ] [!...] [ ] s h e l l 4.1 * * a p p * a p p * *. d o c. d o c * c l *. s e d c l. s e d c d

32 32 shell 4.2 R c o n f. l o g f??* s f s 4.3 [...] [!...] [...] [ ] - i o l o g. l o g.[ 0-9 ]* [ 0-9 ] * [! 0-9 ]*! LPS 1

33 4 33 L P S $ ls [A-Z]* $ ls [a-z]* $ ls [0-9]*.. p r o f i l e. r h o s t s. h i s t o r y $ ls.* 4.4

34 5 shell s h e l l s h e l l 5.1 echo e c h o echo string e c h o \c \f \t \n $ echo "The red pen ran out of ink" e c h o $ H O M E t t y ( ) LINUX... - n echo

35 5 s h e l l 35 $ echo -n "What is your name :" -e ( ) e c h o \ n e c h o \ LINUX... - e > m y f i l e $ echo "The log files have all been done"> myfile $ echo "$LOGNAME carried them out at `date`">>myfile m y f i l e s h e l l e c h o \ s h e l l e c h o / d e v / r m t 0 \ $ echo "\"/dev/rmt0"\" " / d e v / r m t 0 " 5.2 read r e a d

36 36 shell r e a d read varible1 varible2... s h e l l Shell John Lemon Doe s h e l l r e a d LINUX... -n

37 5 s h e l l cat c a t c a t m o r e c a t $ cat myfile more $ cat myfile pg c a t cat [options] filename1... filename2... c a t -v m y f i l e $ cat myfile m y f i l e 1 m y f i l e 2 m y f i l e 3 $ cat myfile1 myfile2 myfile3 b i g f i l e $ cat myfile1 myfile2 myfile3 > bigfile c a t c a t < C T R L - D > c a t D O S f t p < C T R L - M > c a t

38 38 shell < C T R L - D > s h e l l g r e p q u a r t e r 1. d o c 5-1 Is 5-1 s e d a w k g r e p w h o a w k d f a w k a w k a w g r e p f i l e s y s t e m / d e v / s e d

39 5 s h e l l 39 $ sort myfile lp 5.5 tee t e e T tee -a files - a t e e w h o w h o. o u t 5-2 screen who.out who 5-2 tee t a p e. l o g t e e - a $ who \ s h e l l e c h o

40 40 shell $ echo "stand-by disk cleanup starting in 1 minute" tee /dev/console - a 5.6 s h e l l s h e l l

41 5 s h e l l command > filename command >> filename command 1 > fielname command > filename 2>&1 command 2 > filename command 2 >> filename command >> filename 2>&1 command < filename >filename2 command < filename command << delimiter command <&m command >&m command <&- ( ) ( ) ( ) c o m m a n d f i l e n a m e f i l e n a m e 2 c o m m a n d f i l e n a m e d e l i m i t e r m m / e t c / p a s s w d I D s o r t. o u t s o r ( ) s o r t $ cat passwd awk -F: '{print $1}' sort 1>sort.out 5-1 $ cat passwd awk -F: '{print $1}' sort >sort.out a c c o u n t f i l e. o u > f i l e n a m e l s l s. o u t $ ls >ls.out ( ) > > f i l e n a m e 0 ' > f i l e n a m e ' $ >myfile

42 42 shell a w k $ sort < name.txt s o r t $ sort name.txt s o r t n a m e. o u ( ) $ sort <name.txt >name.out l o u i s e c o n t e n t s. t x t $ mail louise < contents.txt command << delimiter s h e l l d e l i m i t e r s h e l l d e l i m i t e r E O F M AY D AY < < m y f i l e T E R M L O G N A M E g r e p m i s s i l e s t r i d e n t g r e p / d e v / n u l l ( ) $ grep "trident" missiles 2>/dev/null / d e v / n u l l g r e p. e r r

43 5 s h e l l 43 g r e p > > ( ) 5.8 ( ) a c c o u n t s. o u t $ cat account_qtr.doc account_end.doc 1>accounts.out 2>accounts.err a c c o u n t s. e r r a c c o u n t _ e n d. d o c 5.9 s h e l l $ cleanup >cleanup.out 2>&1 c l e a n u p c l e a n u p. o u t $ grep "standard"* > grep.out 2>&1 g r e p g r e p. o u t 2 > & 1 c a t

44 44 shell ( i s q l s y b a s e ) f t p 5.10 exec e x e c s h e l l s h e l l s h e l l exec command c o m m a n d s h e l l e x e c s h e l l e x e c. p r o f i l e s h e l l e x e c e x e c s h e l l 5.11 e x e c s t o c k. t x t 4 s t o c k. t x t 4 l i n e 1 l i n e 2 s t o c k. t x t c p

45 5 s h e l l s h e l l ( 3 9 )

46 6 && s h e l l S h e l l s h e l s h e l l {} 6.1 && && 1 && 2 && 1 ( 0 && 2 && && && & e c h o $ mv /apps/bin /apps/dev/bin && rm -r /apps/bin / a p p s / b i n / a p p s / d e v / b i n / a p p s / b i n q u a r t e r _ e n d. t x t q u a r t e r. s o r t e d q u a r t e r. s o r t e d $ sort quarter_end.txt > quarter.sorted && lp quarter.sorted

47 m o n t h _ e n d. t x t c o m e t s h e l l s h e l $ comet month_end.txt exit 6.3 { } s h e l l s h e l s h e l l s h e l l {} s h e l l s h e l l {} s h e l l s h e l l { } && c o m e t $ comet month_end.txt exit s h e l l e x i t && $ sort quarter_end.txt > quarter.sorted && lp quarter.sorted s o r t

48 48 shell 6.4 s h e l l && &&

49 7 U N I X L I N U X s h e l l s h e l l R E A A x g r e p s e d {\\} a w k 7-1 $ * * 0 [ ] [] - [] [ 1-5 [ ] \ s h e l l \. p a t t e r n \ { n \ } p a t t e r n \ { n \ } m p a t t e r n \ { n m \ } p a t t e r n n p a t t e r n n m

50 b e g b e g. n. ls -l... x.. x.. x 10 4 X C...X C X C 4 A S C I I 7.2 ^ ^ ls -l ls -l d 1 ^ 001 ^... 4 X C....

51 X C 4 ^ 4 1 ^ c o m p ^ c o m p 4 c o m p i n g ^ c o m p.. i n g 7.3 $ $ ^ $ t r o u b l e t r o u b l e $ 1 d $ 1 d ^ $ ^. $ j e t 01 j e t 0 1 $ 7.4 * c o m p u * t u *

52 \. \. ^ \ ^ *. p a s \ * \. p a s * 7.6 [] [] - [] [ ] - [ 0-9 ] [ a - z ] [ A - Z a - z ] A - Z a - z [ A - Z a - z 0-9 ] [] s t s[a-z A-Z]t

53 7 53 s [ a - z ] t C o m p u t e r c o m p u t e r [ C c ] o m p u t e r S c o u t s h o u t b o u g h t [ou].*t o u t s y s t e m S [ S s ] y s t e m \. [] * [ [ A - Z a - Z ]* [ A - Z a - z ] * ^ [^a-za-z] [ ^ 0-9 ] ^ 7.7 \{\} * \{\} pattern\{n\} n pattern\{n,\} n pattern\{n,m} n m n, m A B A \ { 2 \ } B A A B A 4 A \ { 4, \ } B A A A A B A A A A A A A B A A A A 2 4 A \ { 2, 4 \ } B A A B A A A B A A A A B A B A A A A A B 4 x x 4

54 54 [ 0-9 ] \ { 4 \ }X X[ 0-9 ] \ { 4 \ } 1) 4 2) x x 3)

55 s h e l l g r e p, s e d a w k

56 8 grep g r e p U N I X L I N U X g r e p g r e p g r e g r e p G r e p g r e p E g r e p g r e p \ q F g r e p g r e p f a s t g r e p grep g r e p g r e p g r e g r e p GNU grep g r e p g r e p f g r e p e g r e p g r e p < Ta b > g r e p d a t a.. f d a t a. f

57 8 g rep grep g r e p grep [ ] [ ] g r e p m y s t r i n g s h e l l jet plane p l a n g r e p $ M Y VA R grep g r e p -c -i -h -l -n -s -v d o c s o r t $ grep "sort"*.doc sort it $ grep "sort it" * g r e p $ grep -c "48"data.f $ 4 g r e p

58 < Ta b > < Ta b > t a b g r e p \ > g r e p - i d a t a. f S e p t 8.2 grep g r e p s h e l l

59 8 g rep [] ^ i S e p t [] S e p t s e p t S e p t 483 g r e p g r e L D 5 C [ 6, 8 ]

60 [ 0-9 ]\{ 3 \}[ 8 ] [] ^

61 8 g rep grep g r e p - E ^ $ - n $. ' " * [] ^ \ +?, \. c o n f t r o l l. c o n f f i l e n a m e. d e p o s i t IP D N S I P I P 2000 n n n. n n n n n n. n n.. nnn.nnn IP [ 0-9 ]\{ 3 \}\.[ 0-0 \{ 3 \}\ 3

62 g r e p 8-1 [ [ : u p p e r : ] ] [ A - Z ] [ [ : a l n u m : ] ] [ 0-9 a - za-z] [[: l o w e r :]] [ a - z ] [[: s p a c e :]] t a b [ [ : d i g i t : ] ] [ 0-9 ] [ [ : a l p h a : ] ] [ a - z A - Z ] 5 P D * g r e p * g r e p d e v i c e 8.4 grep g r e p

63 8 g rep passwd / e t c / p a s s w d l o u i s e g r e p 'No such file or directory' g r e p - s g r e p - s 2 > $ 1 / d e v / n u l l g r e p e x i t g r e p / t m p p a s s w d. o u t ps ps x g r e p ps x D N S n a m e d g r e p g r e p ps x g r e p - v p s g r e p

64 64 ps x ps -ef grep g r e p e c h o g r e 8.5 egrep e g r e p e x p r e s s i o n extended grep e g r e p e g r e p e g r e p - f g r e p s t r i n g s d a t a. f f 32 L 2 C C l o u i s e m a t t y pauline w h o e g r e p ^ m a t t y p a u l i n e s h u t d o w n s h u t d o w n s r e b o o t r e b o o t s e g r e p

65 8 g rep g r e p U N I X D O S g r e p g r e p s h e l l U N I X

66 9 AWK a w k a w k s h e l l a w k Bailing out a w k : c m d. L i n e : a w k s h e l l a w k a w k a w g r e p s e d s h e l l a w k a w k a w k a w k a w k a w k a w k s e d g r e p a w k a w k A h o. We n i n b e rg e r K e r n i g h a m n a w k g a w k a w k a w a w k 9.1 awk a w k c o m m a n d s a w k [- F ] a w k p a s s w d - F a w k a w k a w a w k

67 9 AWK 67 - f a w k _ s c r i p t _ f i l e a w k i n p u t _ f i l e ( s ) a w k 9.2 awk a w k a w k - F a w k - F a w k a w k 9-1 a w k # n a w k 9-1 awk P. B u n n y ( 1 ) # 02 / 99 # 48 # Yellow \n J. Tr o l l ( 2 ) # 07 / 99 # 4842 # Brown-3 \n a w k a w k B E G I N E N D B E G I N B E G I N E N D a w k a w k {} i f l o o p i n g a w k a w k $ 1 $ 2... $ n $ 1, $ $ 1, $ 2, $ 3, $ 4, $ 5 $ 0 Aw k $ s h e l l $ p r i n t a w k

68 68 1. g r a d e. t x t F 2. a w k s h e l l a w k > w o w t e e d e l e t e _ m e _ a n d _ d i e a w k tee delete_me_and_die 3. a w k a w k 4. a w k {print $0}( )

69 9 AWK f i e l d - 1 f i e l d - 4 $ 1 $ 4 6. t a b t a b t a b \ t n a m e b e l t \ n \ n B E G I N a w k 7. end of report E N D E N D E N D 8. awk a w k a w a w k

70 70 a w k a w k a w k a w k 9. awk g r a d e. t x t B E G I N a w k s h e l l a w k a w <Ct r l - D > a w k awk g r e p a w k G r e e n / G r e e n / G r e e n a w k 7 \ ^ $. [] () * +? 7 a w k g r e p s e d + + /X Y?Z/ X Y Z Y Z a w k

71 9 AWK awk 1. < > = < = ~ = =! ~!= i f a w k i f g r a d e. t x t b r o w n f i e l d - 4 {if($4~/brown/) print } f i e l d - 4 b r o w n {} a w k i f b r o w n f i e l d a w k = = $ 3 = = ~! ~ b r o w n $0!~/brown/ b r o w n a w k

72 72 f i e l d - 4 awk$4!="brown"{print $0} grade.txt b r o w n b r o w n b r o w n - 2 b r o w n - 3 b r o w n f i e l d - 6 f i e l d [] [ g r e e n /[ G g ] r e e n / 8. a. / ^... a / a 9. y e l l o w b r o w n

73 9 AWK 73 Ye l l o w B r o w n G r e e n g r e e n [] ^ a w k 7 7 a w k && AND : O R! 11. AND P. B u n n y Ye l l o w ( $ 1 = = " P. B u n n y "&& $ 4 = = " Ye l l o w ") && 12. Or Ye l l o w B r o w n awk a w k awk A R G C A R G V E N V I R O N FILENAME F N R F S a w k - F

74 74 N F N R O F S O R S R S A R G C a w k A R G V A R G C A R G V [ n ] n E N V I R O N E N V I R O N [ E D I TO R ] = Vi F I L E N A M E a w k a w k F N R a w k N R F S a w k - F F S = " " N F O F S # O F S = "#" O R S \ n R S (\ n ) NF NR FILENAME a w k N R N R print NR E N D N F E N D B r o w n A N D B r o w n

75 9 AWK 75 / N F $ P W D a w k awk a w k = += *= / = %= ^ = &&! ~! ~ < <= ==!= >> + - * / % ^ a w k n a m e = $ n n a m e n n a m e b e l t n a m e = $ 1 ; b e l t s = $ 4 a w k n a m e b e l t s Ye l l o w 2. 1) B E G I N 2) B E G I N a w k

76 76 B A S E L I N E B E G I N 3. a w k a w k a w k N R N F $ 1 = $ M. Ta n s l e y $ 6 = $ J. Tr o l l J. L. Tr o l l $ 1 = " J. L. Tr o l l " " a w k { $ 4 = $ 2 + $ 3 } g r a d e. t x t 8 { $ 8 = $ 7 - $ 6 } B E G I N t a b

77 9 AWK = $ 1 t o t a l t o t a l + = $ 1 a w k t o t + = $ 6 t o t a w k 6 E N D 6 a w k 8. ls -l a w k a w k d E N D ls -l d 5 9 d ^ [ ^ d ] t o t

78 a w k awk g s u b ( r, s ) g s u b ( r, s, t ) i n d e x ( s, t ) l e n g t h ( s ) m a t c h ( s, r ) s p l i t ( s, a, f s ) s p r i n t ( f m t, e x p ) s u b ( r, s ) s u b s t r ( s, p ) s u b s t r ( s, p, n ) $ 0 s r t s r s t s s r f s s a f m t e x p $ 0 s s p s p n g s u b s e d $ 0 g s u b $ 0 i n d e x s t s t l e n g t h s m a t c h s r s p l i t f s s a s p r i n t p r i n t f f m t e x p s u b r s $ 0 r s u b s p s p s u b s t r s p n a w k 1. gsub / / / index s t B u n n y n y 3. length J. Tr o l l

79 9 AWK match m a t c h 0 A N C D d 0 A N C D D A N C D D J. L u l u 5. split s p l i t - A D2 - K P 9 - J U 2 - L P - 1 s p l i t (" A D 2 - K P 9 - J U 2 - L P - 1 " p a r t s _ a r r a y " -" s p l i t 4 s p l i t m y a r r a y m y a r r a y 6. sub s u b S T R poped popo pill s u b s u b / o p / " o p " S T R o p po Ped pope pill J. Tr o l l s u b / 26 / " 29 " $ 0 24 J. Tr o l l 7. substr s u b s t r 1 5

80 80 a w k L Ta n s l - e y a w k s u b s t r 1 B E G I N E N D t 8. s h e l l a w k a w k a w k a w k s t a n d - b y a w k a w k a w k \ n \ n {} /\{/ a w k 9-5 a w k 9-5 awk \ b \ t t a b \ f \ d d d \ n \ c \\ \ r

81 9 AWK 81 May Day t a b May Day D a y \ 104 D A S C I I \ 141 a A S C I I awk printf t a b a w k p r i n t f p r i n t f % p r i n t f p r i n t f [ ] printf 9-6 awk printf - Wi d t h 0 0. p r e c awk printf % c A S C I I % d % e % f % g a w k e f % o % s % x A S C I I a w k p r i n t f A S C I I p r i n t f a w k

82 82 15 \ n p r i n t p r i n t f 3. a w k a w k a w k a w k a w k awk = a w k A G E 10 a w k 10 a w k df -k a w k 4 $ 4 ~ / ^ [ 0-9 ]/ d f i f ( $ 4 < T R I G G E R ) T R I G G E R df -k d f a w k w h o w h o a w k L O G N A M E w h o a w k

83 9 AWK 83 r o o t root you are connected to ttyp1 4. awk a w k a w k a w k awk t o t + = $ 6 END{print "club student total points " t o t } g r a d e. t x t s t u d e n t _ t o t. a w k a w k a w k a w k /bin/awk -f a w k

84 84 E R R O R * a w k a w k a w k a w k 5. a w k F S F S # F S

85 9 AWK 85 a w k F S B E G I N a w k F S / e t c / p a s s w d 1 5 p a s s w d a w k a w k a w k awk script_file var=value input_file N F M A X / e t c / p a s s w d p a s s w d 7 a w k

86 86 a w k d u d u a w k awk s p l i t s p l i t m y a r r a y m y a r r a y For (element in array ) print array[element] 123 # 456 # 678 s p l i t / d e v / n u l l

87 9 AWK 87 s p l i t # 1) Ye l l o w O r a n g e R e d 2 ) 20 6 a w k a w k

88 88 B E G I N F S # Ye l l o w O r a n g e R e d B E G I N B E G I N c o l o r 1 Ye l l o w O r a n g e R e d S e n i o r _ o r _ j u n i o r 2 j u n i o r s e n i o r E N D \ a w k 9.3 a w k a w k a w k a w k s h e l l s h e l l a w k

89 10 sed s e d s e d Vi s e d s e s e d s e d s e d s e a w k s e d s e s e d s e d s e d s e g r e p a w k s e d g r e p a w k 10.1 sed s e d 10.2 sed s e d s e s e d s e d s e d s e d sed [ ] s e d s e d s e s e d sed [ ] -f sed s e d s e d

90 90 s e d [ ] s h e l l s e d s e d n s e d p c s e d f s e d s e s e d sed -f myscript.sed input_file m y s c r i p t. s e d s e d sed s e d m y o u t f i l e sed s e d 1) 2 ) s e d 10-1 s e d x x, y x 1 x y / p a t t e r n / / d i s k / /[a-z]/ / p a t t e r n / p a t t e r n / / d i s k / d i s k s / p a t t e r n /, x x, / p a t t e r n / x, y! / r i b b o n /, 3 3./ v d u / x y 1, 2! sed S e d p 10-2 sed = a \ i \ d c \

91 10 sed 91 s r w q l A S C I I { } n g y n 2 /pattern n/ s e d q u o t e. t x t 10.3 sed s e d \ 7 s e d 10.4 sed s e d p rint p r i n t [ a d d r e s s [ a d d r e s s ] P s e d - n

92 N e a v e / p a t t e r n / / N e a v e s e d q u o t e. t x t t h e s e d t h e l i n e _ n u m b e r, / p a t t e r n / 4,/ t h e / t h e $ \ /\$/ p , $ $ i n g /.* i n g / i n g

93 10 sed $ $ = / p a t t e r n / - e s e d e = sed -n -e /pattern/p -e /pattern/= a \ s e d s e d s e d s e d s e d a\ s e d a \ s e d s e d s e d s h e l l s e d

94 sed a p p e n d. s e d file not found.\ s e d s e / b i n / c o m p a n y / a \ s e d a t t e n d a n c e utter confusion followed

95 10 sed The honeysuckle band played all night long for only $90 The office Di b b l e band played well / H o n e y s u c k l e / s e d c h a n g e. s e d chmod u+x change.sed

96 s e d [ a d d r e s s [ a d d r e s s ] ] d 1 d N e a v e [ a d d r e s s [ address]] s/ pattern-to-find /replacement-pattern/[g p w n] s s e d p a t t e r n - t o - f i n d r e p l a c e m e n t - p a t t e r n g g p s e d p - n - n w

97 10 sed 97 n i g h t N I G H T n i g h t N I G H T $ 9 0 $ \ r e p l a c e m e n t - p a t t e r n s e d g T h e Wo w w s p l e n d i d S P L E N D I D s e d. o u t s e d 10.5 & & & s e d s/nurse/"hello"&/p The local nurse Miss P.Neave was in attendance The honeysuckle band played all night long for only $ sed > s e d

98 98 [ a d d r e s s [ address]]w filename w s e d f i l e n a m e q u o t e. t x t 1 2 f i l e d t N e a v e f i l e d h t 10.7 s e d address r filename r s e d f i l e n a m e s e d e x. t x t s e d e x. t x t q u o t e. t x t / c o m p a n y / 10.8 s e d address q /. a.*/ a 0 q s e d

99 10 sed cat -v filename cat filename c a t - v s e d [ a d d r e s s [ a d d r e s s ] ] l l l 1 $ c a t s e d s e d \ 033 O P F 1 t e r m i n f o t e r m c a p F 1 v i v i < C t r l > < v > a ^ F 1 [ O P ] < E S C > F sed s e d s e s e d d o s. t x t

100 100 1) ## 2) ) ^ M ^ L d o s. t x t 1 # # 2 0 ^ ^ 0 * 0 s / ^ 0 *// g 3 ^ M s / ^ m // g ^ M ^ M F 1 sed s/ < C t r l > v v ^ < C t r l > < r e t u r n > ^ M s e d c a t s e d s e d s e d

101 10 sed 101 s e d s e s q l 1) s /-*// g ) / ^ $ / d 3) $ d 4) 1 d 5) awk {print $1} c a t s e d U N H U N D U N H U N D [ 0-9 ]

102 p a s s e d $ shell sed s e d sed shell s e d s h e l l s h e l N E W- N A M E s e d [ ] [ t a b s /\. $ // g -e /abcd/d s /[][][]*/[]/ g s / ^ [][]*// g s /\.[][]*/[]/ g / ^ $ / d s / ^.// g s /CO L \(...\)// g s / ^ \/// g s /[]/[]// g S / ^ []// g s /[]*// g a b c d C O L \ t a b t a b t a b

103 10 sed \ s e d \ 2. / "Mr Wi l l i s " s e d M r " B r u c e " 3. s e d a c c o u n t s. d o c 4. s e d a c c o u n t s. d o c 5. s e d. d o c a c c o u n t s 6. x s e d s e d s e d s e d s e s e d

104 11 P I C K U N I X P I C K P I C K s o r t uniq join cut paste split 11.1 sort s o r t s o r t U N I X U N I X / L I N U X s o r t s o r s o r t s o r t s o r t s o r t s o r t s o r t u n i q j o i n c u t p a s t e s p l i t s o r t sort s o r t sort -cmu -o output_file [other options] +pos1 +pos2 input_files s o r t -c -m -u -o s o r t

105 b -n -t t a b -r +n n n n + post1 m n m n o r e s u l t s. o u t sort s o r t - s o r t - t 0 1 s o r t v i d e o. t x t t sort s o r t 0 1 s o r s o r t s o r t - c

106 106 s o r t sort s o r t sort filename 0 s o r t s o r t sort s o r t - r s o r t t t 3

107 n - n 3 2 t 3 The Hill s o r t 3 - n A l i e n s - r A l i e n s u A l i e n A l i e - u s o r t

108 k sort s o r t k s o r t k 1 - k k 4 1 -k4 -k sort - n s o r t pos f i e l d _ n u m b e r c h a r a c t e r s _ i n

109 head tail s o r t 4 - k 4 s o r t h e a d head -1 t a i l h e a d 1 2 tail -1 s o r t t a i l h e a d t a i l h e a d Ta i l h e a d t a i l awk sort s o r t a w k s o r t a w k

110 sort -m sorted_file1 sorted_file2 -m +o v i d e o. s o r t + o 11.2 sort s o r t / e t c / p a s s w d 1 a w k a w k s o r t d f d - b I P I P I P

111 I P uniq u n i q u n i u n i q s o r t s o r t u n i q u n i q u n i q May Day 4 May Day u n i q -u -d -c -f n n - f - n m y f i l e. t x t u n i q 5 May Day sort -u May Day Going Down

112 112 - c May Day 1. - d 2. - n n 2 u n i q 1 u n i q O P - f 11.4 join j o i n S Q L j o i n j o i n f i l e 1 f i l e 2 j o i n t a b j o i n 20 2 D B M S j o i n

113 an n n - a 1 - a 2 o n.m n m n m j n m n m t t a b - t n a m e. t x t t o w n. t x t M. G o l l s 12 Hidd Rd 0 j o i n j o i n 1. j o i n - a P. H e l l e r 2. - o j o i n

114 114 -jn m p e r s I D p e r s 2 I D p e r s 4 p e r s 2 2 j o i n 4 j o i 5 a w k $ awk '{print $4}' 11.5 cut c u t c u t cut [options] file1 file2 -c list -f field -d t a b - c - c c f - c -f f p e r s ' p e r s '

115 d - d 3 - f 3 I D c u t 1 3 I D / e t c / p a s s w d c c u t ls -l - c ls -l cut -c1-10

116 paste c u t p a s t e p a s t e p a s t t a b - d p a s t e paste -d -s -file1 file2 -d t a - d -s - ls -l paste p a s t e t a b - d - s I D

117 paste p a s t e split s p l i t v i s o r t s p l i t split -output_file-size input-filename output-filename o u t p u t - f i l e - s i z e s p l i t o u t p u t - f i l e - s i z e x [ a a ] x [ z z ] x [ a a ] [ z z ] b i g o n e. t x t s p l i t o u t p u t - f i l e - s i z e 6

118 s p l i t 11.8 s o r t j o i n s p l i t u n i q c u t p a s t e

119 12 tr 12.1 tr t r t t r 1 2 t r 1 2 t r tr-c-d-s["string1_to_translate_from"]["string2_to_translate_to"] input_ f i l e -c 1 A S C I I -d 1 -s I n p u t - f i l e t r 1 2 [a-z] a-z [A-Z] A-Z [0-9] /octal A S C I I [O*n] O n [ O * 2 ] O O t r [ c l a s s ] c n t r l 12-1 [] [ \ 012 ] \ 012 t r t r

120 120 \{ 12-1 tr \ a Ctrl-G \ 007 \ b Ctrl-H \ 010 \f Ctrl-L \ 014 \n Ctrl-J \ 012 \ r Ctrl-M \ 015 \t Ctrl-I tab \ 011 \ v Ctrl-X \ r e s u l t s. t x t c o p s. t x t v i - s [ a - z ] t r c a t t r p l a n e. t x t

121 12 tr s \ 012 \ n t r [ a - z ] [ A - Z ] t r [ l o w e r ] [ u p p e r ] f i l e - t o - t r a n s l a t e n e w - f i l e - n a m e f i l e - t o - t r a n s l a t e n e w - f i l e - n a m e c - s [ a - z ] [ A - Z ] tr -cs "[a-z][a-z]""[\012*]"

122 122 [ a - z ] [ A - Z ] 1 - s - c t r t r d o s U N I X f t p c a t - v ^ ^ ^ ^ ^ ^ t a b C t r l - M C t r l - Z - s A S C I I ^ 136 ^ M 0 15 t a b 011 ^ Z 0 32, t a b ^ ^ ^ ^ ^ ^ "\ 136 ""[\ 011 *]" s t a t. t m p ^ M \ n ^ Z s t a t. t m p ^ M

123 12 tr 123 D o s U N I X ^ M ^ Z t a b p a s s w d t a b t a b 011 p a s s w d t r t a b [ c h a r a c t e r * n ] [ 0 * 4 ] t r s e d t r t r

124 13 / e t c / p a s s w d / e t c / p a s s w d $HOME.profile $ H O M E. p r o f i l e / e t c / p a s s w d s h e l l / b i n / s h Bourne Shell P a s s w d p a s s w / e t c / p r o f i l e. p r o f i l e p r o f i l e 13.1 /etc/profile / e t c p r o f i l e PAT H

125 PAT H / e t c / p r o f i l e

126 p r o f i l e Q U I T < C t r l - c > L O G N A M E m a n M A N PAT H m a n v t 220 u m a s k < C t r l -C> Q U I T s t t y

127 / v a r / a d m / m e s s a g e s u l i m i t i d n k p s a l o m d a v e p r o f i l e 13.2 $HOME.profile / e t c / p r o f i l e $ H O M E p a s s w d $ H O M E 2. p r o f i l e s h e l l / e t c / p r o f i l e. p r o f i l e s h e l l. p r o f i l e p r o f i l e. p r o f i l e u s e t / e t c / p r o f i l. p r o f i l e. p r o f i l E D I TO R c r o n T E R M v t 100 v t 22 b i n p a t h b i n PAT H p w d A S C I I

128 L I N U X e c h o / u s r / a d m i n A D M I N = / u s r / a d m w h o w c. p r o f i l e. p r o f i l e / e t c / p r o f i l e. / p a t h n a m e / f i l e n a m e. p r o f i l e $..profile $../profile. p r o f i l e 13.3 stty s t t y s t t stty -a

129 s t t y ^? < C t r l - H > s t t y stty name character ^ H $ stty erase '\^H'. p r o f i l e s t t y ' C o n t r o l H ' v i C t r l V V H s t t y i n t r ^ C e c h o e c h o - e c h o e c h o e o f ^ D k i l l ^ Y s t a r t ^ Q s t o p ^ S s t t y stty -g s t t y s t t / e t c / p r o f i l e stty -g s t t y s t t y s t t y stty -g e c h o s t t y LINUX L I N U X e c h o - e echo -e

130 s t t y s t t 13.4.logout Bourne shell s h e l l. l o g o u t e x i t r a p t r a p Bourne shell. l o g o u t. p r o f i l e trap "$HOME /.logout"0. l o g o u t. l o g o u t s h e l l 0 s h e l l s h e l l. p r o f i l e t r a p. l o g o u t p r o f i l e

131 14 shell s h e l l s h e l s h e l l s h e l l 4 s h e l l shell 14.1 shell E D I TO R E D I TO R c r o n E D I TO R E D I TO R v i $ isql -Udavet -Pabcd -Smethsys - S D S Q U E RY D S Q U E RY - S D S Q U E RY $ isql -Udavet -Pabcd 14.2 s h e l l f i l e - n a m e l o o p. d o c s h e l l s h e l l s h e l l s h e l l

132 14 $ variable-name=value $ { v a r i a b l e - n a m e = v a l u e } s h e l l 14-1 Va r i a b l e - n a m e = v a l u e Va r i a b l e - n a m e + v a l u e Va r i a b l e - n a m e :? v a l u e Va r i a b l e - n a m e? v a l u e Va r i a b l e - n a m e : = v a l u e Va r i a b l e - n a m e :- v a l u e v a r i a b l e - n a m e v a r i a b l e - n a m e v a r i a b l e - n a m e v a r i a b l e - n a m e v a r i a b l e - n a m e v a r i a b l e - n a m e e c h o $ L O G N A M E e r r o r- m s g s h e l l $ L O G N A M E u n s e t unset variable-name shell s e t s h e l l

133 s e t s h e l l $ { v a r i a b l e :- v a l u e } c o l o u r b l u e e c h o c o l o u r $ { v a r i a b l e : = v a l u e } 03 : 00 We e k l y a t

134 14 f i l e $ { v a r i a b l e : + v a l u e } v a r i a b l e = " " $ D E T I N A T I O N = " " s o u r c e p a s s w d d e s t c p d e v i c e m t v a r i a b l e - n a m e = v a l u e readonly variable-name

135 r e a d o n l y 14.3 s h e l l s h e l l. p r o f i l e / e t c / p r o f i l e p r o f i l e x p o r t V A R I A B L E - N A M E = v a l u e export VARIABLE-NAME V A R I A B L E - N A M E = v a l u e Export VARIABLE-NAME e n v

136 u n s e t shell Brourne shell / e t c / p r o f i l e s h e l l 1. CDPAT H c d C D PAT H c d C D PAT H C D PAT H $ CDPATH=:/home/dave/bin:/usr/local/apps export CDPATH. $ cd apps c d C D PAT H a p p s 2. EXINIT E X I N I T v i v 10 t a b $ EXINIT='set nu tab=10';export EXINIT 3. HOME H O M E p a s s w d 2 H O M E c d $ cd $ HOME 4. IFS

137 I F S s h e l l t a b I F S I F echo PAT H $ IFS=<space><tab>; export IFS < s p a c e > < t a b > t a b 5. LOGNAME 6. MAIL M A I L /var/spool/mail/<login name> s h e l l M A I L $ MAIL=/usr/mail/dave export MAIL 7. MAILCHECK M A I L C H E C K 60 s 2 m $ MAILCHECK=120 export MAILCHECK 8. MAILPAT H M A I L PAT H M A I L $ MAILPATH=/var/spool/dave:/var/spool/admin export MAILPATH M A I L d a v e a d m i n 9. PAT H PAT H H O M E $ PATH=$HOME/bin:.:/bin:/usr/bin export PATH H O M E / b i n / b i / u s r / b i n PAT H / e t c / p r o f i l e $ PATH=$PATH:/$HOME/bin:. export PATH / e t c / p r o f i l e PAT H $ H O M E / b i n 10. PS1 s h e l l # $

138 PS2 P S 2 > P S SHELL S H E L L s h e l l / e t c / p a s s w d s h e l l s h e l l 13. TERMINFO / u s r / l i b / t e r m i n f o / u s r / s h a r e / t e r m i n f o $ TERMINFO=/usr/lib/terminfo export TERMINFO 14. TERM T E R M T E R M v t 100 v t 200 v t $ TERM=vt100 export TERM 15. TZ G M T 0 E D T EDITO R $ EDITOR=vi export EDITOR 2. PWD c d 3. PA G E R p g m o r e m a n $ PAGER='pg -f -p%d' export PAGER 4. MANPAT H

139 m a n $ MANPATH=/usr/apps/man:/usr/local/man export MANPATH 5. LPDEST P R I N T E R $ LPDEST=hp3si-systems set $ H O M E. p r o f i l e s e t - a set -a / e t c / p r o f i l e $ H O M E. p r o f i l e s h e l l f a t h e r c h i l d f a t h e r f i l m A Few Good Men c h i l d f i l m Die Hard f a t h e r

140 14 f a t h e r f i l m c h i l d f i l m f a t h e r e x p o r t c h i l d f i l m e x p o r t f i l m f i l m s h e l l 9 s h i f t s h i f t 9 $ 0 Did You See Th e Full Mo o n $ 0 $ 1 $ 2 $ 3 $ 4 $ 5 $ 6 $ 7 $ 8 $ 9 Did Yo u S e e T h e F u l l M o o n

141 $ 0 b a s e n a m e $ f i n d $ 1

142 14 $ 1 g r e p i d g r e p i d p a s s w d s h e l l s h e l l $ # $ * 9 $ $ I D $! I D $ # $ - s h e l l s e t $? 0 p a r a m

143 I D $? / t m p $? $? c p c a n n o t... / d e v / n u l l b i n b i n $! 1

144 s h e l l s h e l

145 s h e l l s h e l * s h e l l s h e l l shell " " ' ' \ 15.2 $ ` \ s h e l l

146 m y d a t e s h e l l " " m y d a t e d a t e d a t e g r e p Davey Wi r e g r e p D a v e y Wi r e s h e l l s h e l l $ b o y $ B O Y 15.3 s h e l l 15.4 s h e l l s h e l l h e l l o h e l l d a t e s h e l l

147 m y d a t e m y d a t e d a t e m y d a t s h e l l 15.5 s h e l l & * + ^ $ ` "? e c h o * $ echo \* * $ $ s h e l l I D $ $ A S C I I s h e l l

148 L I N U X - e e x p r * * e c h o $ $ $ ) 2)

149 s h e l l 16 shell s h e l l s h e l l s h e l l shell shell 16.1 shell s h e l l s h e l l U N I X L I N U X s h e l l s h e l l 16.2 #!/ b i n / s h s h e l l Bourne shell #

150 152 s h e l l 16.3 c l e a n u p / u s r / a d m / / u s r / l o c a l / a p p s / l o g c h m o d $ chmod u+x cleanup $ cleanup $ cleanup sh:cleanup:command not found $. /cleanup s h e l l. p r o f i l e PAT H $ H O M E $ pwd $ /home/dave/bin p w d b i n. p r o f i l e $ H O M E / b i n P A T H = $ P A T H : $ H O M E / b i n b i n $ cd $HOME $ mkdir bin. p r o f i l e b i n PAT H. p r o f i l e $../profile 2 13

151 16 shell 153 c h m o d 16.4 s h e l l s h e l l

152 17 Te s t i f t h e n e l s e t e s t e x p r e x p r $? t e s t e x p t e s t test condition [ c o n d i t i o n ] d - s 0 - f - w - L - u s u i d - r - x s c o r e s. t x t 0 0 s c o r e s. t x t s c o r e s. t x t a p p s b i n

153 a p p s b i n s u i d s u i d 17.2 O K s h e l l -a -o s c o r e s. t x t r e s u l t s. t x t r e s u l t s. t x t

154 156 s h e l l s t r i n g _ o p e r a t o r = = -z -n E D I TO R v i e c h o t a p e t a p e 2 t a p e t a p e " n u m b e r " n u m e r i c _ o p e r a t o r " n u m b e r " [ " n u m b e r " n u m e r i c _ o p e r a t o r " n u m b e r " ] n u m e r i c _ o p e r a t o r -eq -ne -gt -lt -le -ge 130

155 s o u r c e _ c o u n t d e s t _ c o u n t : too many arg u m e n t s 17.5 expr e x p r expr argument operator argument e x p r s h e l l

156 158 s h e l l e x p r 0 1 e x p r e x p r d e v / n u l l 0 e x p r 1 h e l l o h e l l o e x p r 1 0 h e l l o h e l l e x p r e x p r.* 0 e x p r. d o c

157 e x p r t e s t if then else c a s e

158 18 while f o r until loops if then else 18.1 $ echo $? 4 $? $ $ s h e l l s h e l l 19 s h e l l e x i t exit n n e x i t s h e l l s h e l e x i t s h e l l 0 1 s h e l l s h e l l s h e l l # 18.2

159 s h e l l i f t h e n e l s e 0 1 c a s e for Until u n t i l While w h i l e f o r f o e c h o L I N U X B S D e c h o echo -e -n e c h o U N I X V B S D e c h o 19 s h e l l 18.3 if then else i f 0 1 i f if 1 then 1 elif 2 then 2 else 3

160 162 s h e l l f i i f If 1 1 Then 1 1 elif 2 1 then 2 2 else fi i f f i i f f i e l i f e l s e e l i f e l s I f e l i f i if then fi if i f i f then f i i f t h e n i f if t h e n f i i f e c h o e l s e

161 r e t u r n n a m e grep g r e p i f g r e p g r e D a v e d a t a. f i l e D a v e \ > g r e p g r e 0 g r e i f g r e p i f grep g r e p g r e p P e t e r

162 164 s h e l l c p m y f i l e m y f i l e. b a k basename $0` >/dev/null 2>& D I R E C TO RY "/" / 1

163 i f t e s t. t x t L O G N A M E i f $ # c r o n a t

164 166 s h e l l t e s t - t t e s t if else i f if t h e n e l s e f i 1 i f e l s e E D I TO R E D I TO R L O G N A M E r o o t L O G N A M E r o o t r o o 1 r o o t L O G N A M E e l s e f i r o o t

165 $ 1 D I R E C TO RY ls -A null t h e n e l s e i f s h e l l t h e n

166 168 s h e l l D I R E C TO RY if ["$DIRECTORY"=""] if[$# -lt 1] Y y

167 c p $ 1 $ 2 / d e v / n u l l s o r t a c c o u n t s. q t r if i f i f f i E D I TO R

168 170 s h e l l v i v i y Y y $ E D I TO R = r e t u r n -z $EDITO R v i E D I TO R v E D I TO R E D I TO R *. t x t

169 y Y C O U N TO R

170 172 s h e l l s t t y p a s s w d s t t y I D m a y d a y I N VA L I D _ U S E R I N VA L I D _ PA S S W D n o y e s I D I D d a v e p a u l i n e

171 elif if then else e l i f elif e l i f r o o t l o u i s e d a v e r o o t l o u i s e d a v e

172 174 s h e l l / u s r / o p t s / a u d i t / l o g s / u s r / l o c a l / a u d i t / l o g s

173 case c a s e c a s e c a s e case i n 1 } 1... ; ; e s a c c a s e i n * * [..] case 1 5 c a s e A N S c a s e A N S c a s e c a s e *

174 176 s h e l l * c a s e v t 100 v t 102 v t 100 v t 102 v t 100 v t 102 v t 100 v t T E R M * T E R M v t 100 c a s e T E R M * T E R M

175 y n c a s e y n Y y y e s c a s e N n n o case c a s e $ # 1

176 178 s h e l l c a s e p a s s w d s t a r t s t o p h e l p c a s e c a s e

177 w h e n c a s e

178 180 s h e l l c a s e if then else 18.5 for f o r for i n d o d o n e 1 2

179 f o r s h e l l I n f o r i n for f o r orange red blue grey e c h o l o o p e c h o $ l o o p for ls l s

180 182 s h e l l for f o r i n for params in"$@" for params in"$*" i n f o r $ * i n f o r f i n d

181 f i n d - n a m e for f o r f o for f o r c p. b a k c p l s L P S O l s c a t l s c a t t r.u C f o r l s

182 184 s h e l l sed s e d. H O L D. m v m v e x p r l s f o w c for f o r w h o a w k f o r

183 for f o r f o for 1 in 1 d o for 2 in 2 d o 1... d o n e d o n e f o r A P P S S C R I P T S A P P S S C R I P T S t e e f o r S C R I P T S A P P S

184 186 s h e l l 18.6 until u n t i l u n t i w h i l e w h i l e u n t i l u n t i l u n t i l until 1... d o n e until w h o r o o t I S - R O O T g r e p r o o t s i m o n r o o t s l e e p u n t i l

185 u n t i l / t m p / m o n i t o r. l c k p r o c e s s. m a i n p r o c e s s. m a i n L C K p r o c e s s. m a i n p r o c e s s p r o c e s s. m a i n L C K L C K L C K u n t i l / l o g s $L O O K_O U T $ L O O K _ O U T a w k g r e p / l o g s 90 % 90 %

186 188 s h e l l 18.7 while w h i l e while d o d o n e w h i l e d o 0 d o d o n e while w h i l e C O U N T E R 5 C O U N T E R 0 C O U N T E R while w h i l e F I L M < C t r l - D >

187 while w h i l e I D w h i l e $ L I N E IFS I F S I F S I F S t a b 3 N A M E D E P T I D e c h o t a b

188 190 s h e l l w h i l e James Lenod James Lenod c a s e e x p r

189 S TAT G I F T G I F T e x p r e x p r L O O P TO TA L 0 I T E M S TO TA L I T E M S TOTAL

190 192 s h e l l e x p r e x p r e x p r TO TA L 0 e x p r

191 w h i l e w c # w h i l e c a s e #

192 194 s h e l l # * * #

193 I T E M s e d w h i l e e x p r

194 196 s h e l l while 5 w h i l e 3 4 m y f i l e. t x t m y f i l e. b a k w h i l e n u l l

195 break continue s h e l l break continue break b r e a k b r e a k c a s e break case 5 s h e l l b r e a k continue c o n t i n u e b r e a k

196 198 s h e l l Peter James 2 Peter James

197 w h i l e n u l l h i l e n u l l w h i l e c a s e / D D / M M / Y Y Y Y $ date +%d/%m/%y 3 2 / 0 5 / h o s t n a m e - s w h i l e w h i l e while d o d o n e e c h o c a s e

198 200 s h e l l c a s e CAPS LOCK Q q 0 L I N U X BSD echo V echo "\007 the bell ring" e c h o t p u t t p u t c l e a r

199

200 19 shell s h e l l s h e l s h e l l { 1 } } f u n c t i o n f u n c t i o n {... } s h e l l s h e l l e c h o

201 19 shell s h e l l h e l l o e c h o 19.2 h e l l o back from the function 19.3 $ 1, $ 2... $ 9 s h e l l _ F I L E N A M E _ f i l e n a m e ) 2) r e t u r n 0 1

202 204 s h e l l r e t u r n Return 0 Return i f 0 1 i f v a r i a b l e _ n a m e = f u n c t i o n _ n a m e f u n c t i o n _ n a m e v a r i a b l e _ n a m e 19.6 shell s h e l l #!/ b i n / s h f u n c t i o n s. m a i n s h e l l s e t s h e l l u n s e t s h e l l u n s e t s h e l l s h e l l u n s e t u n s e 19.7 s h e l l f u n c t i o n s. m a i n

203 19 shell 205 f i n d 1 $ 0 s h e l l s h / p a t h n a m e / f i l e n a m e s h e l l $. functions.main file not found $. /functions.main < > < > < > < > s h e l l 19.9 s e t s e s h e l l shell f i n d i t

204 206 s h e l l shell s h e l l u n s e t u n s e t unset function_name $ unset findit s e t shell f u n c t i o n s. m a i n f o r $. /functions.main s e t s h e l l f o r f i n d i t

205 19 shell a w k $ 1 a w k 1 _ L E T T E R S _ O N LY i f

206 208 s h e l l n a m e _ e r r o r F _ N A M E S _ N A M E w h i l e

207 19 shell echo e c h o L I N U X B S D V e c h o e c h o r e a d L I N U X B S D e c h o - n L I N U X B S D e c h o e c h V \ C e c h o L I N U X - e s h e l l e c h o e c h o \ 007 V \ 007 L I N U X uni_prompt "\007 there goes the bell,what is your name:" What is your name: V L I N U X / B S D V \c z

208 210 s h e l l uni_prompts "\007 there goes the What bell is your name:" There goes the bell What is your name: 3. press any key to continue d d d d 1 m y f i l e dd if:/dev/zero of=myfile count=512 bs=2048 d d d d d s t t y d d d d

209 19 shell i f 5. Y N c a s e

210 212 s h e l l $ 1 Y N c o n t i n u e _ p r o m p t

211 19 shell 213 $ 1 6. I D I D grep passwd grep /etc/passwd p a s s w d 5 p a s s w d I D g r e p w h o i s 7. v i n l n l

212 214 s h e l l n u m b e r _ f i l e s h e l l $ number_file myfile number_file $1 8. t r u p p e r s t r _ t o _ u p p e r $ 1

213 19 shell is_upper s t r _ t o _ u p p e r i s _ u p p e r i f i s _ u p p e r i s _ u p p e r a w k i s _ l o w e r 10. s t r _ t o _ u p p e r s t r _ t o _ l o w e r

214 216 s h e l l L O W E R s t r _ t o _ l o w e r c h e c k _ l e n g t h

215 19 shell 217 N A M E 10 b r e a k w c w w c a w k w c 12. chop c h o p M Y D O C U M E N T. D O C M Y D U C U M E N T. D O C c h o p M Y D O C U M E N T. D O C 1 0 Chop

216 218 s h e l l C H O P P E D c h o p 13. MONTHS m o n t h s 3 03 M a r c h

217 19 shell 219 m o n t h s months 04 A p r i l J u n e s h e l l

218 220 s h e l l e r r o r _ m s g f u n c t i o n s. s h s h s h e l l

219 19 shell 221 f u n c t i o n s. s h.\<path to file> s h e l l s h e l

220 222 s h e l l b a c k f u n c 1 _ C O D E _ C O D E c o m e t

221 19 shell

222 20 $ 1.. $ 9 $ # u s a g e shift getopts shift g e t o p t s u s a g e c a s e U N I X L I N U X

223 s h e l l s h i f t s h i f $ 1 $ shift s h i f t w h i l e shift s h i f t e v a l eval echo \$$# s h i f t shift 'expr $# -2'

224 226 s h e l l shift s h i f t t r -l -u s h i f t - l - u u s a g e c a s e s h i f t u s a g e c a s e c a s c a s * -* - p - q

225 * f o r - f c a s e - l - u T R C A S E E X T O P T. U C. L C y e s n o t r t r c a s e f o r

226 228 s h e l l

227 l -c 23 -v 1 2 s h i f t g e t o p t s 20.2 getopts g e t o p t s g e t o p t getopts g e t o p t s g e t o p t s a A L L t r u e h H E L P t r u e

228 230 s h e l l f F I L E t r u e v V E R B O S E t r u e f a l s e g e t o p t s getopts option_string variable while getopts ahfgv OPTION w h i l e o p t i o n _ s t r i n g 5 - a - h - f - g - v v a r i a b l e O P T I O N

229 getopts g e t o p t s o p t i o n _ s t r i n g g e t o p t s o p t i o n _ s t r i n g O P T I O N g e t o p t s O P T I O N getopts g e t o p t s o p t i o n _ s t r i n g getopts ahfvc: OPTION a h f v c O P TA R G o p t i o n _ s t r i n g while getopts :ahfgvc: OPTION c a s e g e t o p t s

230 232 s h e l l - c g e t o p t s g e t o p t s

231 d g e t o p t s O P TA R G g e t o p t s f o r t r- c a s e s h i f t g e t o p t s s h i f t getopts t r- c a s e g e t o p t s g e t o p t s h i f t V E R B O S E V E R B O S E n o c a s e y e s i f / d e v / n u l l >/dev/null 2 >&1 V E R B O S E - v V E R B O S E m y f i l e tr-case -l -v myfile1 myfile2... tr-case -v -l myfile1 myfile2... g e t o p t s s h i f t

232 234 s h e l l U N I X L I N U X

233 a - c - d - e - f - h - i - l - o - q - p -v 20.3 s h i f t g e t o p t s g e t o p t s s h i f t s h i f t $ 1.. $ 9 s h i f t

234 21 s h e l l t p u t tput t p u t GNU tput t p u t / e t c / t e r m i n f o / e t c / t e r m c a p t p u t 21.1 tput t p u t t p u $ tput init t p u t / b e l b l i n k b o l d c i v i s c l e a r c n o r m c u p e l e l l s m s o r m s o s m u l r m u l s c rc s g r 0 r e v x y

235 c o l s i t l i n e s t a b t p u t c h t s h s 21.2 tput t p u t t p u tput t p u t variable_name='tput name' i f t p u t tput tput bel c l

236 238 s h e l l ) 2) tput civis 25 l l 25 h [ U N I X L I N U X e c h o \ 033 \ e c h e c h o - e \ 100 v echo \ c l e a r h o m e V T E S C I J e c h o e c h o ' < CT R L - V> hit the<escape> key then [?25h' < C T R L - V >,

237 t p u t cup r c r c

238 240 s h e l l t p u t t p u t 2 10 centertxt 15 THE MAIN EVENT centertxt 15 $ t p u t t e r m i n f o t p u t

239 i n f o c m p t e r m i n f o $ infocmp $TERM t e r m p u t c a t F 1 cat -v < C t r l - c > c a t F 1 ^ [ O P ] F 2 ([ O Q ]) [ ^ [[ A ] F 1 F 2 c a t

240 242 s h e l l A N S I

241 <ESCAPE> [background_number;foreground_number m e c h o e c h o < C t r l - v > < E S C A P E > [ m e c h o c a s e r e d - y e l l o w colour red-yellow e c h o. p r o f i l e 2 1-2

242 244 s h e l l 21-1 tput 21-1

243 21 245

244 246 s h e l l w h i l e r e a d _ c h a r t r a p p r i v. u s e r r o o t d a v e m a t t y p e t e r l o u i s e

245 F O U N D U S E R U S E R w h o a m i c o n t i n u e t e s t 1 0 p a s s w d 21-2

246 248 s h e l l R e s t r i c t d a v e q Q

247 21 249

248 250 s h e l l

249 p r o f i l e e x e c U N I X L I N U X s h e l l 21.3 t p u t

250 22 D B F I L E IT <Staff number>:<first name>:<second name>:<department> t r a p ) 2)

251 r e a d _ a _ c h a r

252 254 s h e l l g r e p g r e p _ C O D E a w k 0 g r e p $ _ C O D E \ >

253 w h i l e w h i l if ["$NUM"!=""] i f t h e n e l s e Staff Number:No Input Detected This Field Requires a Number t h e n a _ n u m b e r 0 1 NU M_ PA S S 0 1 l e n g t h _ c h e c k L E N _ PA S S 0 1 c h e c k _ d u p l i c a t e D U P L I C AT E 0 A N D t h e n w h i l e b r e a k Staff Number : Non_Numeric or Too Many Numbers In Field 2 3 c h a r a c t e r s

254 256 s h e l l c a s e 5 c a s e c o n t i n u e _ p r o m p t Y N Y N N i f w h i l e Y echo "$NUM:$F_NAME:$S_NAME:$DEPART">>$DBFILE s l e e p 1 s D B F I L E

255 D B F I L E

256 258 s h e l l

257 22 259

258 260 s h e l l

259 22 261

260 262 s h e l l ) 2) 3) 4) g r e p a w k 100 a w k a w k g r e p a w k g r e p D B F I L E a w k I F S I F S I F S S A V E D I F S = $ I F S I F S = : I F S I F S = $ S A V E D I F S

261 g e t _ r e c q if ["$STR"!=""] t h e n [-2 $STR] 0 b r e a k n o

262 264 s h e l l grep -v S T R S T R g r e p D B F I L E D B F I L E

263 22 265

264 266 s h e l l 22.3 { d e f a u l t _ v a r i a b l e = v a r i a b l e }

265 grep -v g r e p grep -v $CODE $DBFILE >$HOLD1 D B F I L E D B F I L E

266 268 s h e l l

267 22 269

268 270 s h e l l 22.4 c a t a w k

269 22 271

270 272 s h e l l

271

272 23 s h e l l set i f f i s h e l l s h e l l f o r w h i l e u n t i l c a s e d o n e w h i l w h i l e d o s h e l l v i v i set nu v i < E S C > set nu <return> s h e l l e q

273 [: missing ']' for f o r $ echo e c h o e c h e c h o e c h o 23.2 set s e t s e t set -n set -v set -x s e t s e t f o r set -x

274 276 s h e l l s e t 23.3 s e t e c h o

275 24 shell s h e l l s h e l l Bourne shell / b i n u s r / b i n Bourne shell c d p w d / b i n / p w d 24.1 shell t r u e. s h e l l b r e a k c d c o n t i n u e e c h o e v a l e x e c exit e x p o r t p w d r e a d r e a d o n l y r e t u r n s e t s h i f t test t i m e s t r a p u l i m i t u m a s k u n s e t w a i t f o r w h i l e u n t i l c a s e s h e l l s h e l l s h e l l s h e l l s h e l l s h e l l pwd

276 278 s h e l l $ pwd / t m p set s h e l l s e t s e t s e t set param1 param2.. a c c o u n t s. d o c a c c o u n t s. b a k s e t times t i m e s s h e l l t i m e s type t y p e t y p

277 24 s h e l l ulimit u l i m i t s h e l l / e t c / p r o f i l e s h e l l. p r o f i l e u l i m i t ulimit options u l i m i t u l i m i t - a - c - f wait w a i t w a i I D $ wait 24.2 s h e l l

278 shell 25 << w h i l e < < < < ftp command <<word t e x t w o r d < < s h e l l < < s h e l l ( ) < < 25.1 $ cat >> myfile <<NEWFILE N E W F I L E m y f i l e t a b s h e l l < < - cat >> myfile <<- NEWFILE v i Q U I C K D O C

279 s h e l l 25.3 < < c r o n < < s y b _ b a c k u p 2 3 Y 1) s y b _ b a c k u p 2) 2 3) 3 4) Y s y b _ b a c k u p

280 25 s y b _ b a c k u p >>$log_f 2>&1 $ l o g _ f / l o g s / s q l. b a c k u p. l o g < < M AY D AY s y b _ b a c k u p M AY D AY < < 25.4 ftp < < f t p f t p a n o n y m o u s f t p 1) 2) A S C I I 3) 4) t r a c e r o u t e t r a c e r o u t e f t p

281 s h e l l / t m p / t m. f t p

282 25

283 s h e l l f t p < < ftp -i -n u s e r $ U S E T H I S H O S T d a v b u m p e r D E S T _ H O S T F I L E N A M E f t p D E S T _ H O S T m y _ f a v o u r i t e _ h o s t 25.5 s h e l l < < < < select into

284 25 < < f o r < < s q l < < s h e l l s h e l l M AY D AY

285 s h e l l 25.6 < < < f t p < <

286 26 shell t r a p e v a l l o g g e r 26.1 c a t date d a t e date option + %format + h h : m m

287 s h e l l d d m m y y d d h h m m $ $ $ $ $ $ S h e l l $ $

288 2 6 rm /tmp/*.$$ s h e l l rm /tmp/* S I G H U P 2 S I G I N T < C T R L - C > 3 S I G Q U I T 9 S I G K I L L 11 S I G S E G V 1 5 S I G T E R M 0. l o g o u t s h e l l 0 e x i t < C T R L - D > kill [-signal no: signal name] process ID k i l l 15

289 s h e l l D N S n a m e d kill -1 1 N a m e d m o n _ w e b 9 p s ps -ef ps xa kill kill -s SIGKILL s kill SIGKILL 157 g r e p kill -9

290 s h e l l

291 s h e l l 3 t r a p 26.3 trap t r a p trap name signal(s) n a m e n a m N a m e S i g n a l 1) 2) 3) t r a p trap "" 2 3 trap"commands" 2 3 trap c o m m a n d s < C t r l - C > 2 t r a p trap "do_something" signal no:(s)

292 2 6 trap "my_exit" 2 t r a p 2 m y _ e x i t m y _ e x i t 2 $ L O O P < C t r l - C > d f p s H O L D 1. $ $ H O L D 2. $ $ $ $ < C T R L - C >

293 s h e l l 2 3 < C T R L - C > 2 c a s e 1 2 c a s e c a s e

294 2 6 < C T R L - C > l o c k i t w h i l e t r a p $ stty sane

295 s h e l l l o c k i t / e t c / p r o f i l e t r a p

296 2 6 t r a p 9 trap""signal no:(s) trap"do something" signal no:(s) trap "" trap"my_exit" m y _ e x i t w h i l e t r a p 6 s l e e p

297 s h e l l < C t r l - C > t r a p < C t r l - C > m y _ e x i t t r a p 26.4 eval e v a l e v a l e v a l t e s t f cat testf M Y F I L E e c h o cat testf M Y F I L E $ MYFILE= cat testf

298 2 6 e c h o t e s t f e v a l e v a l e v a l cat testf C AT _ PA S S W D cat /etc/passwd more eval e v a l e v a l $ $ # s h e l l d a t a e v a l

299 s h e l l d a t a P C 486 N A M E T Y P E E v a l N A M E T Y P E P C 486 P C 486 e v a l e v a l 26.5 logger m e s s a g e s / v a r / a d m / v a r / l o g s y s l o g m e s s a g e s / e t c / s y s l o g. c o n f U N I X L I N U X l o g g e r / v a r / a d m / m e s s a g e s l o g g e r logger -p -I message

300 2 6 - p - i logger m e s s a g e c r o n t a b 30 $ test_logger m e s s a g e logger l o g g e r

301 s h e l l l o g g e r t t y 0 t t y 02 / e t c / p r o f i l e

302 2 6 l o g g e r 26.6

303 p i n g a l l / e t c / h o s t s p i n g b a c k u p _ g e n d e l. l i n e s s e d a c c e s s _ d e n y l o g r o l l n f s d o w n u n m o u n t n f s 27.1 pingall p i n g a l l / e t c / h o s t s p i n g / e t c / h o s t s # w h i l e a w k A D D R f o r p i n g 27.2 backup_gen

304 27 b a c k u p _ g e n b a c k u p. d e f a u l t s [ ] [ r m t 0 ] r m t 1 r m t 3 [ ] [ ] s y b a s e f i n d c p i o

305 s h e l l

306 27

307 s h e l l backup.defaults continue_prompt

308 27

309 s h e l l 27.3 del.lines s e d s e d s e d s e d $ $ s h i f t w h i l e del.lines -help

310 access.deny / e t c / n o l o g i n / e t c t o u c h n o l o g i n r o o t / e t c / p r o f i l e / e t c n o l o g i n

311 s h e l l rm /etc/nologin / e t c / p a s s w d * L I N U X l o g i n. a c c e s s d e n y. a c c e s s / e t c / p r o f i l e l o c k o u t. u s e r s a l l r o o t l o c k o u t. u s e r s t r a p l o c k o u t. u s e r s a l l a l l a l l r o o t g r e p a l l \ > get_users l o c k o u t. u s e r s # r o o t r o o L O G N A M E N A M E S N A M E S l o c k o u t. u s e r s 40 / e t c / p r o f i l e. /apps/bin/deny.access / a p p s / b i n

312 27 l o c k o u t. u s e r s / a p p s / e t c s e t l o c k o u t. u s e r s u n s e t u n s e t / e t c / p r o f i l e unset getusers

313 s h e l l 27.5 logroll c r o n 16 B L O C K _ L I M I T 8 4 K L O G S f o r d u B L O C K _ L I M I T 0 c r o n

314 nfsdown n f s n f s n f s L I S T n f s f o r g r e p d f n f s n f m o u n t machine: remote_directory N F S _ M A C H I N E u m o u n t 27.7

315 28 L I N U X L I N U V U N I X r c. s c r i p t s r c. s c r i p t s i n i t t a b r c. s c r i p t s t a r t s t o p r c. s c r i p t r c. s c r i p t s h e l l 28.1 r c. s c r i p t s ( ) / e t c / r c N. d / e t c / r c. d / r c N. d N 7 r c N. d 0 6 r c S. d L I N U X

316 28 c d r c N. d r c. s c r i p t s 28.2 s h e l l r c. s c r i p t s run level L I N U X $ runlevel inittab i n i t i n i t t a b / e t c i n i t i n i t t a b i d : r s t a r t : a c t i o n : p r o c e s s i d r s t a r t a c t i o n i n i t p r o c e s s

317 s h e l l w a i t r e s p a w n w a i t r e s p a w n p r o c e s s i n i t t a b :5:wait:/etc/rc.d/rc / e t c / r c. d / r c / e t c / r c. d / r c / e t c / r c. d / r c 5. d s t t y S 1 m i n g e t t y v t i n i t / e t c / r c. d / r c / e t c / r c. i n i t r c r c. i n i t f o r K s t o p S s t a r t r c N. d

318 28 / u s r / s b i n / i n i t. d / e t c / i n i t. d L I N U X / e t c / r c. d / i n i t. d r c. < > r c run command r u n c o n t r o l real crucial r c. s c r i p t s rc.name stop rc.name start r e s t a r t s t a t u s r c N. d ( 28-1 ) U N I X X - w i n d o w s r c N. d S n n n. s c r i p t _ n a m e K n n n. s c r i p t _ n a m e S K n n

319 s h e l l r c 3. d S 45. m y s c r i p t r c 2. d S 45. m y s c r i p t s c r i p t _ n a m e / u s r / s b i n / i n i t. d / e t c / r c. d / e t c / i n i t. d i n i t K K23,myscript K12.named L I N U X K ( )/ e t c / i n i t. d / u s r / s b i n / i n i t. d / e t c / r c. d r c N. d r c. a u d i t r c N. d 35 c a s e s t a r t s t o p

320 28 LINUX L I N U X s t a r t s t o p i n i t. d r c N. d / e t c / r c. d / e t c / r c. d / i n i t. S ls -l / e t c / i n i t. d / r c. a u d i t ( r c 4. d r c 5. d ) ( 6 ) inittab i n i t t a b i n i t t a b

321 s h e l l 3 i n i t t a b $ cp /etc/initab /etc/inittab.bak i n i t t a b r c. d i s k c h e c k e r 3 / u s r / l o c a l / e t c / r c. d i s k c h e c k e r 28.6 / e t c / i n i t t a b r c. l o c a l / e t c i n i t t a b / b i n ( / u s r / s b i n ) s h u t d o w n 28.7

322 29 cgi P C We b s h e l l c g i c g i (Server Side Includes,SSI) get post We b c g i We b We b ( a p a c h e C e r n ) ( N e t s c a p e Internet Explorer ) c g i c g We b 20 We b apache We b N e t s c a p e H T M L We b H T M L 29.1 Web We b H T M L We b H T M L We b We b We b c g i 29.2 cgi c g i c g i P e r l

323 s h e l l s h e l l 29-1 Web Web apache? cgi 29-1 cgi 29.3 Web ( U R L ) We b U R L h t t p f t p m a i l t o f i l e t e l n e t n e w s h t t p ( ) D N S I P T C P 80 We b i n d e x. h t m l U R L h t t p : / / l o c a l h o s t / i n d e x. h t m l i n d e x. h t m l We b U R L h t t p : / / l o c a l h o s t / 29.4 cgi HTM We b U R L c g i - b i n c g i c g i c g i We b H T M L H T M L We b 29-1 H T M L cgi c g i We b c g i - b i n s r m. c o n f S c r i p t A l i a s c g i. c g We b h t m l h t d o c s. h t m l chmod 755 script.cgi We b n o b o d y h t t p d. c o n f

324 29 We b p a s s w d n o b o d y n o b o d / e t c / p a s s w d * 29-1 H T M L < H T M L > < / H T M L > H T M L < H E A D > < / H E A D > < T I T L E > < / T I T L E > < B O D Y > < / B O D Y > < H n > < / H n > 1 < P > < / P > < B R > < H R > < P R E > < / P R E > < B > < / B > < I > < / I > < O L > < / O L > <A HREF=url>link</A> < F O R M > < / F O R M > M E T H O D A C T I O N p o s t g e t < I N P U T... > N A M E S I Z E T Y P E < S E L E C T... > N A M E S I Z E <OPTION VA L U E > < / S E L E C T > N A M E a p a c h e We b / e t c / h t t p d / l o g s / u s r / l o c a l / a p a c h e / l o g s We b c g i c g i f i r s t p a g e. c g c g i - b i n 755

325 s h e l l s h e l l e c h o M I M E e c h o M I M E c g i e c h o < H T M L > H T M L H T M L < H 1 > < H n > < H 6 < H 2 > < C E N T E R > Stand-By To S t a n d - To < / H T M L > U R L h t t p : / / y o u r _ s e r v e r / c g i - b i n / f i r s t p a g e. c g i y o u r _ s e r v e r D N S I n t e r n e t firstpage shell s h e l l w h o w c

326 29 U S E R S i f 10 < P R E > d f e c h o < P R E > < P R E > U R L h t t p : / / y o u r _ s e r v e r / c g i - b i n / p a g e t w o. c g i y o u r _ s e r v e r pagetwo.cgi

327 s h e l l SSI c g i We b c g i c g i H T M L c g i ( S S I ) S S I S S I S S I s e r v e r- p a s s e d a p a c h e We b kill -1 S S I. s h t m l. h t m n c g i - b i n h i t c o u n t. c g i../ c d i - b i n / c o u n t e r a c c e s s 1../ c g i - b i n / c o u n t e r c o u n t e r 1 c o u n t e r 1 ( ) $ chmod 666 counter We b ( H T M L h t d o c s h t m l ). s h t m l. s h t m

328 29 S S I L A S T _ M O D I F I E D a p a c h e We b ( w w w. a p a c h e. o rg ) S S I S S I <!--#command argument="value"--> c g i h i t c o u n t e x e c c g i v a l u e i n d e x. h t m l U R L i n d e x. h t m l 29-4

329 s h e l l s r m. c o n f D i r e c t o r y I n d e x i n d e x. h t m l We b U R L h t t p : / / < s e r v e r _ n a m e > / m a i n. s h t m l h t t p : / / < s e r v e r _ n a m e > L A S T _ M O D I F I E D c r o n c o u n t e r Web c g i e n v s e t m a i n. s h t m l c g i <A HREF="/cgi-bin/printenv.cgi">Environment</A> A HREF E n v i r o n m e n t < / A > m a i n. s h t m l p r i n t e n v. c g i e n v < P R E >

330

331 s h e l l ( 29-6 ) c g i e n v s e t 29-2 cgi We b DOCUMENT ROOT G AT E WAY _ I N T E R FA C E H T T P _ A C C E P T H T T P _ C O N N E C T I O N H T T P _ H O S T H T T P _ U S E R _ A G E N T R E M O T E _ H O S T R E M O T E _ A D D R * R E Q U E S T _ M E T H O D S C R I P T _ F I L E N A M E S C R I P T _ N A M E S E RV E R _ A D M I N S E RV E R _ N A M E S E RV E R _ P R O TO C O L S E RV E R _ S O F T WA R E Q U E RY _ S T R I N G C O N T E N T _ T Y P E C O N T E N T _ L E N G T H We b H T M L c g i M I M E H T T P I P c g i c g i We b D N S I P We b g e t M I M E p o s t * I n t e r n e t c g i

332 get post c g i c g i g e t p o s t get g e t g e t H T M L U R L Q U E RY _ S T R I N G R E Q U E S T _ M E T H O D 1. m a i n. s h t m l b o o k a. c g i m a i n. s h t m l b o o k a. c g i c g i - b i n

333 s h e l l b o o k a _ r e s u l l t. c g i g e t 30 c o n t a c t f i l m a c t o r v i e w _ c i n e v i e w _ v i d o n ( 4 30 ) t e x t a r e a s u b m i t c l e a r c g i b o o k a _ r e s u l t. c g i c g i - b i n Q U E RY _ S T R I N G R E Q U E S T _ M E T H O D Q U E RY _ S T R I N G

334 29 b o o k a. c g i R E Q U E S T _ M E T H O D get 29-7 ( 29-8 ) 29-9 Q U E RY _ S T R I N G 29-7 get cgi 29-8

335 s h e l l 29-9 Q U E RY _ S T R I N G c o n t a c t f i l m a c t o r v i e w _ c i n e v i e w _ v i d 2. David Ta n s l e y The Sound Of Music Bruce Wi l l i s o n o n t e x t a r e a! " % $ % ^ * ^ & * ( ) * ( ) ( * H o w s that!! Q U E RY _ S T R I N G + & = x y x 16 A S C I I Q U E RY _ S T R I N G t e x t a r e a c g i x y ( x y 1 6 ) A S C I I 16 & + = ( ) A S C I I 127 ( 29 16

336 29 & + = x y A S C I I e v a l p r i n t f

337 s h e l l p r i n t f e c h o 16 p r i n t f \ n Q U E RY _ S T R I N G 16 x y s e d \ x n n ( n n 1 6 ) p r i n t f c o n v. c g i c g i - b i n b o o k a. c g i c o n v. c g i b o o k a _ r e s u l t. c g i <FORM action="/cgi-bin/conv.cgi" METHOD=GET> c o n v. c g i g e t g e U R L U R L Q U E RY _ S T R I N G c g i p o s t p o s post p o s t g e t p o s

338 29 p o s t g e p o s <FORM action"/cgi-bin/conv.cgi" METHOD=POST> C O N T E N T _ L E N G T H p o s t g e t C O N T E N T _ L E N G T H c a t c o n v. c g i g e t p o s c a t - c a t Q U E RY _ S T R I N G p o s t c a t g e t c g i b o o k a. c g i <FORM action="/cgi-bin/conv.cgi"method=get> <FORM action="/cgi-bin/conv.cgi"method=post> c o n v. c g i

339 s h e l l p r i n t f e c h o p r i n t f p o s t h t t p : / / < s e r v e r _ n a m e > / c g i - b i n / b o o k a. c g i

340 post cgi 3. c g i post Wonder Gifts

341 s h e l l

342 29 d e p t q t r s t d o u t p r i n t e r s c r e e n b o t h ( C H E C K E D )

343 s h e l l p o s t 16 ( ) p r i n t f q t r _ t x t w h i l e D E P T Y E A R Q P 1 P 2 P 3 P 4 $ d e p t ( ) D E P T $ q t r ( ) Q U R L U R L ( ) h t t p : / / < s e r v e r _ n a m e > / c g i - b i n / g i f t s. c g i

344 c g i l i s t We b t e m p w h i l e ( ) echo "<OPTION>$LINE" m e n u _ s e l e c t i o n

345 s h e l l c g i 60 d f s p a c e. c g i <meta http-equiv="refresh" content=60;url= i n / d f s p a c e. c g i " > R e f r e s h We b c o n t e n t = 60 U R L o n o ff d f c e l l s p a c i n g b o r d e r c o l s d f s e d a w k 5 6 p e r c e n t m o u n t T R T D 60

346 29 U R L U R h t t p : / / < s e r v e r _ n a m e > / c g i - b i n / d f s p a c e. c g i ( ) df 29.6 c g i H T M L H T M L

ebook 99-9

ebook 99-9 9 AWK a w k a w k s h e l l a w k Bailing out a w k : c m d. L i n e : a w k s h e l l a w k a w k a w g r e p s e d s h e l l a w k a w k a w k a w k a w k a w k a w k s e d g r e p a w k a w k A h o.

More information

ebook 99-11

ebook 99-11 11 P I C K U N I X P I C K P I C K s o r t uniq join cut paste split 11.1 sort s o r t s o r t U N I X 11.1.1 U N I X / L I N U X s o r t s o r s o r t s o r t s o r t s o r t s o r t s o r t u n i q j

More information

投影片 1

投影片 1 類 Linux BASH shell (, VBird) 2008/03/29 Linux 1 Bash Shell 令 vi vim 料流 令 / 令 理 (job control) 例 2008/03/29 Linux 2 Bash shell 2008/03/29 Linux 3 什 Shell Shell shell 2008/03/29 Linux 4 什 Shell Linux shell

More information

Unix®t Œ fi z.PDF

Unix®t Œ fi z.PDF 7 9 8 0 $ man umount newfs $ man -a intro $ man -a chown ORDER=C:ADM:ADMN:ADMP:PADM:F:HW 8 1 # catman % ps aux grep chavez chavez 8684 89.5 9.627680 5280? R N 85:26 /home/j90/l988 root 10008 10.0 0.8 1408

More information

Microsoft Word - linux命令及建议.doc

Microsoft Word - linux命令及建议.doc Linux 操 作 系 统 命 令 集 1 基 本 命 令 查 看 系 统 信 息 : uname -a 修 改 密 码 : passwd 退 出 : logout(exit) 获 取 帮 助 : man commands 2 文 件 和 目 录 命 令 显 示 当 前 工 作 目 录 : pwd 改 变 所 在 目 录 : cd cd - 切 换 到 上 一 次 使 用 的 目 录 cd 切 换

More information

本文由筱驀釹贡献

本文由筱驀釹贡献 本 文 由 筱 驀 釹 贡 献 ppt 文 档 可 能 在 WAP 端 浏 览 体 验 不 佳 建 议 您 优 先 选 择 TXT, 或 下 载 源 文 件 到 本 机 查 看 Linux 操 作 系 统 Linux 操 作 系 统 第 一 部 分 介 绍 与 安 装 Linux 的 由 来 : Linux 的 由 来 : 的 由 来 Linus Torvalds 1.Linux 的 版 本 1.Linux

More information

PowerPoint 演示文稿

PowerPoint 演示文稿 Linux 操 作 系 统 基 础 介 绍 课 程 目 标 及 要 求 了 解 Linux 操 作 系 统 的 登 入 方 式 掌 握 常 用 命 令 的 基 本 用 法 能 够 熟 练 在 各 个 目 录 转 换 Outline 1. Linux 操 作 系 统 简 介 2. Linux 操 作 系 统 的 登 录 3. Linux 操 作 系 统 的 目 录 结 构 4. 常 用 命 令 5.

More information

Bourne Shell及shell编程

Bourne Shell及shell编程 Bourne Shell shell Altmayer.bbs@altmayer.dhs.org javalee LINUX hbwork@dlut.edu.cn, April 1999. URL: ftp://ftp.dlut.edu.cn/pub/people/albin/ : ------------------------------------------------------------------------------

More information

ebook35-2

ebook35-2 2 2.1 Linux login Login: < > Password: < > Linux r o o t l o g o u t 2.2 Linux X Window Linux Linux Bourne ( b s h ) C ( c s h ) Korn ( k s h ) Bourne Steven Bourne UNIX Bourne bash Bourne C Bill Joy Bourne

More information

ebook15-C

ebook15-C C 1 1.1 l s ( 1 ) - i i 4. 14 - d $ l s -ldi /etc/. /etc/.. - i i 3077 drwxr-sr-x 7 bin 2048 Aug 5 20:12 /etc/./ 2 drwxr-xr-x 13 root 512 Aug 5 20:11 /etc/../ $ls -ldi /. /..... i 2 2 drwxr-xr-x 13 root

More information

ebook70-22

ebook70-22 2 2 L i n u x f s t a b X 11 L i n u x L i n u x L i n u x D O S Wi n d o w s L i n u x O p e n L i n u x / u s r / m a n / m a n 5 f s t a b m o u n t m o u n t L i n u x 22.1 OpenLinux L i n u x U N

More information

ebook70-21

ebook70-21 2 1 2 2 2 3 2 4 2 1 s u O p e n L i n u x L i n u x s c h e d u l i n g L i n u x O p e n L i n u x O p e n L i n u x O p e n L i n u x 5 r m # rm -fr / * L i n u x r m Permission denied s u 21.1 su s

More information

第零章、為何要學作業系統

第零章、為何要學作業系統 Bash Shell script VBird 2008/03/11 1 什 Shell Shell 2008/03/11 2 什 Shell Shell Linux shell /etc/shells chsh l 行 shell program 不 shell shell Linux Solaris bash csh 2008/03/11 3 Bash bash *? [0-9] 0~ [^abc]

More information

Microsoft Word - PS2_linux_guide_cn.doc

Microsoft Word - PS2_linux_guide_cn.doc Linux For $ONY PlayStatioin2 Unofficall General Guide Language: Simplified Chinese First Write By Beter Hans v0.1 Mail: hansb@citiz.net Version: 0.1 本 人 是 菜 鸟 + 小 白 欢 迎 指 正 错 误 之 处, 如 果 您 有 其 他 使 用 心 得

More information

Linux服务器构建与运维管理

Linux服务器构建与运维管理 1 Linux 服务器构建与运维管理 第 2 章 :Linux 基本命令 阮晓龙 13938213680 / rxl@hactcm.edu.cn http://linux.xg.hactcm.edu.cn http://www.51xueweb.cn 河南中医药大学管理科学与工程学科 2018.3 2 提纲 目录与文件的操作 mkdir touch mv cp rm rmdir file tree

More information

ebook70-5

ebook70-5 5 / 5.1 L i n u x L i n u x X L i n u x 5.1.1 touch t o u c h t o u c h G N U t o u c h # touch newfile # ls -l newfile - r w - r - - r - - 1 bball users 0 Jan 5 12 : 40 n e w f i l e t o u c h 0 # > newfile2

More information

Linux Ubuntu Part Linux Ubuntu Linux UNIX...19 Linux...19 Linux Linux...21 Linux GNU FSF Open So urce.

Linux Ubuntu Part Linux Ubuntu Linux UNIX...19 Linux...19 Linux Linux...21 Linux GNU FSF Open So urce. Linux Ubuntu 10.04 Part 1 17 1 Linux Ubuntu... 18 1-1 Linux... 19 UNIX...19 Linux...19 Linux...20...20 Linux...21 Linux...21 1-2 GNU FSF Open So urce...22 GNU...22 GPL...23...24 1-3 GNU/Linux V.S. Linux...25

More information

I B :

I B : I-2 055702B : 2006 5 1 2006 5 8 2006 5 10 1 1 Level 1 myls / $ ls -FC /foo dir1/ le1 dir2/ le2 $ myls /foo dir1/ dir2/ le1 le2 Level 2 (myupper) (mymv). % ls le1.txt le2.tex le3.dat % myuppper le1.txt

More information

Linux操作系统使用

Linux操作系统使用 Linux vi shell Linux Linux Linux 5 UNIX time-stamp UNICS Sep 1969... UNIX Time- Sharing System First Edition(V1) Nov 3, 1971 FreeBSD 5.1 Jun 9,2003 BSD/OS 5.0 (BSDI) May 2,2003... V6 May 1976 BSD 1977...

More information

第 4 章 Linux shell 程序设计 shell UNIX/Linux Linux shell shell if case while for shell Linux Linux 本章主要介绍 Linux shell( 默认是 bash) 的语法结构 变量定义及赋值引用 标点符号 控制语句等

第 4 章 Linux shell 程序设计 shell UNIX/Linux Linux shell shell if case while for shell Linux Linux 本章主要介绍 Linux shell( 默认是 bash) 的语法结构 变量定义及赋值引用 标点符号 控制语句等 第 4 章 Linux shell 程序设计 shell UNIX/Linux Linux shell shell if case while for shell Linux Linux 本章主要介绍 Linux shell( 默认是 bash) 的语法结构 变量定义及赋值引用 标点符号 控制语句等 本章的主要内容如下 : shell 的主要特点 类型 建立和执行方式 bash 变量的分类 定义形式及引用规则

More information

epub 73-5

epub 73-5 5 L i n u x I D User ID U I D I D Group ID G I D U I D G I D set -UID Windows NT L i n u x L i n u x U I D Wi n d o w s S I D Windows NT L i n u x N T A d m i n i s t r a t o r L i n u x L i n u x Access

More information

lect03.ppt

lect03.ppt Linux 操 作 系 统 Linux 基 础 主 要 内 容 q 使 用 Linux q Linux 的 两 种 登 录 方 式 q 字 符 操 作 环 境 和 X Windows 系 统 q Linux 图 形 界 面 基 本 操 作 q Linux 命 令 的 使 用 方 式 q Linux 一 些 常 用 命 令 1 2 一 些 基 本 术 语 u 命 令 (Command) 给 计 算 机

More information

像 客 样 使 命令行 徐 东

像 客 样 使 命令行 徐 东 像 客 样 使 命令行 徐 东 1 1.1................................ 1 1.2................................. 3 1.3............................. 4 1.3.1 Linux............................ 5 1.3.2 macos............................

More information

投影片 1

投影片 1 類 Linux 理 (, VBird) 2008/03/31 Linux 理 1 Linux 理 Linux (ILA) Linux 理 (ILB) Linux Linux (ILA) Linux 理 (ILB) Linux 路 (ILC) 2008/03/31 Linux 理 2 Linux 理 Linux 理 理 更 kernel boot loader LILO, grub 理 shell script

More information

ebook70-14

ebook70-14 Linux 1 4 1 5 1 6 1 7 1 8 1 9 S t a r O ff i c e 2 0 L i n u x 1 4 O p e n L i n u x O p e n L i n u x C D - R O M O p e n L i n u x C o r e l WordPerfect 8 for Linux S t a r D i v i s i o n S t a r O

More information

ebook70-11

ebook70-11 11 L i n u x p i n e M e s s e n g e r P P P I S 11.1 s e n d m a i l U N I X O p e n L i n u x U N I X O p e n L i n u x O p e n L i n u x s e n d m a i l O p e n L i n u x ( 11-1 ) 11-1 O p e n L i n

More information

ebook62-1

ebook62-1 1 Red Hat Linux R e d Hat Linux L i n u x X Wi n d o w Red Hat L i n u x 1.1 Red Hat Linux Red Hat 16 M 120 M 3. 5 Intel 386 C D - R O M C D - R O M We b / 1.1.1 L i n u x L i n u 4 Primary Partition Extended

More information

Microsoft Word - 第5章.doc

Microsoft Word - 第5章.doc 目 录 及 权 限 管 理 随 着 的 不 断 发 展, 越 来 越 多 的 人 开 始 使 用, 对 于 那 些 刚 接 触 的 人 来 说, 恐 怕 最 先 感 到 困 惑 的 就 是 那 些 不 明 不 白 的 目 录 了 同 样, 系 统 是 一 个 典 型 的 多 用 户 系 统 为 了 保 护 系 统 的 安 全 性, 系 统 对 不 同 用 户 访 问 同 一 文 件 或 目 录 的

More information

ebook65-20

ebook65-20 2 0 H T T P C G I We b C G I We b H T M L C G I H T M L C G I 20.1 HTTP 17 We b N e t s c a p e Internet Explorer We b A p a c h e I I S C G I H T T P HTTP 1.0 HTTP 1.1 I n t e r n e t I n t e r n e t

More information

292 shell shell C shell ~/.cshrc shell ~/.login ~/.logout ~/.history.cshrc shell shell /etc/passwd ~name NIS NIS+ * 0? [abc...] a-za-z0-9

292 shell shell C shell ~/.cshrc shell ~/.login ~/.logout ~/.history.cshrc shell shell /etc/passwd ~name NIS NIS+ * 0? [abc...] a-za-z0-9 C shell C shell C shell C shell C shell C shell Using csh & tcsh C shell 291 292 shell shell C shell ~/.cshrc shell ~/.login ~/.logout ~/.history.cshrc shell shell /etc/passwd ~name NIS NIS+ * 0? [abc...]

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション Perl CGI 1 Perl CGI 2 Perl CGI 3 Perl CGI 4 1. 2. 1. #!/usr/local/bin/perl 2. print "Content-type: text/html n n"; 3. print " n"; 4. print " n"; 3. 4.

More information

TX-NR3030_BAS_Cs_ indd

TX-NR3030_BAS_Cs_ indd TX-NR3030 http://www.onkyo.com/manual/txnr3030/adv/cs.html Cs 1 2 3 Speaker Cable 2 HDMI OUT HDMI IN HDMI OUT HDMI OUT HDMI OUT HDMI OUT 1 DIGITAL OPTICAL OUT AUDIO OUT TV 3 1 5 4 6 1 2 3 3 2 2 4 3 2 5

More information

Untitled

Untitled shell script shell bash if OS X BSD Linux tcsh zsh bash bash Unix bash OS X bash 0-1 Linux gnome KDE konsole bash Unix bash 0-1 OS X bash 2 Chapter 0 # # checkforcmdinpath / echo /bin/ echo) 1 ${var:0:1}

More information

05_資源分享-NFS及NIS.doc

05_資源分享-NFS及NIS.doc 5 NFS NFS Server NFS Client NIS NIS 5-0 (Network File System, NFS) Unix NFS mount NFS... Network Information Service NIS Linux NIS NIS NIS / / /etc/passwd /etc/group NFS NIS 5-1 NFS 5-1-1 NFS NFS Network

More information

f2.eps

f2.eps 前 言, 目 录 产 品 概 况 1 SICAM PAS SICAM 电 力 自 动 化 系 统 配 置 和 使 用 说 明 配 置 2 操 作 3 实 时 数 据 4 人 机 界 面 5 SINAUT LSA 转 换 器 6 状 态 与 控 制 信 息 A 版 本 号 : 08.03.05 附 录, 索 引 安 全 标 识 由 于 对 设 备 的 特 殊 操 作 往 往 需 要 一 些 特 殊 的

More information

Microsoft Word - 國文.doc

Microsoft Word - 國文.doc 公文 橫 13 格 直 22 格 橫線 是實線 字體不可壓在線上 直線 是虛線 字體壓在線上沒關係 字體大小略分為 3 種 最大 字佔滿格子 紅字 中等 一般大小 字的上下左右還有一些空間 藍字 最小 一格之內寫兩字 綠字 表示您寫的內容 也有某位老師說 字體根本不用分大小 那不是重點 但我個人覺得 呈現出來 版面會很奇怪 所 以不敢冒險聽他的 注意用字 保存 年 限保密 期 限 不要寫成保存期限或是保密年限

More information

WWW PHP

WWW PHP WWW PHP 2003 1 2 function function_name (parameter 1, parameter 2, parameter n ) statement list function_name sin, Sin, SIN parameter 1, parameter 2, parameter n 0 1 1 PHP HTML 3 function strcat ($left,

More information

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

Lorem ipsum dolor sit amet, consectetuer adipiscing elit English for Study in Australia 留 学 澳 洲 英 语 讲 座 Lesson 3: Make yourself at home 第 三 课 : 宾 至 如 归 L1 Male: 各 位 朋 友 好, 欢 迎 您 收 听 留 学 澳 洲 英 语 讲 座 节 目, 我 是 澳 大 利 亚 澳 洲 广 播 电 台 的 节 目 主 持 人 陈 昊 L1 Female: 各 位

More information

Microsoft PowerPoint - 第7章 Linux基本命令

Microsoft PowerPoint - 第7章  Linux基本命令 第 2 部 分 操 作 系 统 命 令 及 shell 编 程 第 7 章 Linux 基 本 命 令 7.1 Linux 的 登 录 和 退 出 7.2 文 件 命 令 7.3 目 录 和 层 次 命 令 7.4 查 找 命 令 7.5 目 录 和 文 件 安 全 性 7.6 磁 盘 存 储 命 令 7.7 进 程 命 令 7.8 联 机 帮 助 命 令 7.9 小 结 习 题 本 章 介 绍 Linux

More information

目 录 目 录 1. 安 装 和 快 速 入 门 附 件 1.1 随 机 附 件... 3 1.2 附 件 信 息... 3 连 接 和 设 定 1.3 连 接... 3 1.4 记 录 纸... 4 快 速 入 门 1.5 发 送 传 真 / 复 印... 5 1.6 接 收 传 真... 5 2

目 录 目 录 1. 安 装 和 快 速 入 门 附 件 1.1 随 机 附 件... 3 1.2 附 件 信 息... 3 连 接 和 设 定 1.3 连 接... 3 1.4 记 录 纸... 4 快 速 入 门 1.5 发 送 传 真 / 复 印... 5 1.6 接 收 传 真... 5 2 KX-FT832CN KX-FT836CN KX-FT836 感 谢 您 购 买 Panasonic 传 真 机 请 于 使 用 前 仔 细 阅 读 操 作 使 用 说 明 书, 并 妥 善 保 管 本 机 与 来 电 显 示 兼 容 您 必 须 向 服 务 供 应 商 / 电 话 公 司 申 请 并 取 得 相 应 的 服 务 目 录 目 录 1. 安 装 和 快 速 入 门 附 件 1.1 随

More information

mannal

mannal 高 性 能 集 群 计 算 机 使 用 说 明 书 版 本 1.0.8 高 性 能 计 算 研 究 组 编 2008 年 3 月 12 日 第 1 页 共 30 页 高 性 能 集 群 计 算 机... 1 使 用 说 明 书... 1 高 性 能 计 算 集 群 使 用 说 明... 3 1. 集 群 系 统 概 述... 3 2. 使 用 方 法... 5 1. 登 录 方 法... 5 2.MPI

More information

ebook

ebook 2 2 P D C S a m b a Windows NT P D C S a m b a ( 2. 0 ) Windows NT P D C ( S a m b a - n t d o m @ S a m b a. o rg ) U N I X P D C U N I X Samba PDC N I S i n t e l S p a r c S a m b a Windows NT PDC 21

More information

Linux 操作系统课程社区创作

Linux 操作系统课程社区创作 学 号 14284060xx 等 第 苏 州 大 学 实 验 报 告 Linux 操 作 系 统 课 程 社 区 创 作 院 ( 系 ) 名 称 : 电 子 信 息 学 院 专 业 名 称 : 14 通 信 工 程 ( 嵌 入 式 培 养 ) 学 生 姓 名 : 某 某 某 课 程 名 称 : Linux 操 作 系 统 2015-2016 学 年 第 一 学 期 1 摘 要 这 是 摘 要 主 要

More information

Abstract arm linux tool-chain root NET-Start! 2

Abstract arm linux tool-chain root NET-Start! 2 Lab III - Embedding Linux 1 Abstract arm linux tool-chain root NET-Start! 2 Part 1.4 Step1. tool-chain 4 Step2. PATH 4 Part 2 kernel 5 Step1. 5 Step2... 6 Step3...8 Part 3 root. 8 Step1. 8 Step2. 8 Part

More information

基本概念

基本概念 sed sed 's/^[ ]*//g' filename sed 's/^ *//g' filename sed 's/^[[:space:]]*//g' filename 1 sed 's/^[ ]*//g' filename sed 's/^ *//g' filename sed 's/^[[:space:]]*//g' filename 2 sed 's/pattern/&\n/g' filename

More information

untitled

untitled 2006 6 Geoframe Geoframe 4.0.3 Geoframe 1.2 1 Project Manager Project Management Create a new project Create a new project ( ) OK storage setting OK (Create charisma project extension) NO OK 2 Edit project

More information

untitled

untitled 錄 行 令 X Window 切 /etc/inittab, X Window GNOME 例, X Window, 滑, 行 令, X Window X Window 了 滑,, 行 / 令, 來 切 切 Linux (console) 了 7, 行 X Window, 來切, 切 Linux X Window,,, 滑, 不,,,, /etc/inittab, "id:5:initdefault:",

More information

epub 61-2

epub 61-2 2 Web Dreamweaver UltraDev Dreamweaver 3 We b We b We Dreamweaver UltraDev We b Dreamweaver UltraDev We b We b 2.1 Web We b We b D r e a m w e a v e r J a v a S c r i p t We b We b 2.1.1 Web We b C C +

More information

目 錄 壹 青 輔 會 結 案 附 件 貳 活 動 計 劃 書 參 執 行 內 容 一 教 學 內 容 二 與 當 地 教 師 教 學 交 流 三 服 務 執 行 進 度 肆 執 行 成 效 一 教 學 課 程 二 與 當 地 教 師 教 學 交 流 三 服 務 滿 意 度 調 查 伍 服 務 檢

目 錄 壹 青 輔 會 結 案 附 件 貳 活 動 計 劃 書 參 執 行 內 容 一 教 學 內 容 二 與 當 地 教 師 教 學 交 流 三 服 務 執 行 進 度 肆 執 行 成 效 一 教 學 課 程 二 與 當 地 教 師 教 學 交 流 三 服 務 滿 意 度 調 查 伍 服 務 檢 2 0 1 0 年 靜 宜 青 年 國 際 志 工 泰 北 服 務 成 果 報 告 指 導 單 位 : 行 政 院 青 年 輔 導 委 員 會 僑 務 委 員 會 主 辦 單 位 : 靜 宜 大 學 服 務 學 習 發 展 中 心 協 力 單 位 : 靜 宜 大 學 師 資 培 育 中 心 財 團 法 人 台 灣 明 愛 文 教 基 金 會 中 華 民 國 九 十 九 年 九 月 二 十 四 日 目

More information

Linux 目 录 结 构 与 Windows 将 硬 盘 看 做 C 盘 D 盘 几 个 独 立 的 分 区 不 同,Linux 将 整 个 文 件 系 统 看 做 一 棵 树, 这 棵 树 的 树 根 叫 做 根 目 录, 用 / 表 示 各 个 分 区 通 过 挂 载 (mount) 到 文

Linux 目 录 结 构 与 Windows 将 硬 盘 看 做 C 盘 D 盘 几 个 独 立 的 分 区 不 同,Linux 将 整 个 文 件 系 统 看 做 一 棵 树, 这 棵 树 的 树 根 叫 做 根 目 录, 用 / 表 示 各 个 分 区 通 过 挂 载 (mount) 到 文 Linux 文 件 和 目 录 管 理 创 达 IT 实 战 技 能 培 训 机 构 目 录 Linux 目 录 结 构... 1 根 目 录 结 构... 1 相 对 路 径 和 绝 对 路 径... 2 Linux 环 境 变 量... 2 环 境 变 量 的 分 类... 2 设 置 一 个 新 的 环 境 变 量... 3 查 看 环 境 变 量... 3 常 见 的 环 境 变 量...

More information

PowerPoint Presentation

PowerPoint Presentation TOEFL Practice Online User Guide Revised September 2009 In This Guide General Tips for Using TOEFL Practice Online Directions for New Users Directions for Returning Users 2 General Tips To use TOEFL Practice

More information

Cygwin & vim

Cygwin & vim Cygwin & vim Yu Hsiang Zheng (Slighten) Outline Shell Cygwin vim 1/21 What is a computer 2/21 What is a computer 拿 地 球 來 做 比 喻 的 話 kernel: 地 心 shell: 地 殼 application: 房 子 各 種 建 築 物 shell = command interpreter

More information

untitled

untitled Unix Ka-Lok Ng () Department of Biological Sciences and Biotechnology() Taichung Healthcare and Management University (O) 04-23323456 x1856 3408 Teach the student how to use Linux system using TEXT mode

More information

Solaris ( ) Solaris Shell awk gawk vi emacs OK mode 1

Solaris ( ) Solaris Shell awk gawk vi emacs OK mode 1 Solaris Shell awk gawk vi emacs OK mode 1 tty: return user's terminal name, ex: tty. echo: echo arguments, ex: echo "$USER's current directory is $PWD\c". who: who is on the system, ex: who. whoami: display

More information

Shell

Shell Shell & shell script USING csh/tcsh FreeBSD 練 B 磊 callmelei Part 1 Shell ::Outline:: Shell 什 什 Shell shell shell Csh tcsh 不 C shell Shell 什??...NO??...YES -- getty --> login --> shell --> logout -- ^ ----------------------------------------------

More information

ebook4-附录C

ebook4-附录C C.1 MySQL S Q L C SQL M y S Q L S Q L M y S Q L S Q L 289 290 PHP3 291 292 PHP3 C.2 MySQL C - 1 ) M y S Q L ( 293 C-1 MySQL ( e x p r ) - e x p r e x p r e x p r 1 + e x p r 2 e x p r 1 - e x p r 2 e x

More information

ebook8-30

ebook8-30 3 0 C C C C C C++ C + + C++ GNU C/C++ GNU egcs UNIX shell s h e l l g a w k P e r l U N I X I / O UNIX shell awk P e r l U N I X C C C C C C U N I X 30.1 C C U N I X 70 C C U N I X U N I X U N I X C Dennis

More information

ebook 134-6

ebook 134-6 6 M U LT I L I N E M L I N E S P L I N E 6.1 A u t o C A D M L I N E M L E D I T M L S T Y L E 16 6.1.1 1. MLINE M L I N E 6-1 M L I N E 6-1 MLINE 2. M L I N E 6 235 6-2 A u t o C A D : mline 6-2 [ (J)/

More information

Guide to Install SATA Hard Disks

Guide to Install SATA Hard Disks SATA RAID 1. SATA. 2 1.1 SATA. 2 1.2 SATA 2 2. RAID (RAID 0 / RAID 1 / JBOD).. 4 2.1 RAID. 4 2.2 RAID 5 2.3 RAID 0 6 2.4 RAID 1.. 10 2.5 JBOD.. 16 3. Windows 2000 / Windows XP 20 1. SATA 1.1 SATA Serial

More information

2004 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A. Sun Sun Berkeley BSD UNIX X/Open Company, Ltd. / SunSun MicrosystemsSun

2004 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A. Sun Sun Berkeley BSD UNIX X/Open Company, Ltd. / SunSun MicrosystemsSun SAP livecache Sun Cluster Solaris OS SPARC Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. : 817 7374 10 2004 4 A 2004 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA

More information

epub 63-3

epub 63-3 3 Solaris S o l a r i s S o l a r i s 2 S o l a r i s s h e l l p a s s w d v i l s c a t p g m o r e r m 3.1 3.1.1 c p c p c o p y c p c p cp source-file destination-file s o u r c e - f i l e c p d e

More information

CCNA 3 Module 5 Switching Concepts

CCNA 3 Module 5  Switching Concepts 單 元 三 Linux 帳 號 與 群 組 管 理 1 Linux 的 帳 號 與 用 戶 組 Linux 屬 於 多 人 多 工 的 作 業 系 統, 可 讓 不 同 的 用 戶 從 本 地 端 登 入 在 網 路 上 則 允 許 使 用 者 利 用 telnet ssh 等 方 式 從 遠 端 登 入 無 論 是 從 本 機 或 由 遠 端 登 入, 使 用 者 都 必 須 在 該 台 主 機

More information

Microsoft Word - template.doc

Microsoft Word - template.doc HGC efax Service User Guide I. Getting Started Page 1 II. Fax Forward Page 2 4 III. Web Viewing Page 5 7 IV. General Management Page 8 12 V. Help Desk Page 13 VI. Logout Page 13 Page 0 I. Getting Started

More information

《计算机导论》实验教学大纲

《计算机导论》实验教学大纲 计 算 机 科 学 与 技 术 专 业 实 验 教 学 大 纲 福 建 师 范 大 学 数 学 与 计 算 机 科 学 学 院 2012 年 6 月 目 录 1. 计 算 机 导 论 教 学 大 纲... 3 2. 高 级 语 言 程 序 设 计 教 学 大 纲...5 3. 数 据 结 构 教 学 大 纲... 8 4. 算 法 设 计 与 分 析 ( 计 本 ) 教 学 大 纲...10 5.

More information

四川省普通高等学校

四川省普通高等学校 四 川 省 普 通 高 等 学 校 计 算 机 应 用 知 识 和 能 力 等 级 考 试 考 试 大 纲 (2013 年 试 行 版 ) 四 川 省 教 育 厅 计 算 机 等 级 考 试 中 心 2013 年 1 月 目 录 一 级 考 试 大 纲 1 二 级 考 试 大 纲 6 程 序 设 计 公 共 基 础 知 识 6 BASIC 语 言 程 序 设 计 (Visual Basic) 9

More information

WinMDI 28

WinMDI 28 WinMDI WinMDI 2 Region Gate Marker Quadrant Excel FACScan IBM-PC MO WinMDI WinMDI IBM-PC Dr. Joseph Trotter the Scripps Research Institute WinMDI HP PC WinMDI WinMDI PC MS WORD, PowerPoint, Excel, LOTUS

More information

ebook71-6

ebook71-6 6 X C a l d e r a X 6. 2. 1 C a l d e r a 6. 2. 2 C a l d e r a 6. 2. 3 C a l d e r a 6. 2. 4 C a l d e r a 6. 2. 5 C a l d e r a 6. 2. 6 C a l d e r a X 6. 2. 7 Red Hat X 6. 2. 8 Red Hat 6. 2. 9 Red Hat

More information

Windows XP

Windows XP Windows XP What is Windows XP Windows is an Operating System An Operating System is the program that controls the hardware of your computer, and gives you an interface that allows you and other programs

More information

Web

Web Email: tian@dr.com http://www.digiark.com/tian Web 1. 2. 3. 4. 5. 6. Internet Internet (Hacker) Internet web IP 1 Internet UNIX Windows VLAN Internet IP 2 Internet FTP TELNET PING IP 8 telnet FTP RLOGIN

More information

ebook140-8

ebook140-8 8 Microsoft VPN Windows NT 4 V P N Windows 98 Client 7 Vintage Air V P N 7 Wi n d o w s NT V P N 7 VPN ( ) 7 Novell NetWare VPN 8.1 PPTP NT4 VPN Q 154091 M i c r o s o f t Windows NT RAS [ ] Windows NT4

More information

2005 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A. Sun Sun Berkeley BSD UNIX X/Open Company, Ltd. / Sun Sun Microsystems Su

2005 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A. Sun Sun Berkeley BSD UNIX X/Open Company, Ltd. / Sun Sun Microsystems Su Java Desktop System Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. : 819 0675 10 2005 2 2005 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. Sun Sun Berkeley

More information

ORACLE Enterprise Linux 6.3下ORACLE11g的安装

ORACLE Enterprise Linux 6.3下ORACLE11g的安装 ORACLE Enterprise Linux 6.3 环 境 下 ORACLE11g 的 安 装 文 档 1 安 装 前 的 参 数 配 置 Auther:chenzhuzuo@163.com 以 下 操 作 需 要 一 root 用 户 的 身 份 进 行 操 作 1.1 在 文 件 /etc/sysctl.conf 中 添 加 如 下 内 容 fs.le-max = 6815744 fs.aio-max-nr

More information

電子商業伺服器管理(終極版).doc

電子商業伺服器管理(終極版).doc 2 3 4 5 Chinese Linux Documentation Project / 6 7 8 9 10 #!/bin/sh # # named This shell script takes care of starting and stopping # named (BIND DNS server). # # Source function library.. /etc/rc.d/init.d/functions

More information

KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone,

KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone, KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone, respectively, and has been certified by the developer

More information

.. 3 N

.. 3 N 1 .. 3 N9.. 4 5.. 6 7.. 8 20.. 21 23.. 24.. 25 26.. 27.. 28.. 29 2 (Cyber Café) Linux (LAN) Linux Public Home 3 K12LTSP K12LTSPFedora Core 4 (Linux)LTSP Linux (command line interface) (Graphical User Interface,

More information

C/C++程序设计 - 字符串与格式化输入/输出

C/C++程序设计 - 字符串与格式化输入/输出 C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int

More information

资源管理软件TORQUE与作业调度软件Maui的安装、设置及使用

资源管理软件TORQUE与作业调度软件Maui的安装、设置及使用 TORQUE Maui hmli@ustc.edu.cn 2008 1 1 TORQUE 2 1.1 TORQUE........................... 2 1.2 TORQUE...................... 2 1.3 TORQUE.......................... 4 1.4 TORQUE........................... 4

More information

例 度 讀 讀 不 不 來 念 來 了 讀 不 不 讀 不 讀行 利 了 說 更 了 讀

例 度 讀 讀 不 不 來 念 來 了 讀 不 不 讀 不 讀行 利 了 說 更 了 讀 讀 爛 來 都 力 讀 不 讀 了 讀 來 讀 了 更 不 都 六年 類 更 錄 不 都 便 路 不 不 了 讀 來不 讀 讀 刺 數 不 刺 讀 索 料 易 力 練 讀 易 料 了 讀 力 讀便不 讀 例 度 讀 讀 不 不 來 念 來 了 讀 不 不 讀 不 讀行 利 了 說 更 了 讀 年 來 句 易 說 說 易 說 讀 識 識 力 句 老 錄 朗讀 讀 了 易 臨 說讀 力 識 樂 參 練

More information

陕西省粮食流通

陕西省粮食流通 陕 西 省 粮 食 流 通 十 二 五 发 展 规 划 陕 西 省 粮 食 局 二 一 年 九 月 1 目 录 一 发 展 基 础... 1 ( 一 ) 十 一 五 发 展 成 就...1 ( 二 ) 存 在 问 题...6 ( 三 ) 发 展 形 势...7 二 发 展 思 路... 9 ( 一 ) 指 导 思 想...9 ( 二 ) 基 本 原 则...9 ( 三 ) 发 展 目 标...10

More information

Untitiled

Untitiled 目 立人1 2011 录 目 录 专家视点 权利与责任 班主任批评权的有效运用 齐学红 3 德育园地 立 沿着鲁迅爷爷的足迹 主题队活动案例 郑海娟 4 播下一颗美丽的种子 沿着鲁迅爷爷的足迹 中队活动反思 郑海娟 5 赠人玫瑰 手有余香 关于培养小学生服务意识的一些尝试和思考 孙 勤 6 人 教海纵横 2011 年第 1 期 总第 9 期 主办单位 绍兴市鲁迅小学教育集团 顾 问 编委会主任 编

More information

起 初, 距 離 出 版 日 期 還 有 大 半 年, 大 家 雀 躍 萬 分 之 餘 還 滿 盤 大 計, 他 答 應 做 這 樣 她 應 承 安 排 那 樣 你 負 責 做 三 件 事 我 就 辦 兩 件 大 家 都 是 成 年 而 又 自 律 的 人, 一 切 猶 如 入 了 自 動 波, 不

起 初, 距 離 出 版 日 期 還 有 大 半 年, 大 家 雀 躍 萬 分 之 餘 還 滿 盤 大 計, 他 答 應 做 這 樣 她 應 承 安 排 那 樣 你 負 責 做 三 件 事 我 就 辦 兩 件 大 家 都 是 成 年 而 又 自 律 的 人, 一 切 猶 如 入 了 自 動 波, 不 荃 情 第 16 期 2011 年 12 月 31 日 出 版 荃 灣 官 立 工 業 中 學 校 友 會 專 刊 歡 迎 會 員 投 稿 稿 件 請 寄 本 編 輯 部 編 輯 部 地 址 : 香 港 上 環 德 輔 道 中 2 4 4-2 5 2 號 東 協 商 業 大 廈 5 樓 電 話 : 2 3 1 4 5 8 1 1 傳 真 : 2 7 3 9 3 7 2 0 e m a i l : i

More information

<4D6963726F736F667420576F7264202D20A5FAA9FAAABAB4BCBC7AA15DA440A15EB773A5C1AF5AA1C4B871B8D1A15DB16DA6E2A15E2E646F63>

<4D6963726F736F667420576F7264202D20A5FAA9FAAABAB4BCBC7AA15DA440A15EB773A5C1AF5AA1C4B871B8D1A15DB16DA6E2A15E2E646F63> 光 明 的 智 慧 ( 一 ) 一 前 言 智 慧 與 聰 明 的 差 異 1. 聰 明 ( 知 識 ): 向 外 學 習 不 斷 累 積 日 新 月 異, 故 老 子 云 : 為 學 日 益 2. 智 慧 ( 性 德 ): 本 來 具 足 不 假 外 求 恆 常 不 變 與 我 們 的 身 份 學 歷 貧 富 能 力 無 關 智 慧 來 自 生 命 的 覺 醒, 由 內 在 的 清 淨 心 所 產

More information

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2 Terminal Mode No User User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2 Mon1 Cam-- Mon- Cam-- Prohibited M04 Mon1 Cam03 Mon1 Cam03

More information

C/C++ - 函数

C/C++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

2_dvdr3380_97_CT_21221b.indd

2_dvdr3380_97_CT_21221b.indd 64 65 66 ALL 3 67 a STANDBY-ON 2 a b c d e f g h i j k l b TIMER c SYSTEM-MENU d e SELECT f REC g. > h TOP MENU i ANGLE j RETURN k SUBTITLE l REC MODE 68 m n REC SOURCE o DISC-MENU p OK q EDIT r PLAYÉ

More information

WWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2

WWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2 WWW PHP 2003 1 Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2 Comments PHP Shell Style: # C++ Style: // C Style: /* */ $value = $p * exp($r * $t); # $value

More information

pdf

pdf CENTRO 花 甲 老 人 的 for 交 the over 60s 通 travel 证 passes for the over 60s travel passes for the over 60s travel 谢 谢 发 给 我 这 个 交 通 证, travel passes for the over 60s 我 travel 今 passes 年 for 66 the over 岁 60s

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

区 域 活 动 进 入 中 班 我 们 区 域 的 设 置 和 活 动 材 料 都 有 所 变 化, 同 时 也 吸 引 孩 子 们 积 极 的 参 与 学 习 操 作 区 的 新 材 料 他 们 最 喜 欢, 孩 子 们 用 立 方 块 进 行 推 理 操 作 用 扑 克 牌 进 行 接 龙 游

区 域 活 动 进 入 中 班 我 们 区 域 的 设 置 和 活 动 材 料 都 有 所 变 化, 同 时 也 吸 引 孩 子 们 积 极 的 参 与 学 习 操 作 区 的 新 材 料 他 们 最 喜 欢, 孩 子 们 用 立 方 块 进 行 推 理 操 作 用 扑 克 牌 进 行 接 龙 游 日 常 生 活 本 月 我 们 日 常 生 活 活 动 的 重 点 :1. 让 孩 子 养 成 良 好 的 生 活 习 惯, 注 重 生 活 细 节 如 : 在 换 好 鞋 子 后 能 将 鞋 子 整 齐 的 摆 放 进 鞋 架 坐 在 椅 子 上 换 鞋 正 确 的 收 放 椅 子 等 2 让 孩 子 有 自 我 照 顾 的 意 识 如, 让 孩 子 感 受 自 己 的 冷 热 并 告 知 老 师,

More information

Microsoft Word - CP details 2.doc

Microsoft Word - CP details 2.doc 給 諾 大 諾 20/6/201 /2012 腦 性 麻 痺 家 長 的 信 筆 者 話 : 時 堂 如 間 玩 果 你, 我 諾 是 唔 諾 係 大 一 用 腦 定 了 個 性 說 自 麻 大 得 己 痺 腦 對 的 性 家, 生 麻 長 命 自 痺 的 來 己 話 家 報 長, judge, 你 答, 一 了 永 定 我 遠 只 認 倆 都 可 為 係 作, 這, 免 為 封 唯 得 一 信 一

More information

Bus Hound 5

Bus Hound 5 Bus Hound 5.0 ( 1.0) 21IC 2007 7 BusHound perisoft PC hound Bus Hound 6.0 5.0 5.0 Bus Hound, IDE SCSI USB 1394 DVD Windows9X,WindowsMe,NT4.0,2000,2003,XP XP IRP Html ZIP SCSI sense USB Bus Hound 1 Bus

More information

要 站 立 得 稳, 我 在 十 字 架 上 已 经 都 抢 夺 过 来 了, 将 魔 鬼 不 让 你 们 来 享 用 的 都 推 开 了, 这 是 让 我 们 来 得 到 的 话 语 我 们 再 也 不 被 奴 仆 的 轭 辖 制, 要 来 拥 有 才 可 以 明 知 道 却 不 去 抢 夺 过

要 站 立 得 稳, 我 在 十 字 架 上 已 经 都 抢 夺 过 来 了, 将 魔 鬼 不 让 你 们 来 享 用 的 都 推 开 了, 这 是 让 我 们 来 得 到 的 话 语 我 们 再 也 不 被 奴 仆 的 轭 辖 制, 要 来 拥 有 才 可 以 明 知 道 却 不 去 抢 夺 过 日 分 期 :2014 年 1 月 5 日 类 : 圣 餐 主 日 讲 道 证 道 人 : 赵 镛 基 牧 师 题 目 : 什 么 样 的 人 能 够 享 受 到 福 分 本 文 话 语 : 约 书 亚 记 1:11 < 本 文 > 你 们 要 走 遍 营 中, 吩 咐 百 姓 说, 当 预 备 食 物 因 为 三 日 之 内 你 们 要 过 这 约 旦 河, 进 去 得 耶 和 华 你 们 神 赐

More information

第5章修改稿

第5章修改稿 (Programming Language), ok,, if then else,(), ()() 5.0 5.0.0, (Variable Declaration) var x : T x, T, x,,,, var x : T P = x, x' : T P P, () var x:t P,,, yz, var x : int x:=2. y := x+z = x, x' : int x' =2

More information

ebook45-5

ebook45-5 5 S Q L SQL Server 5.1 5-1 SQL Server 5-1 A B S A C O S A S I N ATA N AT N 2 C E I L I N G C O S C O T D E G R E E S E X P F L O O R L O G L O G 10 P I P O W E R R A D I A N S R A N D R O U N D S I G N

More information

ebook71-8

ebook71-8 8 8. 2. 1 8. 2. 2 l i n u x c o n f 8. 2. 3 8. 2. 4 8. 2. 5 8. 2. 6 8. 2. 7 l i n u x c o n f 8. 2. 8 s h a d o w 8. 2. 9 s h a d o w 8. 2. 10 s h a d o w 8. 2. 11 8. 2. 1 2 8. 2. 1 3 8. 2. 1 4 l i n u

More information

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Ác Åé å Serial ATA ( Silicon Image SiI3114) S A T A (1) SATA (2)

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

C/C++ - 文件IO

C/C++ - 文件IO C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;

More information

-------------------------------------------------------------------------------- Pekinger in NewYork -------------------------------------------------------------------------------- 1011 121314 151617

More information

CLP-585/575/545/535/565GP

CLP-585/575/545/535/565GP 使 用 说 明 书 CLP- 585 CLP- 575 CLP- 545 CLP-535 CLP-565GP 重 要 检 查 电 源 (CLP-585/575) 确 保 您 所 在 地 的 交 流 电 源 电 压 与 位 于 底 部 面 板 的 铭 牌 上 指 定 的 电 压 匹 配 在 某 些 地 区, 可 能 在 电 源 线 附 近 的 主 键 盘 装 置 的 底 部 面 板 上 提 供 电 压

More information