Home
        CIS 90 - Lesson 11
         Contents
1.       home cis90 roddyduk edits   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      bin sh      aspell list mimicks the standard unix spell program  roughly     OK  the actual    cat  SE    list   mode none   sort  u    RSS command is aspell     home cis90 roddyduk edits   89       CIS 90   Lesson 11 REI    spell command    ASPELL  1  Aspell Abbreviated User s Manual ASPELL  1   NAME   aspell   interactive spell checker  SYNOPSIS    aspell  options    command      DESCRIPTION  aspell is a 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 file  to spell check a file    There must be a way to add CIS     but    lets try google  90    CIS 90   Lesson 11           ee ee        Q X MIS ven vent ete 20085102 oett roam prs met docta  Md Bo      p    D Cuatir SS coter     CU   Ferr E beper Gema J Macarena   Oiar    Peer   Tesi ii  Ven eurn a 00            Samat Jain s personal home page                  Semang that has bothered me forever a that applcamons that use AA  sod fer spat checdong kept martang  my name as    every  Em belang at you  Mad   Mest front and applications don t proie    may for you to eb services  a
2.      20  Ces CIS 90   Lesson 11     FE   l pu       Tangent on  Dg and  SIGCONT    CIS 90   Lesson 11       Running  process  gets a  What is  signal    18        ee                lt  s       CIS 90   Lesson 11 E E 11 iii    Signals    SIGSTKFLT 16 Stack fault    SIGCHLD    SIGSTOP  SIGTSTP  SIGTTIN   SIGTTOU  SIGURG   SIGXCPU  SIGXFSZ    17 Child process has sto        ed or exited  changed  POSIX     19 Stop executing can t be caught or ignored   POSIX   20 Terminal stop signal  POSIX  Ctrl Z or Ctrl F   21 Background process trying to read  from TTY  POSIX   22 Background process trying to write  to TTY  POSIX   23 Urgent condition on socket  4 2 BSD    24 CPU limit exceeded  4 2 BSD    25 File size limit exceeded  4 2 BSD     SIGVTALRM 26 Virtual alarm clock  4 2 BSD     SI GPROF    27 Profiling alarm clock  4 2 BSD     SIGWINCH 28 Window size change  4 3 BSD  Sun     SIGIO  SIGPWR    29   O now possible  4 2 BSD   30 Power failure restart  System V     Signal 18 continues a stopped process     isn t that what bg does     110       CIS 90   Lesson 11   4    nil    The bg command is used to resume a stopped process     home cis90 roddyduk   sleep 60   Ctrl F  or Ctrl Z  typed here    1   Stopped sleep 60   home cis90 roddyduk   bg    1   sleep 60  amp     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     home cis90 roddyduk      bg resumed the stopped p
3.    ps command  from bash  PPID  6204  PID  6204    PID  6204       PPID  6203    PPID  6203    rsimms opus     ps  1  UID PID PPID C PRI     rs   F S NI ADDR SZ WCHAN TTY  0S 201 6204 6203 0 75  OR    TIME CMD  0  1165 wait pts 6 00 00 00 bash  201 ESS 6204 0 77 0  1050   pts 6 00 00 00 ps     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     27  The parent process issues the wait system call and goes to sleep     DRE    Parent and child process practice    Type bash  Type bash again  Type bash again  Type ps   I    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            qm F      s    Review of  Signals    CIS 90   Lesson 11       PLATE 4    COMMERCIAL CODE SIGNALS    EXAMPLES OF THE BMVEMAL MOISTS  ase a AS RAVENS TWO  TERED  OR FOUR    wont vot EH pd rur  begin e bs im is Pad riri ani cn iie SUETON ant bagi ee tais e 6 Bat    URGENT    IMPORTANT SIGNALS   COMPASS S ONALS         Cope Fia oven  Pias on 2 Fina Sionais    TE    iy    Do Aor       L   110 NAL  A    E              nes Co  pne           Left tum       JAMES BROWN GLASGOW    CIS 90   Lesson 32  AE EB BE 0                 A 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 p
4.   Use ps   If to get their PIDs    Resume one job with the bg command  e Resume the other job with the kill   18 signal  e Use jobs to see if they complete    113       CIS 90   Lesson 11   LEE 11 pw    vi practice    e 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   home  cis900l  depot    practice    114       CIS 90   Lesson 11 Wee Kk      ru    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   I 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 end of the line   G moves the cursor to the last line in the file  1G 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 a number in front of these commands and notice what happens        CIS 90   Lesson 11 un E 11 ru    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 e
5.   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 in the clipboard buffer above the current cursor    118    CIS 90   Lesson 11 ER 11 ru       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    119    
6.  00  sleep    8280 pts 1  00  ps   home cis90 simmsben S E      E   The same thing happens again another day  This time    We Benji does not care what happens with app           CIS 90   Lesson 11             Be    Signals    nji runs app            EP simmsben opus   cie      98 998 FERREE FEFFE  FFFFFFF            E     LE      E  5 B     E          E FF FFF HEHHE z          amp            E   5 E       E    4 A      L wise  i HEHHE EH sains  1 H nii   home cis90 simmsben   ps  u simmsben  one PID TTY CMD  two 6657   sshd  thrKilled 6658 pts i bash     home cis90 simmsben S Jj             7033  7034  8237  8279  8280        pts 2  pts 2  pts 2  pts 1    sshd  bash    app  sleep     home cis90 simmsben S   home cis90 simmsben S       So he sends a SIGKILL this time     and app never even  sees it coming     poof     app is gone 22       AQU CIS 90   Lesson 11   LR   I p    Review of  Job  Control    CMe Peg CIS90 Lessonit   MIN    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 Lists all background jobs    Use  amp  to run any command or script in the background        CIS 90   Lesson 11 22 11 ru     amp  Append to a command to run it in the background       Example 1     home cis90 simmsben   find    user 1200 2   duh   sort    huh  C 99 No prompt    For long running commands or scripts you must wait for
7.  CIS 90   Lesson 11       Job Control  Managing jobs   home cis90o1 simmsben   bg 2     2   sleep 110  amp    home cis9001 simmsben   jobs     1   Stopped   Sleep 120  ERE Jobs can be resumed  E eus in the background  Sleep 100   b nth   home cis9001 simmsben   bg 1 USING Dg or iU e   1   sleep 120  amp  foreground using fg     home cis9001 simmsben   jobs    sleep 120  amp     2   Running   sleep 110  amp     3   Stopped   Sleep 100   home cis900l simmsben   fg3  sleep 100    At this point we lose control of the keyboard again until sleep 100 is finished d       CIS 90   Lesson 11    Job Control  Managing jobs     home cis9001 simmsben   jobs     1   Done  sleep 120 Background jobs are   2   Done    all done   sleep 110    65    Milk    Job Control    e Run and suspend two jobs  sleep 125  Ctrl F or Ctrl Z  sleep 120  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  e Use jobs when control returns to see that every process  finished  e Use sleep 15  amp  to run in the background    Use jobs to check on progress            L  1      be      Review       of Load  Balancing    CIS 90   Lesson 11 LEE 11 ru       Load Balancing    The at command reads from stdin or a file for a list of  commands to run  and begins running them at the time of  day specified as the first argument     9 cat JObL   cp bin myscript bin myscript bak     at 10 30pm  lt  jobl This will run the cp command
8.  E EB BE 0    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 Ctrl F   SIGTTIN 21 Background process trying to read  from TTY  POSIX    SIGTTOU 22 Background process trying to write  to TTY  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 clock  4 2 BSD    SIGWINCH 28 Window size change  4 3 BSD  Sun    SIGIO 29 1 0 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  104    CIS 90   Lesson 11       Job Control  A feature of the bash shell    aea Ctrl Z or Ctrl F  sends SIGTSTP 20 signal     e Stops  suspends  a foreground process       aan aeons Ctrl Z is tapped which   1   Stopped stops the sleep  command       imms opus     ps  1  u rsimms                                                    ID PID PPID PR N DDR SZ WCHAN TTY TIME CMD   PID 7728 1 5368 5365 75 2460     00 00 00 sshd    d 5369 5368 76 65 wait  pts 0 00 00 00 bash  IS stoppe 1 6203 6200 75 2491     00 00 00 sshd  6204 6203 75 1165   pts 6 00 00 00 bash                7730 5369 0 78 0 1062   pts 0 00 00 00 ps   rsimms opus           105       bg command    Resumes a suspend
9.  in  the file job1 at 10  30 PM     at 11 59pm    at   cat files out bigshell    lab08  at gt  cp lab08  home rsimms turnin lab08  9LOGNAME    at   Ctrl D This will run the commands entered    after the at command at 11 59 PM    Hold down the Ctrl key  then  tap the D key on the keyboard  for an EOF  end of file  68       CIS 90   Lesson 11           4 d     i J    Load Balancing  Managing queued jobs     home cis90 roddyduk   cat jobl  cp bin myscript bin myscript bak  echo  Job 1   finished  myscript has been backed up    mail  s  Job 1  roddyduk    at now   5 minutes  lt  jobl   12 14    at now   2 hours  lt  jobl  14 09     home cis90 roddyduk  job 24 at 2008 11 12   home cis90 roddyduk  job 25 at 2008 11 12   home cis90 roddyduk  job 26 at 2008 11 12   home cis90 roddyduk  job 27 at 2008 11 19   home cis90 roddyduk  job 28 at 2011 12 12   home cis90 roddyduk   home cis90 roddyduk    25 2008 11 12  28 2008 12 12  27 2008 11 19  26 2008 11 12  24 2008 11 12    14   03   I2  16   12       at teatime  lt  jobl    16 00    at now   1 week  lt  jobl  12310    at 3 00 12 12 2011  lt  jobi  03 00      jobs      atq    09  00  10  00  14     home cis90 roddyduk      a    a  a  a  a    roddyduk  roddyduk  roddyduk  roddyduk  roddyduk    This job makes a backup of myscript  and sends an email when finished    Several ways to specify  a future time to run    Use the atq command  to show queued jobs    69    CIS 90   Lesson 11 RI       Load Balancing  Managing queued jobs     home ci
10.  the command to finish  before you type more commands    Example 2     home cis90 simmsben   find    user 1200 2   duh   sort  gt  huh  amp     1  11601    home cis90 simmsben   date   Tue Nov 9 14 38 35 PST 2010    Hit enter to get the prompt and continue working while the find command  runs in the background       CIS 90   Lesson 11       Job Control  Using  amp  to run a command in the background    i ty QG O 4     After running  Firefox in the  foreground it s  not possible to   Ubuntu Start Page    enter more  commands until  Firefox is closed    Bn Most Visited v    Getting Started Latest Headlines v             Ubuntu Start Page   Mo     Update Manager     56    CIS 90   Lesson 11       Job Control  Using  amp  to run a command in the background    LE ON Qcs90 O 4     F dit    cis90Qeko    efo   cis90 eko    Ifirefox  amp    s ps  N  Ubuntu Start Page   Mozilla Firefox  PID TTY TIME CMD File Edit View History Bookmarks Tools  1370 pts 0 00 00 00 bash z   1465 pts 0 00 00 00 firefox e A       http   start ubuntu com 1  1470 pts 0 00 00 00 run moz  1474 pts 0 00 00 01 firefox Most Visitedv  e Getting Started Latest Headlines v   RE p 999 P  aussen         After running Firefox in  the background  it is  still possible to enter  more commands            Update Manager  Ubuntu Start Page   Mo       CMe Peg CIS90 Lessonit   MIN    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  backgroun
11. 20669 0 76 0   1054   pts 1 00 00 00 ps   s ps 1  grep csh   O S 1200 20618 20540 0 75 0   1330 rt_sig pts 1 00 00 00 csh    ps  l  grep csh  gt  bigshell     cat bigshell   O S 1200 20618 20540 0 75 0   1330 rt_sig pts 1 00 00 00 csh    13    grep practice      How many CIS130 accounts are there   e Is the cronjob daemon  crond  running right now       Has the mysql package been installed on Opus            qm F      s    Review of  Processes       CIS 90   Lesson 11 REL 11 p    Program to process     home cis90 roddyduk send          stdout        A process is a  program that has  been loaded into  stdin memory and is either  running  executing stderr   instructions  or waiting   to run 16       CIS 90   Lesson 11    Program to process    lheome cr 90 reoddyduk send  Options  NA  Args  NA              process is a  program that has  been loaded into  stdin memory and is either  running  executing stderr  instructions  or waiting   to run    17       CIS 90   Lessons   E EB DEF    A Process at Work    A 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 x       Wo Ces CIS 90   Lesson 11 EE 11 ru    Example program to process  sort command     home cis90 roddyduk   sort  dev pts 0  duke     benji stdout    SES      m    benji SEY    aah    duke   homer   SIG eue   
12. CIS 90   Lesson 11       Lesson Module Status  Slides   draft   Properties   done   Flash cards     First minute quiz   done  Web calendar summary   done  Web book pages   done  Commands   done   Lab   done   Supplies      na   Class PC s   na  Chocolates      Email Tech file for Lab 9  CCC Confer wall paper   done    Materials uploaded    Backup headset charged    Backup slides  CCC info  handouts on flash drive      Check that room headset is charged   done    CIS 90   Lesson 11    Instructor  Rich Simms  Dial in  888 450 4821  Passcode  761867    LER EP CPE   Eric Dan M Basa Marisol    Fe         Br    d     mt DEN    Apt Sow  f f   ie i  Re 77 3 Pav AM    Email me fisimms cabrille  edu  a relatively current photo of your pea for 3 points extra credit       CIS 90   Lesson 11 ER 11 ru       Quiz    Please close your books  notes  lesson materials   forum and answer these questions in the order  shown     1  Name four states a process can be in   2  What command shows the current running processes     3  What is the difference between the fork and exec system calls     email answers to  risimms cabrillo  edu       CIS 90   Lesson 11        Has the phone bridge been added         IS recording on        Does the phone bridge have the mike        Share slides  putty  rsimms  simmsben  roddyduk   and  Chrome        Disable spelling on PowerPoint       CIS 90   Lesson 11 n 11  i     vi editor      Create and modify text files   Quiz    Questions from last week    grep    Review 
13. H      z          t          iig 4 HEHH    z  z             z         HHHH       FEEFEE HEHHE             Benji tries using the keyboard to send a SIGI NT 2 using Ctrl C    but nothing happens  because app is ignoring SIGINT  45    CIS 90   Lesson 11  Signals    Benji runs app        RRERRR FEFEFE FFFES BEFFFES HHG               z    HEHE HEHHE           t   z   z   z   z      FFFFFFE FFFFF             Benji tries using the keyboard to send a SIGQUIT 3 using Ctrl      but app reacts by saying  quit it  46    CIS 90   Lesson 11  Signals    Benji runs app        home cis90 roddyduk      PID TTY TIME CMD  6657   00 00 00 sshd  6658 pts i 00 00 00 bash  7033   00 00 00 sshd  7034 pts 2 00 00 00 bash    7065 pts 2 00 00 00 app   g pts TUU    home ci   bash  kill   7065    Opera   home cis90 roddyduk S    ot permitted       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 i hi  Signals    Benji runs app                     gj simmsben opus     BRERR  R FERRER FERE ERRER Sera OO  n  B z B B     T     z    B   p   i fi  E TT   2242 E   8        H    B   B z   fi    E B E  E ecu   ES F  B   48882 gages   2 simmsbenQopus        home cis90 simmsben S ps  u simmsben  PID TTY TIME CMD   6657   00 00 00 sshd   6658 pts 1 00 00 00 bash   7033   00 00 00 sshd   7034 pts 2 00 00 00 bash    7065 pts 2 22 Da  00 app    pts  00 00 sleep    7844 pts 1 o0  ane 00_ps   home cis90 simm
14. MIN 4  39  SIGRTMIN 5 40  SIGRTMIN 6 41  SIGRIMIN 7 42  SIGRIMIN 8  43  SIGRIMIN 9 44  SIGRTMIN 10 45  SIGRTMIN 11 46  SIGRTMIN 12  47  SIGRIMIN 13 48  SIGRIMIN 14 49  SIGRTMIN 15 50  SIGRTMAX 14  51  SIGRTMAX 13 52  SIGRTMAX 12 53  SIGRTMAX 11 54  SIGRTMAX 10  55  SIGRTMAX 9 56  SIGRTMAX 8 57  SIGRIMAX 7 58  SIGRTMAX 6  59  SIGRTMAX 5 60  SIGRTMAX 4 61  SIGRTMAX 3 62  SIGRTMAX 2    63  SIGRTMAX 1 64  SIGRTMAX     home cis90 simmsben    34       CIS 90   Lesson 11    Signals  SIGHUP 1 Hangup  POSIX   SIGINT 2 Terminal interrupt  ANSI  Ctrl C  SIGQUIT 3 Terminal quit  POSIX  Ctrl A  SIGILL 4 Illegal instruction  ANSI   SIGTRAP 5 Trace trap  POSIX   SIGIOT 6 IOT Trap  4 2 BSD   SIGBUS 7 BUS error  4 2 BSD   SIGFPE 8 Floating point exception  ANSI   SIGKILL 9 Kill  can t be caught or ignored   POSIX   SIGUSR1 10 User defined signal 1  POSIX   SIGSEGV 11 Invalid memory segment access  ANSI   SIGUSR2 12 User defined signal 2  POSIX   SIGPIPE 13 Write on a pipe with no reader  Broken pipe  POSIX   SIGALRM 14 Alarm clock  POSI X   SIGTERM 15 Termination  ANSI   Use kill    to see all signals    35    CIS 90   Lesson 11  amp   FR H p       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   SIGTSTP 20 Terminal stop signal  POSIX  Ctrl Z or Ctrl F  SIGTTIN 21 Background process trying to read  from TTY  POSIX   SIGTTOU 22 Ba
15. MIN 5  SIGRTMIN 9  SIGRTMIN 13  SIGRTMAX 13  SIGRTMAX 9  SIGRTMAX 5  SIGRTMAX 1    SIGINT  SIGABRT  SIGUSRI  SIGALRM  SIGCONT  SIGTTOU  SIGVTALRM  SIGPWR  SIGRTMIN 2  SIGRTMIN 6  SIGRTMIN 10  SIGRTMIN 14  SIGRTMAX 12  SIGRTMAX 8  SIGRTMAX 4  SIGRTMAX    SIGQUIT  SIGBUS  SIGSEGV  SIGTERM  SIGSTOP  SIGURG  SIGPROF  SIGSYS  SIGRTMIN 3  SIGRTMIN 7  SIGRTMIN 11  SIGRTMIN 15  SIGRTMAX 11  SIGRIMAX J   SIGRTMAX 3         x     J i i  j  A a i 4    SIGILL  SIGFPE  SIGUSR2  SIGSTKFLT  SIGTSTP  SIGXCPU  SIGWINCH  SIGRTMIN  SIGRTMIN 4  SIGRTMIN 8  SIGRTMIN 12  SIGRTMAX 14  SIGRTMAX 10  SIGRTMAX 60  SIGRTMAX 2    101       20  Ces CIS 90   Lesson 11     E   l ru    The mystery  of Ctrl Z vs  Ctrl  F       CIS 90   Lesson 11    Signals    Special keystrokes         stty  a  Speed 38400 baud  rows 26  columns 78  line   0   intr    C  quit    N  erase       kill    U  eof    D  eol    lt undef gt    eol2    lt undef gt   swtch    lt undef gt   start    Q  stop    S  rprnt    R   werase    W  lnext    V  flush    O  min   1  time   0      rsimms opus     stty  a       speed 38400 baud  rows 39  columns 84  line   0    intr    C  quit    N  erase       kill    U  eof    D  eol    lt undef gt   eol2    lt undef gt    swtch    lt undef gt   start    Q  stop    S  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      103       CIS 90   Lessons
16. That hippie talk fer the rat hole        CIS 90   Lesson 11       http   vim wikia com wiki Main Page       li PE i                   n                     Code Life   ft Googie PELLE  OF Buen    V  Connect t COMEC bed 7  um Te    VO       Q ff   r hup  vimwikiacom wki l       Man Page    happy town beeem    m        TONIGHT 1019c 99          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       Community portal any tip  Te do Wf you are new to Vim  we have plenty of tips that will help you get  Top content  gt  started  folding catagory   We are currently editing over 1 592 articles  Searching category d    About this wiki     Create a new article   New tips  E upicsa a new image    Pobcies and how to edit  Recent changes Random page    Discussions and asking questions  Help Special pages    Create a new tip   amp Vim on Freenode i  d Information  1 592 articles on tis wad   Featured tip for April view archive   Vim documentation Links to guides  books  J Folding I           tutonals  and information on other sites  5 hours ago by JohnBeckett We all know what a tab page is     each tab holds a different file   Vim scripts Recent changes and  J Right click in Windows Actually  Vim tabs are not like that Instead  tab pages in Vim offer descnptions of featured scripts  Exploter to open gvim in much more flexib  ity  and pronde many features that are unavai
17. ckground process trying to write  to TTY  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 clock  4 2 BSD   SIGWINCH 28 Window size change  4 3 BSD  Sun   SIGIO 29   O now possible  4 2 BSD   SI GPWR 30 Power failure restart  System V    Use kill    to see all signals    36       The result of  sending a  signal to a  process       be ignored   e default action   die    e execute some  predefined  function    This running  process gets  signal 18   SIGCONT           Wo Neg CIS 90   Lesson 12    F iHa    Review of  kill command  usage    CIS 90   Lesson 11       Signal 2 s   Ctrl C  are  ignored    Jim s app script     B vinmopusonelsssolacpot T m TAN A Le in     bin sh   5     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  Z sets suspend keystroke to Ctlr Z  to stop forground processes   stty susp 8 sets suspend character to    to stop foreground processes     11 2  Iqnore SIGINT  Handle SIGQUIT     stty echo susp    Z echo ee  echo cleanup exit  15  Handle SIGTERM    banner testing  stty  echo susp            CIS 90   Lesson 11       Usage  run app with no options or parameters  Send signals to it w
18. d   fg Brings the most recent  background process to the  foreground   jobs Lists all background jobs    Use jobs  bg  fg to list and resume jobs in    the foreground or background 58    CIS 90   Lesson 11       Job Control  A feature of the bash shell    When a process is running   status R  the user can stop it      status  T  and choose whether it     es   runs in the background or j  foreground           Running in  Background    59       CIS 90   Lesson 11 41  ru    Job Control  A feature of the bash shell      Command               Command  amp  24  X Running in  j Foreground    N        s Ctrl F  CIS 90 students     A Ctrl Z  everyone else        Running in  Background    Stopped       Use the jobs command to view 60  stopped and background jobs    PHa    Job Control    Find out with keystroke combination is configured  to suspend a process     home cis9001 simmsben   stty  a   speed 38400 baud  rows 24  columns 80  line   0    intr    C  quit    N  erase       kill    U  eof    D  eol    lt undef gt     eol2    lt undef gt   swtch    lt undef gt   start    Q  stop    S  susp    F  rprnt    R   werase    W  lnext    V  flush    O  min   1  time   0     parenb reo esc sur EC SIE DSL Cr  e o E er Usictg Sie chis   rni nk 4 sie Tit ab qon 1  gt a amick MD Ke SCIE nc 1 P Om  es dear r4 mec Om nx ef fe  savoie e DN    ester uolo x la e ss Lute iS   Op esis    olcuc    ocEn lIMonlcre   onocr onde os MS ofi c est   da ees Qe ato DNS SOL voc 0m tO  isig icanon iexten echo echo
19. dd your gen custom words     How to add words  to your dictionary          ANA  Testing vins PAN personal Scenery a Nase   rn emm angel       Wf your language in Engish  create a fie in your hone Grectery cated  spelen per          personal 1   em     less   CERTES           name If VO your language i is English  create a file in your home directory    Trackback URL for this po    wwe   Called  aspell en pws                fat acey   oe  Dore       personal ws 1 1 en 0  Samat    quasirhombicosidodecahedron    Googling  linux aspell personal dictionary    yields this page    Bingo  Thank you Samat Jain 91       CIS 90   Lesson 11 41  ru    spell command     home cis90 roddyduk edits   ed    home cis90 roddyduk   echo  personal ws 1 1 en 0   gt   aspell en pws   home cis90 roddyduk   echo  CIS        aspell en pws   home cis90 roddyduk   cd edits     home cis90 roddyduk edits   spell text    home cis90 roddyduk edits      This is how you would add your own custom  dictionary to be used with spell checks    92       CIS 90   Lesson 11    CIS 90   Lesson 11       New commands   vi Run vi editor    New Files and Directories   na na    94       CIS 90   Lesson 11    FR 11 ru    Next Class  Assignment  Check Calendar Page on web  amp   i   SS  site to see what is due next week  eo       esq  Quiz questions for next class  we e      How do you send a 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 v
20. e cis90 roddyduk   jobs        1   Done       C PR NI ADDR SZ  0 76 0   1165  0 78 0   927  0 78 0  1051  sleep 60    WCHAN  wait  finish    WCHAN  wait  322800    TTY   pts 0  pts 0  pts 0    TTY   pts 0  pts 0  pts 0    00   00   00     00   00   00           IME  00   00   00     00  00  00    IME  00   00   00     00  00  00    CMD  bash  sleep  ps       CMD  bash  sleep  ps       Instead of using bg to resume a stopped process  in the backgroud  lets use a kill signal instead    99    CIS 90   Lesson 11  amp   FR H p       SIGSTKFLT  SIGCHLD  SIGCONT  SIGSTOP  SIGTSTP  SIGTTIN  SIGTTOU  SIGURG  SIGXCPU  SIGXFSZ  SIGVTALRM  SIGPROF  SIGWINCH  SIGIO  SIGPWR    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   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    I O now possible  4 2 BSD    Power failure restart  System V     Use kill  I to see all signals       CIS 90   Lesson 11    Signals    Use kill  1 to see all of them     home cis90 roddyduk   kill  I    L     SIGHUP  SIGTRAP  SIGKILL  SIGPIPE  SIGCHLD  SIGTTIN  SIGXESZ  SIGIO  SIGRTMIN 1  SIGRT
21. e display of characters typed   stty echo makes typed characters visible again   stty susp  Z sets suspend keystroke to Ctlr Z  to stop forground processes   stty susp 8 sets suspend character to    to stop foreground processes    z   trap    2 Ignore SIGINT   trap    echo  n quit it     3  Handle SIGQUIT     e de ode de ce che ce oc e che eo     stty echo susp  Z echo ee  echo cleanup exit  15  Handle SIGTERM          Endless  loop    CIS 90   Lesson 11       Jim s app script    IEP imsopusomeiosordegor T TAN l  E ited     bin sh   5     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  Z sets suspend keystroke to Ctlr Z  to stop forground processes   stty susp 8 sets suspend character to    to stop foreground processes   z  trap    2 Ignore SIGINT  trap    echo  n quit it     3  Handle SIGQUIT     stty echo susp    Z echo ee  echo cleanup exit  15  Handle SIGTERM    banner testing  stty  echo susp 8          CIS 90   Lesson 11  Signals    Benji runs app        a simmsben opus    PRERER  R FERREE FERFE PEEEEERO Seret            B  gt   LIII  LIII I                      z             FEEFEE HEHHE             Benji logs in and runs app    uh oh  its stuck    44       CIS 90   Lesson 11  Signals    Benji runs app     a simmsben opus      88RER   SSSSFES PEFFE FFFFFSE HHH
22. e echok  echonl  noflsh  xcase  tostop  echoprt  eclesia eitke    home cis9001 simmsben                     In this case it is Ctrl F that will be used to suspend a process    How is yours configured           CIS 90   Lesson 11    Job Control  Managing jobs     home cis9001 simmsben   sleep 120  Ctrl Z or Ctrl F  to suspend process     1   Stopped Sleep   home cis9001 simmsben   sleep 110  Ctrl Z or Ctrl F  to suspend process     2   Stopped Sleep   home cis9001 simmsben   sleep 100  Ctrl Z or Ctrl F  to suspend process      3   Stopped sleep   home cis9001 simmsben   jobs    1  Stopped sleep   2   Stopped Sleep   3   Stopped sleep    120    110    100    120  110  100    Lets start up 3 sleep  commands and  suspend each of them     Note  The sleep  command is a simple  Way to run a  command that will  take awhile to finish     sleep 120 will last    120 seconds before it  IS finished     62    CIS 90   Lesson 11       Job Control  Managing jobs     home cis900o1 simmsben   jobs     1  Stopped sleep 120   2   Stopped Sleep 110   3   Stopped sleep 100     home cis90ol simmsben   ps  1    F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD   0 S 1082 5364 5363 0 75 O     1168 wait pts 2 00 00 00 bash  0 1082 5452 5364 0 75 0   929 finish pts 2 00 00 00 sleep  0 1082 5453 5364 0 75 0   929 finish pts 2 00 00 00 sleep  0 1082 5454 5364 0 75 0   929 finish pts 2 00 00 00 sleep  O R 1082 5459 5364 0 77 0   1054   pts 2 00 00 00 ps    Note  all three processes are sTopped    63   
23. ed job in the background     1   Stopped   rsimms opus     bg   1   sleep 5  amp    rsimms opus                  rsimms opus     sleep 5    CIS 90   Lesson 11    Job Control  A feature of the bash shell    rsimms opus     ps  1          UI  PID 7728 dn  is gone 201       F  5  0  5  0  0        201  201  rsimms opus        S  S  S  S 201  S  S  R    D          PID  5368  5369  6203  6204  7742             PPID  5365  5368  6200  6203  5369          C  0  0  0  0  0     u rsimms       PR       N          75  76  75  75  78    D          DR SZ WCHAN    2460                        165 wait  2491  1165    1061    TEY  5    pts 0  a    pts 6  pts 0       E  4              j  4  1 J    bg resumes the sleep command          106    CIS 90   Lesson 11  Signals    Jim s app script    WB simmsQopusnome cso depot SIEUT Tm m m   es imn        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  Z sets suspend keystroke to Ctlr Z  to stop forground processes   susp   sets suspend character to 8  to stop foreground processes        2  ignore SIGINT     echo  n quit it   3  Handle SIGQUIT   stty echo susp  Z2 echo ee  echo cleanup exit  15  Handle SIGTERM    banner testing  stty  echo susp  amp        one    N this is why Cntl F  suspend  stopped  working and we had to use Ctrl Z     
24. home cis90 roddyduk               A command like sort is  a program when it is  stored on the drive  It  is a process when it is        duke stdin    copied to memory by  benji the kernel and either stderr  star running or waiting to    homer run  xi       CIS 90   Lesson 11          example program to process      ls  1  bin p gws     gt   dev null    Note  Is gets its  input from the  command line and  the OS  kernel  and  writes to stdout   redirected to    dev null  and  stderr        Em    stdin directory contents are read  using the kernel       stderr    20       CIS 90   Lesson 11       Process Lifecycle    PID  582 PID  582                                           PPID  501                              PID  501 PID  501       PPID  250 PPID  250 PPID  250    21    CIS 90   Lesson 11 22 11 ru       Process Lifecycle    PID  582    Child process  different PI D         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 PI D  22    CIS 90   Lesson 11   LE 11 ru       Process Lifecycle    PID  582 PID  582       PPID  501          PID  501 PID  501       PPID  250 PPID  250    2  An exec system call is issued to overlay the child process with the  instructions of the requested command  The ne
25. i commands are used for copy and paste     95       CIS 90   Lesson 11    CIS 90   Lesson 11        home cis90 roddyduk   bash                                                                                                                                                        roddyduk opus     bash   roddyduk opus     bash   roddyduk opus     ps   PID TTY TIME CMD H  11198 pts 6 00 00 00 bash Parent and child  11233 pts 6 00 00 00 bash  11257 pts 6 00 00 00 bash  11284 pts 6 00 00 00 bash  11309 pts 6 00 00 00 ps   roddyduk opus  1   ps  1  FS UID PID PPID C PR NI ADDR SZ WCHAN  TTY TIME CMD  O S 1000 11198 11197 0 75 D  1165 wait pts 6 00 00 00 bash  O S 1000 11233 11198  0 75 0  1166 wait pts 6 00 00 00 bash  O S 1000 11257 11233 0 75 D      1166 wait pts 6 00 00 00 bash  0 S 1000 11284 11257 0 75 0  1165 wait pts 6 00 00 00 bash  O R 1000 11312 11284 0 77 D   1051   pts 6 00 00 00 ps   roddyduk opus     exit  exit   roddyduk opus     exit  exit   roddyduk opus     exit  exit   home cis90 roddyduk   ps  1  FS UID PID PPID C PR NI ADDR SZ WCHAN  TTY TIME CMD  O S 1000 11198 11197 0 75 0   1165 wait pts 6 00 00 00 bash  O R 1000 11263 11198 0 77 0    LOS ES pts 6 00 00 00 ps                             home cis90 roddyduk    97       PAD DRPD O0 t    0                                                                                                                          roddyduk opus     sleep 60   1   Stopped sleep 60   roddyduk opus     sleep 90   2   Stopped sleep 90   r
26. inning of line  REPLACE undo lant chang     fod tat fare and ca bak ward rege ss Lasts Range       And sext line the warts AROUND    dh tot wt move to lime      search bakward  f    L  amp  4 dr rigis  ap down  show     heiter right      s taat from current ORA F bat  f  in ICm U  D ap  dom       CIS 90   Lesson 11        bin mail and vi     home cis90 simmsben   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  n  Later    Ben    You are composing a message and you spot some typos      CRUD     what can you do     82    CIS 90   Lesson 11        bin mail and vi     home cis90 simmsben   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  und  Later    Ben    Well     you could try the  v command    83    CIS 90   Lesson 11    I really appreciate thatbone you sent me last week   Let me knwo if you want to go mark some fench posts  this weekend                                   te         tmp ReqY2d2b  6L  141C    EL ss    The message is loaded into vi where changes or additions can  be made   wq is used to save and quit vi    84       CIS 90   Lesson 11   RE  ail     bin mail and vi     home cis90 simmsben   mail roddyduk   Subject  Good bones   Hey Duke    I really appreciate thatbone you sent me last week   Let me knwo if you want to go mar
27. ith keystrokes or kill command    Notes    stty  echo stop the display of characters typed   stty echo makes typed characters visible again   stty susp  Z sets suspend keystroke to Ctlr Z  to stop forground processes   stty susp 8 sets suspend character to    to stop foreground processes     Signal 3 s i   i   Cntrl    print    quit it echo cleanup exit  15  Handle SIGTERM    message banner testing    stty  echo susp            CIS 90   Lesson 11       Signal 15 s  close  gracefully    Jim s app script    IEP imsopusomeiosordegor T TAN l  E ited     bin sh   5     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  Z sets suspend keystroke to Ctlr Z  to stop forground processes   stty susp 8 sets suspend character to    to stop foreground processes     9 Ignore SIGINT     echo  n quit it     3  Handle SIGQUIT  15  Handle SIGTERM    banner testing  stty  echo susp    sleep i   one             Redefines the  keystroke to  suspend     job and move  it to the  background    CIS 90   Lesson 11    Jim s app script    ME rsimms opus home cis90 depot    v     mr                  ae  M  D  b  i    M  u   2    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 th
28. k some fench posts  this weekend    Later    Ben    V    continue     Cas   home cis90 simmsben      The earlier text with typos is still showing  however the  corrected version is what is actually sent     85       CIS 90   Lesson 11 RI     bin mail and vi     home cis90 roddyduk   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 1    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         qm F      s    A Tangent  on Spell       CIS 90   Lesson 11 Siena    spell command     home cis90 roddyduk edits   cat text  Welcome to the CIS 90 class        home cis90 roddyduk edits   spell text  CIS    spell command flags CIS as misspelled word     How can we add CIS to the dictionary     88    CIS 90   Lesson 11 22 11 ru       spell command     home cis90 roddyduk edits   cat text   Welcome to the CIS 90 class    How can We add CIS   home cis90 roddyduk edits   spell text to the dictionary   CIS     home cis90 roddyduk edits   man spell Hmmm  No man page  No manual entry for spell for spell          
29. lable   Vim news News from this wiki and wm org  explorer mode with standard editors    How to report spam  fi hours aan fy loheRecken      s a anda lias aud fies  eds         Tips and tricks for VIM users 80    CIS 90   Lesson 11       The Mug of vi    T  The Mug of Vi   Mozilla Firefox   n   p    EE     gr E Tec x    p    Ele Edit View Higtory Bookmarks Tools Help    G    C X         mtp  nostachcom mughtm uou                Diable  S Cookies J CSS  TI Forms S Images     J Information  9 Miscellaneous 5    Outlines       Resize  J    Tools    te  View Source  Options  KOO      Cabrillo College Home Page x      y   0 unread  Yahoo  Mail richsimms x       The Mug of Vi x     gt  Sams Publishing   Contact Us x            O NO STARCH PRESS     the finest in geek entertainment           The Mug of Vi  12 ounces  heavy duty         7         Coo dem     12 95  G Og tap tons mh SES   a n E  pe pepe tue bonet le tp     Ordern e  c AN     meom e owe P  I    S Cuir G Coct JOs T Forme Tya D iterator ee y Odi   4 inor D Toute Go Ve toute   Opto Koo          Hydratio    Cotto Codage Home Poga  o I D omms Tahoe biel cbe 5     Bu Mog Latai   bomn Petang Creet Us       ChCk on the image to return to Mus af Vi man page     PILE COMMANDS   DELETING  INSERTING  Jeheto weer  b ehe EI    delete charmar forward  bkan          repkace sext wah blank line pute text after  Lelore cursor    insert now bene bobo sbarre insert teat ators  telor carsat  e na cmd ated mer cost per   insert text end  beg
30. oddyduk opus     ps  1f  S UID PID PPID C PR NI ADDR SZ  S roddyduk 11529 11528 0 75 0  1165  S roddyduk 11560 11529 0 75 0   X65  S roddyduk 11584 11560 0 75 0  1166  S roddyduk 11608 11584 0 75 0  1166  T roddyduk 11796 11608 0 75 0     926  0  T roddyduk 11798 11608 0 75 0   926  0  R roddyduk 11803 11608 0 77 0  1062  roddyduk opus     jobs   1   Stopped sleep 60   2   Stopped sleep 90   roddyduk opus     bg   2   sleep 90  amp    roddyduk opus     jobs   1   Stopped sleep 60   2   Running sleep 90  amp    roddyduk opus     kill  18 11796   roddyduk opus     jobs   1   Done sleep 60   2   Running sleep 90  amp     Lesson 11    Resume stopped jobs with  bg and kill  18                WCHAN STIME TTY TIME CMD  wait 09 36 pts 6 00 00 00  bash  wait 09 36 pts 6 00 00 00 bash  wait 09 36 pts 6 00 00 00 bash  wait 09 36 pts 6 00 00 00 bash  finish 09 49 pts 6 00 00 00 sleep  finish 09 49 pts 6 00 00 00 sleep    09 49 pts 6 00 00 00 ps  1f    98       CIS 90   Lesson 11     home cis90 roddyduk   sleep 60    Ctrl F typed here                                      1   Stopped sleep 60   home cis90 roddyduk   ps  l   FS UID PID PPID C PR NI ADDR SZ  O S 1000 10705 10704 0 75 D   1165  O T 1000 10737 10705 0 84 0 e 927  O R 1000 10739 10705 0 77 0    TOs                    home cis90 roddyduk   kill  18 10737   home cis90 roddyduk   ps  l       FS UID PID  0 S 1000 10705  0 S 1000 10737                      PPID  10704  10705                0 R 1000 10741    10705                 hom
31. on processes    vi    Wrap up        hands on exercise for topic 5        qm F      s    Housekeeping       40 Coes CIS 90   Lesson 11 LEE 11 ru    Previous material and assignment      Questions       Lab 8 due at midnight   at 11 59pm   at   cat files out bigshell  gt  labO8   at   cp lab08   home  rsimms  turnin  lab08  LOGNAME  at   Ctrl D Don t wait till midnight tonight to see if this  worked  Test with an earlier time       Note  Lab 9 and five posts due next  week       CIS 90   Lesson 11    grep       CIS 90   Lesson 11 E 11 ru  grep usage    What is my account information in  etc passwd      home cis90 simmsben   grep  LOGNAME   etc  passwd    simmsben x 1200 90 Benji Simms  home cis90 simmsben  bin bash  or     home cis90 simmsben   grep simmsben   etc  passwd  simmsben x 1200 90 Benji Simms  home cis90 simmsben  bin bash    or     home cis90simmsben   cat   etc  passwd   grep  LOGNAME    simmsben x 1200 90 Benji Simms  home cis90 simmsben  bin bash    My user account is simmsben  my password is kept in  etc shadow  my user  ID is 1200  my primary group ID is 90  my full name is Benji Simms  my  home directory is  home cis90 simmben  my shell is  bin bash    CIS 90   Lesson 11 RI       grep usage    Is the CUPS daemon  print service  running right now      home cis90 simmsben   ps  ef   grep cups    root 3365 1 0 Sep28   00 00 00 cupsd  simmsben 20598 20540 0 08 19 pts 1 00 00 00 grep cups  root 31822 1 0 Nov02   00 00 00 eggcups   sm client id default4    Yes it i
32. ou miss church on Sunday and someone sends youa get well card   Someone asks you how you feel and then listens to what you say     Thank God for small towns    and the people who live in them     In Lab 9 you  clean up this  text file       FE D a    vi activity    Technology for Mountain Folk    0 I HOU i  amp  NH    LOG ON   LOG OFF   MONITOR   DOWNLOAD     MEGA HERTZ   FLOPPY DISC   RAM   HARD DRIVE   PROMPT   WINDOWS    SCREEN    BYTE   CHIP   MICRO CHIP   MODEM   DOT MATRIX   LAP TOP   KEYBOARD   SOFTWARE   MOUSE   MAINFRAME    PORT    ENTER      Makin a wood stove hotter    Don t add no more wood    Keepin an eye on the wood stove    Gettin the farwood off the truk    When yer not kerful gettin the farwood    Whatcha git from tryin to carry too much farwood    That thar thing whut splits the farwood    Gettin home in the winter time  In Lab Q you  Whut the mail ain t in the winter time    Whut to shut when it s cold outside  clean Up  Whut to shut when it s blak fly season     Whut them dang flys do  and Sort this  Munchies fer the TV  text file    Whut s in the bottom of the munchie bag   Whut cha did to the hay fields    Old Dan Matrix s wife    Whar the kitty sleeps    Whar ya hang the dang keys    Them dang plastic forks and knifs    Whut eats the grain in the barn    Holds up the barn roof    Fancy Flatlander wine    Northerner talk few  C mon in y all     RANDOM ACCESS MEMORY  Wen ya cain t  member whut ya paid fer the rifle    MOUSE PAD     when yore wife asks   
33. rocess which runs till it is finished    111       Cabs Coes CIS 90   Lesson 11 E 11 ru    Instead of using bg to resume a stopped process in the background  lets  try a SIGCONT  signal 18  instead     home cis90 roddyduk   sleep 60  Ctrl F  or Ctrl Z  typed here                                                              1   Stopped sleep 60    home cis90 roddyduk   ps  l   FS UID PID PPID C PR NI ADDR SZ WCHAN  TTY TIME CMD   O S 1000 10705 10704 0 76 0   1165 wait pts 0 00 00 00 bash  oBll 1000 10743 10705 0 75 0   926 finish pts 0 00 00 00 sleep  OR 1000 10744 10705 0 78 D  1051   pts 0 00 00 00 ps     home cis90 roddyduk   jobs    1   Stopped sleep 60   home cis90 roddyduk   kill  18 10743   home cis90 roddyduk   jobs                                                                                1   Running sleep 60  amp    home cis90 roddyduk   ps  l  FS UID PID PPID    ER NI ADDR SZ WCHAN TTY TIME CMD  O S 1000 10705 10704 0 75 0  1165 wait pts 0 00 00 00 bash  om 1000 10743 10705 0 85 0   926 322800 pts 0 00 00 00 sleep  OR 100010746 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 112    resume a stopped process    CIS 90   Lesson 11       Signals      Run and suspend two jobs  sleep 60  Ctrl F  or Ctrl Z   sleep 90  Ctrl F  or Ctrl Z    Use jobs to see them  
34. rogram that has been loaded into memory  and is either running  executing instructions  or waiting to run    31       CIS 90   Lesson 11 z 4 11 ru    Signals    T 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     32       CIS 90   Lesson 11 RA  FR 1  ru    Signals    T 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    kill    PID  e Where   is the signal number and PID is the process id   e if no number is specified  SIGTERM   15  is sent     REGIE Using special keystrokes  Hie EH   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 M   11 ru    Signals  Use kill  I to see all of them    home cis90 simmsben   kill  1   1  SIGHUP 2  SIGINT 3  SIGQUIT 4  SIGILL   5  SIGTRAP 6  SIGABRT 7  SIGBUS 8  SIGFPE   9  SIGKILL 10  SIGUSRI 11  SIGSEGV 12  SIGUSR2   13  SIGPIPE 14  SIGALRM 15  SIGTERM 16  SIGSTKFLT  173 SIGCHLD 18  SIGCONT 19  SIGSTOP 20  SIGTSTP  21  SIGTTIN 22  SIGTTOU 23  SIGURG 24  SIGXCPU  25  SIGXFSZ 26  SIGVTALRM 27  SIGPROF 28  SIGWINCH  29  SIGIO 30  SIGPWR 31  SIGSYS 34  SIGRTMIN  35  SIGRTMIN I 36  SIGRTMIN 2 37  SIGRTMIN 3 38  SIGRT
35. rsor 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  1G 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 a number in front of these commands and notice what happens n       CIS 90   Lesson 11 un E 11 ru    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      q exits vi if you have saved your changes    q  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 in the contents of filename starting from  the cursor position    e filename replaces the current content with the content  from filename    74    CIS 90   Lessons E EB BET 0       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 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 charac
36. s  with 3365    10    CIS 90   Lesson 11       grep usage    Is Samba  File and Print services  installed      home cis90 roddyduk   rpm  qa   grep samba  system config samba 1 2 39 1 e615  samba client 3 0 28 1 e15 2 1  samba 3 0 28 1 e15 2 1  samba common 3 0 28 1 e15 2 1   home cis90 roddyduk      Yes  the client  server and common packages have been  installed already    CIS 90   Lesson 11       grep usage    How many CIS 90 user accounts are there      home cis9001 simmsben   grep cis90   etc  passwd   wc  I   56    home cis9001 simmsben   grep   cis90     etc  passwd   wc  I  31    home cis9001 simmsben   grep   cis900l     etc  passwd   wc  I  25    There are 56  31 for the regular section and another 25  for the online section       A      CIS 90   Lesson 11 m n  grep usage  Which shell is the biggest  Lab 8       home cis90 simmsben   Is   bin  sh    bin bash  bin csh  bin jsh  bin ksh   bin rbash   bin sh   bin tcsh   home cis90 simmsben   csh    simmsben opus     bash    simmsben opus     sh    sh 3 2  jsh   Enter Command  ksh     ps  I   F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD   O S 1200 20540 20539 0 75 O   1168 wait pts 1 00 00 00 bash  O S 1200 20618 20540 0 75 0   1330 rt Sig pts 1 00 00 00 csh  O S 1200 20639 20618 0 75 0   1169 wait pts 1 00 00 00 bash  O S 1200 20663 20639 0 75 0   1167 wait pts 1 00 00 00 sh   O S 1200 20666 20663 0 75 0    380 wait pts 1 00 00 00 jsh  O S 1200 20669 20666 0 76 O   1236 wait pts 1 00 00 00 ksh  O R 1200 20673 
37. s the case of the current character       s  string1  string2  g replaces all string1 with string2 in the file    TI    vi activity    HOW SMALL IS SMALL     YOU KNOW WHEN YOU RE IN A SMALL TOWN WHEN     The airporttttt runaway is terraced   The polka is more popular ththanan a mashpit on on Saturday noght   Third Street is on the edge of town    Every sport is played on dirt   The editor and publisher of the newspaper carries a camera at all times   You don t use your turn signal because everyone knows where you are   going knows where you are going     YOU KNOW YOU RE IN A SMALL TOWN WHEN      You are born on June 13 and  your family receives gifts from the local merchants because you are the first  baby of the year    You speak to each dogg you pass by name and he wags at you    You dial a wrong number and talk for 15 minutes anyway    You are run off Main Street by a combine     Reprinter from the Ayshire Empire News    XXXXX  You cna t walk for exercise because every car that passes you offers you a  ride   You get married and the local paper devotes a quarter page to the story   You drive into a ditch 5 miles out of town and the word gets back to town  before you do     YOU KNOW YOU RE IN A SMALL TOWN WHEN      YOU KNOW YOU RE IN A SMALL TOWN WHEN      YOU KNOW YOU RE IN A SMALL TOWN WHEN     The biggest busssssiness on town sells farm machinery   You write a check on the wrng bank and it covers you anyway   The pickups on Main Street outnumber the cars three to one   Y
38. s90 roddyduk   jobs The jobs command lists processes   home cis90 roddyduk   atq running or suspended in the background   25 2008 11 12 14 09 a roddyduk   ag COUPLES LEZ 02 94 a roddyduk    The xta command lists jobs queued to  27 2008 11 19 12 10 a roddyduk vun in the future   26 2008 11 12 16 00 a roddyduk   24 2008 11 12 12 14 a roddyduk     home cis90 roddyduk   atrm 24   home cis90 roddyduk   atq    25 2008 11 12 14 09 a roddyduk    28 2008 12 12 03 00 a roddyduk odiis iudice IS  27 2008 11 19 12 10 a roddyduk  US   Q to remove Jobs  26 2008 11 12 16 00 a roddyduk from the queue     home cis90 roddyduk      70       CIS 90   Lesson 11    PtH    VI  Making a script    In your bin directory  create a file called color and add the following    lines     echo  read  echo  read  echo     n  What is your name      NAME    n  What is your favorite color      COLOR    Hi SNAME  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          CIS 90   Lesson 11 S TER mm    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   I 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 cu
39. sben S kill  2 7065   home cis90 simmsben S       Benji logs into another Putty session and sends  a SIGINT 2 using the kill command     but 48  nothing happens       CIS 90   Lesson 11          Signals  Benji runs app    simmsben opus   EXICI X  KEREN FFFSFSE FEFFE FERREE HERE F FF FFF  5   5 E z z   5                       z    z HEHHE HEHHE          5        b       3329 digi            quit itiquit itiquit iti                  All         home cis90 simmsben S  kill  3 7065   home cis90 simmsben S        w Benji ups the ante and sends several SIGQUIT 3s but the   app process shrugs them off with two  quit it   messages    p          CIS 90   Lesson 11    di   Signals    Benji runs app                       FERREE FFFFSFS SERA SERA PEERS        z        z   z  HEHE EHHH z    z          z        z         998 FFFFF     b e o de ode one    quit it quit it quit it ee  cleanup   home cis90 simmsben S ri           i i     home cis90 simmsben S kill  15 7065    J  home cis90 simmsben S            PP Benji decides to send a SIGTERM this time and the app    Ww process finishes  cleans up and exits          CIS 90   Lesson 11       Signals    Benji runs app                        FRS Serui SARA SARA FFFFF F        z   E   Li        E     EH            z HEHHE HH E        5       t t   simmsben opus        in   g     Dome cis90 simmsben   ps  u simmsben       PID TTY CMD  6657    00  sshd  6658 pts 1  00  bash  7033    00  sshd  7034 pts 2  00  bash  8237 pts 2  00  app  8279 pts 2 
40. ters 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 current 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    75    CIS 90   Lesson 11 ER 11 ru       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     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 in the clipboard buffer above the current cursor    76       CIS 90   Lesson 11 Da E 11 ru    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    r Undo the undo  redo      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     Change
41. w instructions then are  executed     The parent process issues the wait system call and goes to sleep   23    CIS 90   Lesson 11       Process Lifecycle    PID  582 PID  582       PPID  501                               j                         Pd          PID  501 PID  501                                  o           PPID  250 PPID  250 PPID  250    3  When the child process finishes executing the instructions it issues the exit  system call  At this point 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  24    CIS 90   Lesson 11       Process Lifecycle    PID  582 PID  582                                   j       PPID  501                   Pd          PID  501 PID  501 x oU    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     25       CIS 90   Lesson 11    Process Information    Use  1 for additional options     rsimms opus     pS  l  FS UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD  O S 201 6204 6203 0 75 0  1165 wait  pts 6 00 00 00 bash  OR 201 6521 6204 0 77 0  1050   pts 6 00 00 00 ps  pu  V ue ds ae Size in 1K blocks  User ID    Running or sleeping    26       CIS 90   Lesson 11  S LR H ru    Process Lifecycle             PID  6521 PID  6521  Running the 
42. xits vi if you have saved your changes   q  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 in the contents of filename starting from  the cursor position   e filename replaces the current content with the content  from filename   116    CIS 90   Lesson 32    E EB BE 0       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    117    CIS 90   Lesson 11 ER 11 ru       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 
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
GS1910/XGS1910 Series User's Guide - Server 2  Rexel RX06131  取扱説明書 設置工事編  König KN-HDMIREP15  125 mm 9005B 125 mm 9005BS 150 mm 9006B  Skyworth LCD-19L3F User's Manual  防滴形2ウェイスピーカー  Fibras Ópticas  Dosímetros de Ruido - sg equipamientos industriales  Page 1 pe inîemaiionai d`expeńs ei ne représenâe pas    Copyright © All rights reserved. 
   Failed to retrieve file