Previous Section  < Day Day Up >  Next Section

LAB 39: JOB CONTROL

  1. At the command line type the following:

    
    mail <user>Press Ctrl-z
    
    

    Now type:

    
    jobs
    
    

    What is the number in the square brackets?

  2. Now type:

    
    sleep 300
    
    jobs
    
    bg
    
    

    What does bg do? What do the + and – signs indicate?

  3. Kill the mail job using job control.

  4. Go into the editor. Type ^Z to stop the job. Now bring the stopped vi job back into the foreground. What command did you type?

  5. Type the following command:

    
    jobs –l
    
    

    What is the output?

  6. What is the TMOUT variable used for?

  7. How much time was spent by the kernel when executing the following command:

    
    (sleep 5 ; ps –eaf )
    
    

    Previous Section  < Day Day Up >  Next Section