Home

bash

image

Contents

1. logs in and runs app uh oh its stuck 50 CIS 90 Lesson 11 Signals Benji runs app ge simmsbeni amp opus PEFFE f f f Zi Xs f Benji tries using the keyboard to send SIGINT using Ctrl C but nothing happens because app is ignoring SIGINT 51 CIS 90 Lesson 11 Signals Benji runs app simmsben opus HART FEE FETT f f f TT Eri fif f Benji tries using the keyboard to send a SIGQUIT using Ctrl put app reacts by saying quit it 52 CIS 90 Lesson 11 Signals Benji runs app EP roddyduk opus J fhome cis90 roddyduk 5 ps u simmsben TIME CMD 6657 00 00 00 sshd 6658 pts 1 00 00 00 bash 1033 00 00 00 sshd 7034 pts 2 00 00 00 bash 7065 pts 2 00 00 00 app 7579 pts 2 00 00 00 sleep home cis90 roddyduk 5 kill 7065 bash kill 7065 Operation not permitted home cis90 roddyduk 5 B Benji asks his friend Duke to kill off his stalled app process Duke uses ps to look it up but does not have permission to kill it off CIS 90 Lesson 11 Signals Benji runs app FEFFE gg simmsben opus _ was FRA
2. f od iif f f HHH i F f PPR x E simmsben opus home cis90 simmsben 5 ps u simmsben PID TTY TIME CMD 6657 7 00 00 00 sshd 6658 pts 1 00 00 00 bash 1033 77 00 00 00 sshd 7034 pts 2 00 00 00 bash 7065 pts 2 00 00 00 app 7843 pts 2 00 00 00 sleep 7844 pts 1 00 00 00 ps home cis90 simmsben 5 kill 2 7065 home cis90 simmsben 5 Benji logs into another Putty session and sends a SIGINT using the kill command but 24 nothing happens CIS 90 Lesson 11 Signals Benji runs app EP simmsben opus a riff ff T TT TTE T SDN CP OI 5 kill 3 7065 home cis90 simmsben 5 Benji ups the ante and sends two SIGQUITs but the app process shrugs them off with two quit it messages CIS 90 Lesson 11 Signals runs app simmsben opus FETE H iid i Xii t FAT MNT quit it quit it quit it ee cleanup home cis90 simmsben 5 home cis90 simmsben 5 kill 3 7065 home cis90 simmsben kill 15 7065 home cis90 simmsben 5 Benji decides to send a SIGTERM this ti
3. Tips and tricks for VIM users 76 CIS 90 Lesson 11 esr The Mug of ES The ef Vi Mozilla Firefox mmm d y File Edit History Bookmarks Tools Help k C 4 KE View http nostarch com mug htm 1 wu amp RE Disable Cookies 55 2 Forms Images 02 Information CI Miscellaneous Outline s Resize Tools i View Source d Options A ww x Cw 0 unread Yahoo Mail richsimms x W The Mug of Vi STARCH PRESS the finest in geek entertainment Home Where to buy About Jo The Mug of Vi 12 ounces heavy duty X Media ee Sams Publishing Contact Us Blog Cart Custom Search Cabrillo College Home Page Hydratio NO STARCH PRESS harmony O vi filename s vi r filename ZZ WQq X q q iW tw fn e filename ur filename sh lemd SEARCH AND txt txt txt Copyright Done IA AO AHL http nostarch com mug htm the finest in geek entertainment FILE COMMANDS Home Catalog gt to buy Where X W 0 unread Yahoo Mail richsimms Big Mug Label x About Jobs Click on the image to return to Mug of Vi main page edit a file or files idw dd x retrieve saved file after crash 44 zx save and exit X quit qui
4. B Creating your own personal aspell dictionary Samat Jain s personal home page Mozilla Firefox File Edit View History Bookmarks Tools Help mar X A 6 http samat org weblog 20081102 creating your own personal aspell dictionary html 92 gt Yahoo Disable Cookies CSS E Forms M Images Information Miscellaneous s Outline Resizer Tools View Source d Options Samat Jain s personal home page Home Creating your own personal aspell dictionary Who am November 2 2008 5 23pm Samat Jain Samat is Something that has bothered me forever is that applications that use GNU aspell for spell checking kept marking volare ot 3 my name as a misspelling I m looking at you KMail Most front end applications don t provide a way for you to q web services add your own custom words company based M How to add words to your dictionary in his hometown Rhombic Networks LLC where he Apparently creating your own personal dictionary is ridiculous easy with aspell If your language is English create a file in your home directory called aspell en pws currently serves as CTO system administrator and personal ws 1 1 en 0 programmer Samat quasirhombicosidodecahedron pic leave comment your The first line is a required header Every subsequent line is a wo
5. ge rsimms opus home cis90 depot It bin sh app script to demostrate use of signals Usage run app with no options or parameters Send signals to it with keystrokes or kill command Notes stty echo stop the display of characters typed stty echo makes typed characters visible again stty susp 4 sets suspend keystroke to Ctlr 4 to stop forground processes stty susp sets suspend character to to stop foreground processes He e de db Se dE db dE dE 2 Ignore SIGINT echo n quit it 3 Handle SIGQUIT stty echo susp Zz echo ee echo cleanup exit 15 Handle SIGTERM banner testing stty echo susp This is why Cntl F suspend stopped working and we had to use Ctrl Z Ere Review of kill command usage CIS 90 Lesson 11 Jim s app script rsimms opus home cis90 depot uer bin sh script to demostrate use o signals f run with options or parameters Send signals to it with keystrokes or 111 command Notes stty echo stop the display of characters typed stty echo makes typed characters visible again stty susp sets suspend keystroke to Ctlr z to stop forground processes stty susp sets suspend character to to stop foreground processes Signal 2 s 2 Ignore SIGINT trap echo n quit it 3 Handle SIGQUIT Ignored trap stty echo susp Z echo ee echo cleanup exit 15
6. nappy town E gt TONIGHT 1019 Search iis wik Welcome to the Vim Tips wiki This wiki is about the editor Vim We aim to exchange tips and tricks with other Vim users Please help by improving or adding comments to any tip If you are new to Vim we have plenty of tips that will help you get Top content Home Community portal To do Folding category We are currently editing over 1 592 articles Searching catego est m About this wiki Create new article New tips Upload new image Policies and how to edit Recent changes Random page Discussions and asking questions Help Wer pages Create a new tip Vi IRC Latest activity U U Information 1 592 articles this wiki Featured tip for April view archive Vim documentation Links to guides books 4 Foldin g tutorials and information on other sites 5 hours ago by JohnBeckett We all know what a tab page is each tab holds a different file m Vim scripts Recent changes and 4f Right click in Windows Actually Vim tabs are nof like that Instead tab pages in Vim offer descriptions of featured scripts Explorer to open gvim in much more flexibility and provide many features that are unavailable a Vim news News from this wiki and vim org explorer mode with standard editors How to report spam hours bv JohnAeckett ES P EM eee De en Ne bees
7. Handle SIGTERM clear banner testing stty echo susp sleep i echo one sleep i echo two sleep i echo n thr while do sleep 1 done Thr CIS 90 Lesson 11 Jim s app script imms opus home cs00 depot uc m bin sh script to demostrate use o signals Usage run app with no options or parameters Send signals to it with keystrokes or kill command Notes stty echo stop the display of characters typed stty echo makes typed characters visible again stty susp sets suspend keystroke to Ctlr z to stop forground processes stty susp sets suspend character to to stop foreground processes che che He He He He e Signal 3 5 Cntrl print echo n quit it 3 Handle SIGQUIT Stty echo sus A echo ee echo cleanup exit 15 Handle SIGTERM message B banner testing stty echo susp sleep i echo one sleep i echo two sleep i echo n thr while do sleep 1 done Thr Signal 15 s close gracefully EA qe rsimms opus home cis90 depot Jt che che He He He e CI S 90 Lesson 11 Jim s app script e aum bin sh f app script to demostrate use of signals run with options or parameters Send signals to it with keystrokes or 111 command Notes stty echo stop the display of characters typed stty echo makes typed characters visible again stty susp
8. Processes CIS 90 Lesson 11 Program to process home cis90 roddyduk 5 stdout ions Opt NA ao X A process is a program that has been loaded into memory and is either running executing stderr instructions or waiting to run 14 CIS 90 Lesson 11 1111 process reads from stdin writes to stdout puts error messages in stderr and may get interrupted from time to time by a signal A process is a program that has been loaded into memory and is either running executing instructions or waiting to run gt ia Lesson 10 Example program to process sort command oe eas SO dev pts 0 benji stdout star homer lop duke gt homer ao x Star duke home cis90 roddyduk 5 homer star command like sort is a program when it is stored on the drive Is a process when it is dev pts 0 ee duke copied to memory by benji the kernel and either stderr star running or waiting to homer run a CIS 90 Lesson 9 example program to process 5 ls 1 bin p gws gt dev null stdout Note gets its input from the command line and the OS kernel and Options ao Se writes to stdout Args bin pgawk 8 dev null m LI bin pwd redirected to m J TR TR rwxr xr x 1 root root 22980 Nov 30 2007 bin pw
9. n Finds the next occurrence of the current search string looking down the file N Finds the next occurrence of the current search string looking up the file Changes the case of the current character 73 VI Now practice these commands Note to execute any of the following commands from vi you must be in command mode Press the Esc key to enter command mode g Tells you the filename you are editing and what line your cursor is on u Undoes the last command you executed Repeats the last command you executed string Searches for the string of characters in the file n Finds the next occurrence of the current search string looking down the file N Finds the next occurrence of the current search string looking up the file Changes the case of the current character Making script In your bin directory create file called color and the following lines echo read echo read echo n What is your name NAME n What is your favorite color COLOR Hi 5 your favorite color is COLOR Save the file and give it execute permissions with chmod x color Now run your script by typing its name g Google x Rich s 1 7 Bunrea UJ lt Q w nttp vimwikia com wiki Main Page a re RS 3 a wikia Create a new wiki Login 8 TECHNOLOGY _ 2 gt gt 12 article Article Discussion Redirected from Main
10. 5 atq 20 28 27 20 2 4 O 90 02 12 shll 14 22 LZ 16 12 09 00 10 OO 14 a a a a a CIS 90 Lesson 11 x 1 1 1 Load Balancing roddyduk roddyduk roddyduk roddyduk roddyduk home cis90 roddyduk atrm 24 home cis90 roddyduk atq 28 27 26 home cis90 roddyduk ZOO LL qeu 2006 12 XO 2008 11 19 22210 AUDE Jig a a a roddyduk roddyduk roddyduk roddyduk The jobs command lists processes running or suspended in the background The atq command lists jobs queued to run in the futures that were scheduled by at command The atrm command is used to remove jobs from the queue 62 CIS 90 Lesson 11 63 vl practice Bring up the vi reference page at http simms teach com docs vi ref html Create a directory called practice mkdir practice Copy in sample text files cp rsimms cis90 depot practice CIS 90 Lesson 1t A VI Moving around in a file Note to execute any of the following commands from vi you must be in command mode Press the Esc key to enter command mode h moves the cursor one character to the left j moves the cursor down one line k moves the cursor up one line moves the cursor one character to the right w moves the cursor one word forward b moves the cursor one word back O zero moves the cursor to the beginning of the line moves the cursor to the en
11. ALPHABET CAL ORDER Slow or stop Left Right turn Ag gr Fras SHARE JAMES BROWN amp SON GLASGOW CIS 90 Lesson 11 EEL Signals D Signals are asynchronous messages sent to processes They can result in one of three courses of action 1 be ignored 2 default action die 3 execute some predefined function How are signals sent 26 CIS 90 Lesson 11 Hi Signals D Signals are asynchronous messages sent to processes They can result in one of three courses of action 1 be ignored 2 default action die 3 execute some predefined function Signals are sent Using the kill command 5 kill PID Where is the signal number and PID is the process id if no number is specified SIGTERM is sent Using special keystrokes limited to just a few signals limited to when you have control of the keyboard Use kill to see all signals CIS 90 Lesson 11 The result of Running sending a process signal to a s san process wm be ignored e default action die e execute some predefined function BTW is signal 18 really a signal est 1959 Tangent on og SIGCONT What is signal 18 Running process gets a signal SIGSTKFLT 16 SIGCHLD 17 CIS 90 lesson i 1 1 116 Signals Stack fault Child process has stopped or exited changed POSIX SIGSTOP 19 SIGTSTP 20 SIGTTIN 21 SIGTTOU 22 SIGUR
12. saved your changes exits vi even if you have not saved your changes W Saves any changes you ve made to the file you are editing w filename saves your file to a new name like Save As w filename saves your file to a new name overwriting any previous data r filename reads the contents of filename starting from the cursor position filename replaces the current content with the content from filename 67 i ie 1 b L ki I P Er I rs Ju Le b 1 k 6 b FA 1 a A VI Now practice these commands Note to execute any of the following commands from vi you must be in command mode Press the Esc key to enter command mode q exits vi if you have saved your changes exits vi even if you have not saved your changes W Saves any changes you ve made to the file you are editing w filename saves your file to a new name like Save As filename saves your file to new name overwriting any previous data r filename reads in the contents of filename starting from the cursor position e filename replaces the current content with the content from filename CIS 90 Lesson 11 VI Entering Input mode i Ready to insert characters immediately before the current cursor position a Ready to append characters immediately after the current cursor position I Ready to insert characters at the start of the current
13. sets suspend keystroke to Ctlr z to stop forground processes stty susp sets suspend character to to stop foreground processes Ignore SIGINT echo n quit it 3 Handle SIGOQUIT ct H Ti trap crap stty echo susp Zz echo ee echo cleanup exit 15 1 SIGTERM clear banner testing stty echo susp sleep i echo one sleep i echo two sleep i echo n thr while do sleep 1 done Thr CIS 90 Lesson 11 Jim s app script qe rsimms opus home cis90 depat bin sh script to demostrate use of siqnals run app with options or parameters Send signals to it with keystrokes or 111 command Notes stty echo stop the display characters typed stty echo makes typed characters visible again stty susp sets suspend keystroke to Ctlr z to stop forground processes stty susp sets suspend character to to stop foreground processes 2 4 Ignore SIGINT echo n quit it 3 Handle SIGQUIT stty echo susp Zz echo ee echo cleanup exit 15 1 SIGTERM banner testing stty echo susp sleep i echo one sleep i echo two sleep i echo n thr Endless loop do sleep 1 done CIS 90 Lesson 11 Signals Benji runs app ge simimsben opus FETE 4 iid tid
14. trying to list or on the UNIX file traverse directories you don t tree have read and execute permission Use Opus to verify your answer 98 CIS 90 Lesson 11 lt 4 1 Test 2 028 answer 28 Given the file problems contains 2 2 5 0 What complete command using bc would input the math problems in problems append the calculated answers to the file answers and write any errors to the errors stdin redirected stderr redirected from keyboard to from terminal to file problems file errors V m bc lt problems gt gt answers 2 gt errors stdout redirected from terminal to append to gt file answers problems 5 CIS 90 Lesson 11 Test 2 Q28 verification 28 Given the file problems contains 2 2 5 0 What complete command using bc would input the math problems in problems append the calculated answers to the file answers and write any errors to the file errors home cis90 roddyduk S echo 2 2 gt problems home cis90 roddyduk echo 5 0 gt gt problems home cis90 roddyduk bc problems answers 2 errors home cis90 roddyduk cat answers errors 4 Runtime error func main adr 5 Divide by zero home cis90 roddyduk 5 To verify your answer on Opus create the problems file the test your answer 100 CIS 90 Lesson 11 Test 2 Q19 answer 19 Given this directory structure Spot Sidney Scout Sally If your current working dir
15. 00 bash S roddyduk 11608 11584 0 75 1166 wait 09 36 pts 6 00 00 00 bash roddyduk 11796 11608 75 0 926 finish 09 49 pts 6 00 00 00 sleep 60 0 T roddyduk 11798 11608 0 75 926 Finish 09749 pts 6 00 00 00 sleep 90 0 R roddyduk 11803 12606 0 77 1062 09 49 peso 00500200 po LI roddyduk opus 15 jobs Il Stopped sleep 60 2 Stopped sleep 90 roddydukGopus 15 bg 2 sleep 90 amp roddyduk opus 15 jobs 1 Stopped sleep 00 2 Running sleep 90 amp roddyduk opus 18 kill 18 11796 roddyduk opus 15 jobs 1 Done sleep 60 2 Running sleep 90 amp 94 CIS 90 Lesson 11 home cis90 roddyduk Sleep 60 Ctrl F typed here 11 Stopped home cis90 roddyduk 5 ps lI 5 JLD PLD PPID PRI O S 000 10705 19704 0 22 O T 1000 10757 10705 84 OR 01000 10759 10703 0 77 home cis90 roddyduk 5 kill 18 10737 home cis90 roddyduk ps lI F UID PID PPID C PRI 225 1000 10795 10704 0 796 OS 1000 10737 10705 0 78 1000 10741 10705 0 78 home cis90 roddyduk 5 jobs 1 Done sleep 60 NI ADDR SZ WCHAN 1165 wait pts 0 F 927 finish pts 0 4020 pts 0 NI ADDR SZ WCHAN TTY 1165 wait pts 0 D 927 322800 pts 0 sleep 60 00 QU O03 00 OU O0 TIME 00 00 00 00 00200 TIME 00s 0 0 00 00 00200 CMD bash sleep ps CMD bash sleep ps Instead of using bg to resume a stopped process in
16. 2d2b 6L 141 The message is loaded into vi where changes or additions can be made wq is used to save and quit vi 80 CIS 90 Lesson 11 bin mall and v home cis90 simmsben S mail roddyduk Subject Good bones Hey Duke I really appreciate thatbone you sent me last week Let me knwo if you want to go mark some fench posts this weekend Later Ben VN continue Ce home cis90 simmsben 5 The earlier text with typos 15 still showing however the corrected version is what is actually sent 81 CIS 90 Lesson 11 ENIM bin mail and vi home cis90 roddyduk 5 mail Mail version 8 1 6 6 93 Type for help var spool mail roddyduk 1 message 1 unread gt U 1 simmsben opus cabril Mon Nov 10 20 25 22 782 Good bones amp 1 Message 1l From simmsben opus cabrillo edu Mon Nov 10 20 25 32 2008 Date Mon 10 Nov 2008 20 25 32 0800 From Benji Simms lt simmsben opus cabrillo edu gt To roddyduk opus cabrillo edu Subject Good bones Hey Duke I really appreciate that bone you sent me last week Let me know if you want to go mark some fence posts this weekend Later Ben The message Duke reads has all the typos fixed k 1 i J 1 q LP I L Pd 4 a bar S w 17 s gt i i T langent Spell CIS 90 Lesson 11 spell command home cis90 roddyduk edits S cCat text Welcome to the CIS 90 clas
17. CIS 90 Lesson 11 Lesson Module Status e Slides draft Properties done e Flash cards e 15 minute quiz done Web calendar summary done Web book pages done Commands e Lab email out tech file turn on link e Supplies Email tech to class e Class PC s na e Scripts done CIS 90 Lesson 11 4 E145 QUIZ Please close your books turn off your monitor take out a blank piece of paper and answer the following questions e What command shows the current running processes Name four states a process can be in What is the difference between the fork and exec system calls CIS 90 Lesson 11 Egl vi editor Objectives e Create and modify text files e Quiz e Questions from last week e Test results grep e Review on processes yi e Wrap up x hands on exercise for topic 5 CIS 90 Lesson 11 Housekeeping CIS 90 Lesson 11 Previous material and assignment Questions Lab 8 due at midnight S at 11 59pm at cat files out bigshell gt lab0e at gt cp lab08 home rsimms cis90 SLOGNAME at Ctrl D Don t wait till Thursday to see if this worked Test with an earlier time Note Lab 9 and five posts due next week CIS 90 Lesson 11 CIS 90 Lesson 11 can use for Lab 8 CIS 90 Lesson 11 grep usage What is my account information in etc passwd home cis90 roddyduk 5 grep SLOGNAME etc passwd r
18. Cau Lo 62 2 CIS 90 Lesson 11 TN F Tne mystery of Ctri Z vs Ctri F CIS 90 Lesson 11 Signals Special keystrokes o eptv a Speed 38400 baud rows 26 columns 78 line 0 intr C quit erase kill U eof D eol undef eol2 lt undef gt swtch lt undef gt start Q stop 8 susp F FR werase W lnext V flush O min 1 time 0 rsimmsQopus 15 stty a Speed 38400 baud rows 39 columns 84 line 0 intr C quit erase kill U eof D eol lt undef gt 12 undef swtch lt undef gt start 0 stop 5 rprnt R werase W lnext V flush O min 1 time 0 Why does the keystroke to send a Suspend SIGTSTP or 20 signal differ between roddyduk F or Ctrl F and rsimms Z or Ctrl Z 40 CIS 90 Lesson 11 Signals SIGSTKFLT 16 Stack fault SIGCHLD 17 Child process has stopped or exited changed POSIX SIGCONT 18 Continue executing if stopped POSIX SIGSTOP 19 Stop executing can t be caught or ignored POSIX Ctrl Z or Ctri F SIGTTIN 21 Background process trying to read from TTY POSIX SIGTTOU 22 Background process trying to write to POSIX SIGURG 23 Urgent condition on socket 4 2 BSD SIGXCPU 24 CPU limit exceeded 4 2 BSD SIGXFSZ 25 File size limit exceeded 4 2 BSD SIGVTALRM 26 Virtual alarm clock 4 2 BSD SIGPROF 27 Profiling alarm cl
19. DDR SZ WCHAN TTY TIME CMD 252 1000 10705 L0704 4 76 1165 wait pts 0 00 00 00 bash EM 1000 10743 10705 0 75 0 926 finish pts 0 00 00 00 sleep OR 1000 10744 10705 0 78 102 pts 0 00200 00 ps home coe15s90 roddyduk 5 jobs 1 Stopped sleep 60 home cis90 roddyduk 5 kill 18 10743 home cis90 roddyduk jobs 1 Running sleep 60 amp home cis90 roddyduk 5 ps lI BU m UID PID PPID C PRI NI ADDR 52 WCHAN IIME CMD 05 22002 10705 10704 0 73 1165 wait pts 0 09 00 00 Dash om 1000 10743 10705 0 85 926 322800 95877 00 00 00 sleep O R 1000 10746 10705 0 77 0 1050 pts 0 00 00 00 ps home cis90 roddyduk jobs 1 Running sleep 60 amp home cis90 roddyduk jobs 1 Running sleep 60 amp home cis90 roddyduk jobs 1 Done sleep 60 Note sending a 18 signal or using the bg command will 33 resume a stopped process Signals e Run and suspend two jobs sleep 60 Ctrl F or Ctrl Z sleep 90 or Ctrl Z Use jobs to see them e Use ps If to get their PI Ds e Resume one job with the bg command Resume the other job with the kill 18 signal Use jobs to see if they complete AA Co rede CIS 90 27 ET Review of Job Control CIS 90 Lesson 10 Job Control A feature of the bash shell amp Append to a command to run it in the background bg Resumes a suspended job in the background fg Brings the most recent background process to the foreground jobs
20. G 23 SIGXCPU 24 SIGXFSZ 25 SIGVTALRM 26 SIGPROF 27 SIGWINCH 28 SIGIO 29 SIGPWR 30 Stop executing can t be caught or ignored POSIX Terminal stop signal POSIX Ctrl Z or Ctrl F Background process trying to read from TTY POSIX Background process trying to write to TTY POSIX Urgent condition on socket 4 2 BSD CPU limit exceeded 4 2 BSD File size limit exceeded 4 2 BSD Virtual alarm clock 4 2 BSD Profiling alarm clock 4 2 BSD Window size change 4 3 BSD Sun now possible 4 2 BSD Power failure restart System V Signal 18 continues a stopped process isn t that what bg does 31 laa CIS 90 Lesson 11 The bg command 15 used to resume stopped process home cis90 roddyduk 5 Sleep 60 Ctrl F or Ctrl Z typed here 1 Stopped sleep 60 home cis90 roddyduk bg l sleep 60 amp home cis90 roddyduk 5 Jobs 1 Running sleep 60 amp home cis90 roddyduk Jobs 1 Running sleep 60 amp home cis90 roddyduk Jobs 1 Done sleep 60 home cis90 roddyduk bg resumed the stopped process which runs till it is finished 32 est 1959 t CIS 90 Lesson 11 r ir M Ec l k H Instead of using bg to resume a stopped process in the background lets try a SIGCONT signal 18 instead home cis90 roddyduk 5 Sleep 60 Ctrl F or Ctrl Z typed here 1 Stopped sleep 60 home cis90 roddyduk 5 ps lI E D UID PID PPID C PRI NI A
21. Lesson 11 VI Cut Copy Pasting Commands Note to execute any of the following commands from vi you must be in command mode Press the Esc key to enter command mode Deletes the current character dw Deletes the current word dd Deletes the current line D Deletes to the end of the line yy Copies line to the clipboard buffer Pastes whatever is in the clipboard buffer below the current cursor Pastes whatever is in the buffer above the current cursor 71 1 CLR 1 j x i 7 L BB E a E 4 ai VI Now practice these commands Note to execute any of the following commands from vi you must be in command mode Press the Esc key to enter command mode X Deletes the current character dw Deletes the current word dd Deletes the current line D Deletes to the end of the line yy Copies a line to the clipboard buffer p Pastes whatever is in the clipboard buffer below the current cursor P Pastes whatever is the clipboard buffer above the current cursor CIS 90 Lesson 11 VI Miscellaneous Useful Commands Note to execute any of the following commands from vi you must be in command mode Press the Esc key to enter command mode g Tells you the filename you are editing and what line your cursor is on u Undoes the last command you executed Repeats the last command you executed string Searches for the string of characters in the file
22. Lists all background jobs 36 est 1959 m CI S 90 Lesson 11 home cis90 roddyduk sleep 60 Ctrl F typed here 11 Stopped sleep home cis90 roddyduk 5 bg 1 sleep 60 amp home cis90 roddyduk 5 bg bash bg job 1 already in background home cis90 roddyduk 5 Jobs 1 Running sleep home cis90 roddyduk sleep 90 Ctrl F typed here 2 Stopped home cis90 roddyduk Ctrl F typed here 3 Stopped home cis90 roddyduk 1 Running 2 Stopped 3 Stopped home cis90 roddyduk 3 sleep 120 5 1 Done home cis90 roddyduk 2 Stopped 2 home cis90 roddyduk 2 sleep 90 amp home cis90 roddyduk 2 Runhong Running home cis90 roddyduk 2 Done 3 Done sleep sleep 120 sleep jobs sleep sleep sleep bg 3 sleep jobs sleep sleep bg 2 jobs sleep sleep jobs sleep sleep 60 Multiple background jobs and using an 90 argument on the bg command to resume 120 a specific job 60 amp 90 120 60 amp 60 90 120 amp 90 6 120 amp 120 Job Control e Run and suspend two jobs sleep 75 Ctrl F or Ctrl Z sleep 85 Ctrl F or Ctrl Z Use jobs to see them Resume one job with the bg command Use jobs to see change Bring the other to the foreground with fg Use jobs when control returns to see that every process finished e Use sleep 15 6 to run in the background Use jobs to check on progress
23. are sonnet17 poems Shakespeare sonnet2 poems Shakespeare sonnet26 poems Shakespeare sonnet3 poems Shakespeare sonnet35 poems Shakespeare sonnet4 poems Shakespeare sonnet5 poems Shakespeare sonnet6 105 poems Shakespeare sonnet7 poems Shakespeare sonnet9 poems Shakespeare trick2 poems Shakespeare words CIS 90 Lesson 11 1116 Test 2 Q20 verification 20 What single command could be used to mail yourself the misspelled words in all of Shakespeare s sonnets with a subject of To Review home cis90 roddyduk spell poems Shakespeare mail s To Review LOGNAME You have mail in var spool mail roddyduk home cis90 roddyduk mail Mail version 8 1 6 6 93 Type for help var spool mail roddyduk 1 message 1 unread U 1 roddyduk opus cabril Thu Nov 6 11 41 89 1198 To Review amp 1 Message 1 From roddyduk opus cabrillo edu Thu Nov 6 11 41 24 2008 To check your answer using Date Thu 6 Nov 2008 11 41 24 0800 From Duke Roddy lt roddyduk opus cabrillo edu gt Opus ISSUE the command and To roddyduk opus cabrillo edu then read your Subject Review font reduced so misspelled words fit on slide amp x home cis90 roddyduk 5 106 CIS 90 Lesson 11 eR aw Test 2 Q30 answer 30 Issue the following command ls 1 bin p gws gt dev null What argument s are being passed to the Is command when it is loaded bin pgawk bin pwd 107 CIS 90 Lesson 11 Test 2 Q30 answe
24. d dev null and stderr stderr directory contents are read using the kernel 17 CIS 90 Lesson 11 Process Lifecycle PID 582 PID 582 exec exit bash cmd PPID 501 PPID S01 se PID 501 PID 501 et PID 501 fork wait bash bash bash PPID 250 PPID 250 PPID 250 cis 90 ressonar Process Lifecycle PID 582 Child process different PID PPID 501 PID 501 PID 501 Parent process PPID 250 PPID 250 1 When a program is loaded into memory a new process must be created This is done by the parent process bash making a copy of itself using the fork system call The new child process is a duplicate of the parent but it has a different PID CIS 90 Lesson 11 Process Lifecycle PID 582 PID 582 EXEC bash cmd PPID 501 PPID 501 PID 501 PID 501 fork walit bash bash PPID 250 PPID 250 2 An exec system call is issued to overlay the child process with the instructions of the requested command The new instructions then are executed The parent process issues the wait system call and goes to sleep 20 CIS 90 Lesson 11 Process Lifecycle PID 582 PID 582 exec exit bash PPID 501 PPID 501 e PID 501 PID 501 PID 501 fork wait bash bash bash PPID 250 PPID 250 PPID 250 3 When the child process finishes executing the instructions it issues the exit system call At this point
25. d of the line G moves the cursor to the last line in the file 1 moves the cursor to the first line in the file 105G moves the cursor to line 105 scrolls down 10 lines u scrolls up 10 lines f page forward one page b page back one page Try typing a number in front of these commands and notice what happens 1 4 j 4 1 wd zl K s 1 Ei x E E E b 1 1 i b 1 1 VI Practice using these commands Note to execute any of the following commands from vi you must be in command mode Press the Esc key to enter command mode h moves the cursor one character to the left j moves the cursor down one line k moves the cursor up one line moves the cursor one character to the right w moves the cursor one word forward b moves the cursor one word back zero moves the cursor to the beginning of the line moves the cursor to the end of the line G moves the cursor to the last line in the file 1 moves the cursor to the first line in the file 105G moves the cursor to line 105 d scrolls down 10 lines u scrolls up 10 lines f page forward one page b page back one page Try typing number in front of these commands notice what happens 11 VI Reading and Writing out files Note to execute any of the following commands from vi you must be in command mode Press the Esc key to enter command mode exits vi if you have
26. ectory is dogs what single command using filename expansion characters would move just the files Scout and Sally to the dogs directory The shell replaces this with tmp new Scout and tmp new Sally mv tmp new S ca here 101 CIS 90 Lesson 11 Test 2 Q19 verification home cis90 roddyduk 5 cd tmp tmp mkdir p pets pets dogs pets cats new new touch Spot Sidney Scout Sally tmp 5 ls R pets new To verify your new answer USING pally 20000 24476070 create the same directory structure and test your command Deis cats dogs pets cats pets dogs tmp 5 pets dogs tmp pets dogs 5 mv tmp new S ca tmp pets dogs ls Sally Scout tmp pets dogs Spot Sidney Scout Sally Turning on bash tracing tmp pets dogs 5 set echo ne 033 0 roddyduk opus tmp pets dogs tmp pets dogs 5 MV tmp new S ca mv tmp new Sally tmp new Scout echo ne 033 0 roddyduk opus tmp pets dogs 102 tmp pets dogs 5 CIS 90 Lesson 11 Test 2 Q18 answer 18 What permission is lacking that prevents you from viewing boot grub grub conf r read permission for others home cis90 roddyduk ls 1 boot grub grub conf Se 1 root root 865 Jun 17 16 55 boot grub gr b conf home cis90 roddyduk 5 103 CIS 90 Lesson 11 1 1116 Test 2 Q18 verification 18 What permission is lacking that prevents you from v
27. iewing boot grub grub conf r read permission for others home cis90 roddyduk cat boot grub grub conf cat boot grub grub conf Permission denied home ois90 roddyduk 5 touch grub coni home cis90 roddyduk 5 15 1 grub conf boot grub grub conf 1 root poor 5b Jun L7 225 7200070 CONTE rtwxrw r e 4 roddyduk cis gv Nov 10 07 54 grub conf home cis90 roddyduk chmod u r grub conf home cis90 roddyduk 5 cat grub conf boot grub grub conf cat grub conf Permission denied cat boot grub grub conf Permission denied home cis90 roddyduk S chmod u r grub conf home cis90 roddyduk cat grub conf boot grub grub conf Jboot Z4grub ogrub confr Permission denied home cis90 roddyduk 5 To check your answer using Opus create your own grub conf and verify by removing and adding r permission 104 CIS 90 Lesson 11 Test 2 Q20 answer 20 What single command could be used to mail yourself the misspelled words in all of Shakespeare s sonnets with a subject of To Review Misspelled words are piped option to add subject from the stdout of spell into to mail message the stdin of mail UN spell poems Shakespeare mail s To Review SLOGNAME L Replaced by bash shell with actual user name expanded by bash shell to include all sonnets echo poems Shakespeare poems Shakespeare sonnet1 poems Shakespeare sonnet10 poems Shakespeare sonnet11 poems Shakespeare sonnet15 poems Shakespe
28. it gives up all its resources becomes a zombie The parent is woken up and once the parent has informed the kernel it has finished working with the child the child process is killed and removed from the process table 21 CIS 90 Lesson 11 Process Lifecycle PID 582 PID 582 exec exit bash PPID 501 PPID 501 ue PID 501 PID 501 PID 501 fork wait bash bash bash PPID 250 PPID 250 PPID 250 3 If the parent process were to die before the child the zombie will become an orphan Fortunately the init process will adopt any orphaned zombies 22 Type bash Type bash again Type bash again Type ps Who is the parent of ps Who is the parent of the parent of ps Type ps ef Track your family history as far back as you can go Who is the most distant grandparent of ps CIS 90 Lesson 11 Review of Signals est 1959 PLATE 4 COMMERCIAL CODE SIGNALS ETER EXAMPLES OF THE SEVERAL HOISTS WHHIH QAN MADE HAVING TWO THREE OF FOUR FLAGS Word contains iwoletters of the same name the monta time of ita oocurremne it murt bagin or ba in tha 264 Holst and on ita rd cerarrance it must begin or bein the Sri Hoist URGENT IMPORTANT SIGNALS COMPASS SIGNALS 3 FLA Cons Frage over Op I r F po or A Am abour dad dimos Hi Veste LATITUDE amp LONGITUDE SIGNALS GEOGRA FHICAL
29. line A Ready to append characters at the end of the current line Ready to input characters in a new line that opens below the cursor O Ready to input characters in a new line that opens up above the cursor r Ready to replace the current character with the character you type next R Ready to Replace overwrite characters starting at the curent cursor position s Ready to replace the current character with the string you type next cw Ready to replace the current word with the string you type next 69 1 EB p SRE E KE i i a HA T hb jJ x LM P d 4 i r T 7 VI Now practice these commands i Ready to insert characters immediately before the current cursor position a Ready to append characters immediately after the current cursor position I Ready to insert characters at the start of the current line A Ready to append characters at the end of the current line o Ready to input characters in a new line that opens up below the cursor O Ready to input characters in a new line that opens up above the cursor r Ready to replace the current character with the character you type next R Ready to Replace overwrite characters starting at the curent cursor position s Ready to replace the current character with the string you type next cw Ready to replace the current word with the string you type next 70 CIS 90
30. me and the app process finishes cleans up and exits CIS 90 Lesson 11 Signals Benji runs app gg simmsben opus fitit THT FETE FFP F F PEFFE FEFFE f f E simmsben opus EXEI x RES pome cis90 simmsben 5 ps u simmsben PID TTY TIME CMD 6657 00 00 00 sshd 6658 pts 1 00 00 00 bash 1033 00 00 00 sshd 7034 pts 2 00 00 00 bash 8237 pts 2 00 00 00 app 8279 pts 2 00 00 00 sleep 8280 pts 1 00 00 00 ps home cis90 simmsben 5 same thing happens again another This Benji does not care what happens with app CIS 90 Lesson 11 EP simmsben opus iid ifj RES thrRilled home cis90 simmsben 5 Signals Benji runs app PID 6657 6658 pts 1 7033 7034 pts 2 8237 pts 2 TIME 00 00 00 00 00 00 00 00 00 00 00 00 00 00 app 8279 pts 72 00 00 00 sleep 8280 pts 1 00 00 00 ps home cis90 simmsben 5 kill 9 8237 home cis90 simmsben CMD ssha bash sshd bash 00 So he sends a SIGKILL this time and app never even sees it coming poof app is gone s of Load Balancing TENIS 1116 Load Balancing The command reads from stdin or a file for list of commands to run and begins running
31. ock 4 2 BSD SIGWINCH 28 Window size change 4 3 BSD Sun SIGIO 29 I O now possible 4 2 BSD SIGPWR 30 Power failure restart System V Note Signal 20 is used to stop a process and moves it to the background 4 rsimms opus sleep 5 PID 7728 Is stopped Stopped CIS 90 Lesson 11 Job Control feature of the bash shell Ctrl Z or Ctrl F sends SIGTSTP 20 signal e Stops suspends a foreground process rS 5 UID 5 55 201 Os 201 x Ss 201 2 201 O R 201 rsimms opus 15 PID 5368 sioe 620 6204 7730 rsimms opus ps 1 E ESL 5329 22050 6200 6203 s 0 Ctrl Z is tapped which stops the sleep command u rsimms ADDR SZ 0 2460 0 1165 pts 0 0 2491 e 0 1165 pts 6 0627 pts 0 TIME 00500 DO 0U 00 00 00800 00200 500 CMD sshd bash sshd bash ps rsimms opus bg 11 sleep 5 amp rsimms opus 15 bg command Resumes a suspended job in the background UID 201 201 201 201 201 rsimms opus 15 rsimms opus sleep 5 rsimms opus 15 PID 5368 sioe 620 6204 7742 CIS 90 Lesson 11 Job Control ps 1 PP ED 3905 22050 6200 6202 poo u rsimms ADDR 51 72 10 72 15 78 feature of the bash shell bg resumes the sleep command 2460 1165 2491 1165 1061 CIS 90 Lesson 11 Signals Jim s app script oc eee z
32. oddyduk x 1000 103 Duke Roddy home cis90 roddyduk bin bash home cis90 roddyduk Cat passwd grep LOGNAME roddyduk x 1000 103 Duke Roddy home cis90 roddyduk bin bash My password is kept in etc shadow my user ID is 1000 my primary group D is 103 full name is Duke Roddy my home directory is home cis90 roddyduk my shell is bin bash CIS 90 Lesson 11 grep usage Is the CUPS daemon print service running right now home cis90 roddyduk ps grep cups root 2900 1 0 2008 00 00 00 cupsd roddyduk 5893 5496 07 01 pts 3 00 00 00 grep cups Yes it is with pid 2588 CIS 90 Lesson 11 grep usage Is Samba File and Print services installed home cis90 roddyduk rpm qa grep samba system confio samba 1 2 39 1 el5 samba client 3 0 28 1 e15 2 1 samba 3 0 28 1 e15 2 1 samba common 3 0 25 1 e015 2 1 home cis90 roddyduk Yes the client server and common packages have been installed already 10 CIS 90 Lesson 11 grep usage How many CIS 90 user accounts are there home cis90 roddyduk etc passwd grep 103 wc lI 28 home cis90 roddyduk Cat passwd grep cis90 wc I 28 There are 28 The cis90 group is GID 103 the home directories are home cis90 11 grep practice e How many CIS192 accounts are there e 5 the cronjob daemon crond running right now e 5 the mysql package been installed on Opus Review of
33. ous paragraph move forward back one word 0 i i i i i ie go to end of current or next word i CUT COPY PASTE Pnyy nY iya ip copy 7 lines copy word line paste text after before cursor a insert text after before cursor iA I insert text end beginning of line WICKED COOL STUFF change case transpose characters combine current line with next create a mark called p return to p delete copy text from mark to cursor indent lines I m Done CIS 90 Lesson 11 bin mall and vi home cis90 simmsben S mail roddyduk Subject Good bones Hey Duke I really appreciate thatbone you sent last week Let me knwo if you want to qo mark some fench posts this weekend Later Ben You are composing a message and you spot some typos CRUD what can you do 78 CIS 90 Lesson 11 bin mall and vi home cis90 simmsben S mail roddyduk Subject Good bones Hey Duke I really appreciate thatbone you sent last week Let me knwo if you want to go mark some fench posts this weekend Later Ben Well you could try the v command 79 CIS 90 Lesson 11 bin mail and vi simmsben opus Hey Duke I really appreciate thatbone you sent me last week Let knwo if you want to go mark some fench posts this weekend Tha Tha d tmp ReqY
34. r 5 1 j eos stdout Note gets its Input from the command line and the OS and Options I 0 Se writes to stdout Args bin pgawk N dev null redirected to J dev null and 3 7 5 M 2 E stderr read 1 OH ou C stdin directory contents are read stderr using the kernel 108 CIS 90 Lesson 11 Test 2 Q30 verification 30 Issue the following command 15 1 bin p ows gt dev null What argument s are being passed to the 15 command when it is loaded home cis90 roddyduk 5 echo bin p gws To verify use the echo bin pgawk bin pwd command Or home cis90 roddyduk set x echo ne 033 0 roddyduk opus Could also turn on bash tracing home cis90 roddyduk 1s 1 bin p gws dev null ls color tty 1 bin pgawk bin pwd echo ne 4033 0 roddyduk QGopus home cis90 roddyduk 109 SIGSTKFLT SIGCHLD SIGCONT SIGSTOP SIGTSTP SIGTTIN SIGTTOU SIGURG SIGXCPU SIGXFSZ SIGVTALRM SIGPROF SIGWINCH SIGIO SIGPWR 16 CIS 90 Lesson 11 i4 Kk Signals Stack fault Child process has stopped or exited changed POSIX Continue executing if stopped POSIX Stop executing can t be caught or ignored POSIX Terminal stop signal POSIX Ctrl Z or Ctrl F Background process trying to read from TTY POSIX Background process trying to write to TTY POSIX U
35. rd you want to add to your dictionary I can t favorite posting or contact believe I ve let this sit for so long B man past ee IT YQ Ur language is English create a file in your home directory Trackback URL for this pos m called aspell en pws http samat org trackback 150 X Find dictionary Next Done personal ws 1 1 en Samat quasirhombicosidodecahedron Googling linux aspell personal dictionary yields this page Bingo Thank you Samat Jain 87 CIS 90 Lesson 11 spell command home cis90 roddyduk edits 5 cd home cis90 roddyduk echo personal ws 1 1 en 0 gt aspell en pws home cis90 roddyduk S echo CIS gt gt aspell en pws home cis90 roddyduk 5 cd edits home cis90 roddyduk edits spell text home cis90 roddyduk edits 9 This is how you would add your own custom dictionary to be used with spell checks 88 CIS 90 Lesson 11 89 CIS 191 Lesson 11 New commands editor New Files and Directories na na 90 7 11 Next Class Assignment Check Calendar Page on wen site to see what is due next week 9 Quiz questions for next class How do you send SIGKILL to one of your own processes e What vi command is used to exit vi without saving any of the changes you made e What vi commands are used for copy and paste 91 CIS 90 Lesson 11 92 CIS 90 Le
36. rgent condition on socket 4 2 BSD CPU limit exceeded 4 2 BSD File size limit exceeded 4 2 BSD Virtual alarm clock 4 2 BSD Profiling alarm clock 4 2 BSD Window size change 4 3 BSD Sun now possible 4 2 BSD Power failure restart System V Use kill to see all signals CIS 90 Lesson 11 UE F 1 1 Signals Use kill 1 to see all of them home cis90 roddyduk 5 kill I 1 SIGHUP 2 SIGINT 3 SIGQUIT 4 SIGILL 5 SIGTRAP 6 SIGABRT 7 SIGBUS 8 SIGFPE 9 SIGKILL 10 SIGUSR1 11 SIGSEGV 12 SIGUSR2 13 SIGPIPE 14 SIGALRM 15 SIGTERM 16 SIGSTKFLT 17 SIGCHLD 18 SIGCONT 19 SIGSTOP 20 SXIGISIP 21 SIGTTIN 22 SIGTTOU 23 SIGURG 24 SIGXCPU 29 SIGXESZ 26 SIGVTALRM 21 SIGPROF 20 SIGWINCH 429 GIGIO 30 SIGPWR 51 34 SIGRTMIN 35 SIGRTMIN 1 36 SIGRTMIN 2 37 SIGRTMIN 3 38 SIGRIMIN 4 39 SIGRTMIN 5 40 SIGRTMIN 6 41 SIGRTMIN 7 42 SIGRTMIN 8 43 SIGRTMIN 9 44 SIGRTMIN 10 45 SIGRTMIN 11 46 SIGRTMIN 4 12 47 SIGRTMIN 13 48 SIGRTMIN 14 49 SIGRTMIN 15 50 SIGRTMAX 14 51 SIGRTMAX 13 52 SIGRTMAX 12 53 SIGRTMAX 11 54 SIGRTMAX 10 95 SIGRTMAX 9 56 SIGRTMAX 8 57 SIGRIMAX 7 58 SIGRTMAX 0 59 SIGRTMAX 5 60 SIGRTMAX 4 61 SIGRTMAX 3 62 SIGRTMAX 2 63 SIGRTMAX 1 64 SIGRTMAX 111
37. s home cis90 roddyduk edits S spell text oak spell command flags CIS as misspelled word How can we add CIS to the dictionary 84 CIS 90 Lesson 11 1 spell command home cis90 roddyduk edits 5 cat text GO LO Cle 22 712 How e add CIS home cis90 roddyduk edits 5 spell text 0 the dictionary CES home cis90 roddyduk edits man spell Hmmm No man page No manual entry for spell for spell home cis90 roddyduk edits S type spell spell is hashed usr bin spell home cis90 roddyduk edits file usr bin spell usr bin spell Bourne shell script text executable home cis90 roddyduk edits cat usr bin spell t bin sh aspell list mimicks the standard unix spell program roughly OK the actual cat 5 aspell list mode none sort u command is aspell home cis90 roddyduk edits 9 85 CIS 90 Lesson 11 spell command ASPELL 1 Aspell Abbreviated User s Manual ASPELL 1 NAME aspell interactive spell checker SYNOPSIS aspell options command DRSCRIPILON aspell is utility that can function as an ispell a replacement as an independent spell checker as a test utility to test out Aspell features and as a utility for managing dictionaries COMMANDS command is one of help display the help message C Check to spell check a file There must be a way to add CIS but lets try google 86 est 1959 m
38. sson 11 home cis90 roddyduk 5 bash roddyduk opus 15 bash roddyduk opus S bash roddyduk opus 15 ps PID TE TIME CMD r 11198 pts 6 00 00 00 bash Parent and child 11233 pts 6 00 00 00 bash 11257 Dts 6 00 00 00 bash 11284 pts 6 00 00 00 bash 11309 pts 6 00 00 00 roddyduk opus ps 1 5 UID PID PPID PRE NI ADDR SA WCHAN TTY TIME CMD OS 1000 11198 41197 75 1165 wait pts 6 00 00 00 bash 925 L000 143 212192950 75 1166 wait pts 6 00 00 00 bash Os 2000 Liga 11255 0 73 1166 wait pts 6 00 00 00 bash OS 1000 11294 11257 0 75 1165 wait pts 6 00 00 00 bash OR 1000 11312 11294 0 77 0 1051 pts 6 00200200 ps roddyduk opus 15 exit exit roddyduk opus 15 exit exit roddyduk opus 15 exit exit home cis90 roddyduk ps 1 5 UID PID PPID PRI NI ADDR SZ WCHAN TTY TIME CMD OS A000 1490 11297402 72 1165 wait pts 6 00 00 00 bash OR 1000 11365 21215980 7 Sr pts 6 00 00 00 home cis90 roddyduk 5 93 Lesson 11 roddyduk opus 195 sleep 60 Resume stopped jobs with 1 Stopped sleep 60 bg and Kill 18 roddyduk opus 15 sleep 90 2 Stopped sleep 90 roddyduk opus 15 ps 1f P o UID PID PPID C PRI NI ADDR 572 WCHAN 5 TIY TIME CMD 0 5 roddyd k 12222 11522 0 75 1165 wait 09235 DESO 00 00 00 bash 0 S rodgoyduk 11560 11529 0 75 1165 wait 09 36 pts 6 00 00 00 bash 0 S roddyduk 11584 11560 0 75 1166 wait 09 36 pts 6 00 00
39. t without saving 10 d save file save file as f i dmotion edit filename i insert filename gt lt drop to shell i run command io 0 execute and insert output REPLACE find tet forward or backward find next line that starts with txt inG rcpcat last scarch backward ih Ll R3 forward inb nw replace text from current iCTRL B F character i CTRL U D DELETING INSERTING TEXT delete word line character delete lines characters delete character forward backward W delete to end of line delete from cursor to motion 5 O indent outdent line replace text with blank line insert new line below above current line undo last change repeat last change i MOVING AROUND move to line left right up down onc character left or right words back forward one screen up down one screen r J 12 95 Big Mug Label Mozilla Firefox u B File Edit View History Bookmarks Tools Help Order Y A http nostarch com mug_big htm 17 wo Yahoo _ Disable Cookies 1 CSS Forms Images Information Miscellaneous gt Outline Resizer e Tools View Source d Options x gt Sams Publishing Contact Us x Google custom Search ff Searches Cart Blog go to beginning of line zero move to next previous sentence move to next previ
40. the backgroud lets use a kill signal instead 95 CIS 90 Lesson 11 96 CIS 90 Lesson 11 Test 2 Results Incorrect answer pareto 13 XXXXXXXXXXXXXXXXXX pipes 28 redirection 19 path 18 xxxxxxxxxx permissions 20 combo 30 parsing 21 xxxxxxxx path 29 xxxxxxxx redirection 12 xxxxxxxx umask with cp 27 xxxxxxxx pipes 23 xxxxxxx chgrp 24 xxxxxx permissions 22 xxxxx mkdir 07 xxxxx permissions 15 xxxxx permissions 14 xxxx permissions 26 xxxx redirection 05 xxxx umask 06 xxx permission 10 xxx tee 16 xx permissions 08 xx links 09 file descriptors Extra Credit 31 XXXXXXXXXXXXXXXXXXX combo 33 XXXXXXXXXXXXXX parsing 32 XXXXXXXXXXX grep and piping 97 CIS 90 Lesson 11 E Egla Test 2 013 13 What complete command with no s counts all the files belonging to you on the system places a sorted list of them in the file allmine and redirects error messages to the bit bucket Limits the files listed to just those owned the user The shell The tee send the sorted files replaces LOGNAME with the actual to both the file allmine and to username the stdin of the wc command find user SLOGNAME 2 gt dev null sort tee allmine wc 1 r find will list all Permission errors are thrown files starting at away from
41. them at the time of day specified as the first argument at 10 30pm lt batch file 5 at 11 59pm at cat files out bigshell gt lab08 at cp lab08 home rsimms cis90 SLOGNAME at Ctrl D 5 Note Use Ctrl D must be entered as the first character the last line Note This is how you actually submit Lab 8 60 home cis90 roddyduk CIS 90 Lesson 11 Load Balancing Toa L L M 8 r This Job makes a backup of myscript 5 cat jobl and sends an email when finished cp bin myscript bin myscript bak echo Job 1 finished myscript has been backed up home cis90 roddyduk Job 24 at 2008 11 12 home cis90 roddyduk job 25 at 2000 15 12 home cis90 roddyduk JOO 26 at 2009 11 07 home cis90 roddyduk job 27 2008 11 19 home cis90 roddyduk TOO 20 at 2000 22 home cis90 roddyduk home cis90 roddyduk mail s Job 1 roddyduk 25 EEE 28 ZA Ze Lo 26 000 0172 24 129 2152 14 er 12 16 12 lt at now 5 minutes lt jobi 12 14 5 at now 2 hours lt jobl 14 09 at teatlme lt jobl Several ways to specify 16 00 future time to run 5 at now 1 week lt jobl 12 10 5 at 3 00 12 12 2008 lt jobl 05 00 S jobs s atq 09 roddyduk 00 roddyduk Use the atq command 10 roddyduk to Show queued jobs 00 roddyduk 14 roddyduk home cis90 roddyduk 5 61 home cis90 roddyduk 5 jobs home cis90 roddyduk

Download Pdf Manuals

image

Related Search

bash bash bash shell bashar al-assad bash script bash meaning bash for loop bashful definition bashas weekly ad bashful gif bashas grocery store bash commands basham funeral home bash download bash windows bashas login bashing bash alias basha high school bashas near me bash case bash read basho haiku bash upload bash linux bash the teacher free

Related Contents

Bedienungsanleitungen  USER`S MANUAL MANUEL UTILISATEUR - Hitachi  Version 2 23/02/09 TrueCrypt – User Guide TrueCrypt is a free open    PQI Cool Drive U350, 8GB    

Copyright © All rights reserved.
Failed to retrieve file