Difference between revisions of "Tutorial7: Links / Process Management"

From CDOT Wiki
Jump to: navigation, search
(LINUX PRACTICE QUESTIONS)
(LINUX PRACTICE QUESTIONS)
Line 117: Line 117:
 
# Write a single Linux command to display running processes in “real-time”.
 
# Write a single Linux command to display running processes in “real-time”.
 
# Write a single Linux command to terminal a process that has the following PID: '''22384'''
 
# Write a single Linux command to terminal a process that has the following PID: '''22384'''
# Use the following diagram to answer the accompanying questions.<br>Each of the following questions will use the diagram below and are treated as independent situations.<br><br><span style="font-family:courier;font-weight:bold;">[1]  Stopped                vim a<br>[2]-  Stopped                vim b<br>[3]+  Stopped                vim c/span><br><br>Write a single Linux command to bring the second-recently process placed in the background into the foreground.<br>Write a single Linux command to terminate the '''job #3''''''Bold text'''.<br><br>
+
# Use the following diagram to answer the accompanying questions.<br>Each of the following questions will use the diagram below and are treated as independent situations.<br><br><span style="font-family:courier;font-weight:bold;">[1]  Stopped                vim a<br>[2]-  Stopped                vim b<br>[3]+  Stopped                vim c</span><br><br>Write a single Linux command to bring the second-recently process placed in the background into the foreground.<br>Write a single Linux command to terminate the '''job #3'''.<br><br>
 
# Create a '''table''' listing each Linux command, useful options  and command purpose for the following Linux commands: '''ln''' , '''ps''' , '''top''' , '''fg''' , '''bg''' , '''jobs''' , '''kill'''
 
# Create a '''table''' listing each Linux command, useful options  and command purpose for the following Linux commands: '''ln''' , '''ps''' , '''top''' , '''fg''' , '''bg''' , '''jobs''' , '''kill'''
  
  
 
[[Category:ULI101]]
 
[[Category:ULI101]]

Revision as of 09:16, 30 January 2020

LINKING FILES / MANAGING PROCESSES


Main Objectives of this Practice Tutorial

  • x
  • x
  • x
  • x

Tutorial Reference Material

Course Notes
Concepts / Commands
YouTube Videos
Course Notes:


Links
  • Hard Links
  • Symbolic Links

Managing Processes

  • Process Information
  • Manipulating Processes
  • Running commands / programs in background with &


Linux Commands Instructional Videos:
  • x

KEY CONCEPTS

Linking Files

x

Hark Links:

x


Symbolic Links:

x


Managing Processes

x

INVESTIGATION 1: LINKING FILES


In this section, you will learn how to ...



Perform the Following Steps:

  1. x

In the next investigation, you will ...

INVESTIGATION 2: MANAGING PROCESSES

In this section, you will learn how to ...


Perform the Following Steps:

  1. x

In the next investigation, you will ...


LINUX PRACTICE QUESTIONS

The purpose of this section is to obtain extra practice to help with quizzes, your midterm, and your final exam.

Here is a link to the MS Word Document of ALL of the questions displayed below but with extra room to answer on the document to simulate a quiz:

https://ict.senecacollege.ca/~murray.saul/uli101/uli101_week8_practice.docx

Your instructor may take-up these questions during class. It is up to the student to attend classes in order to obtain the answers to the following questions. Your instructor will NOT provide these answers in any other form (eg. e-mail, etc).


Review Questions:

  1. Write a single Linux command to create a hard link called ~/backup/myfile.txt.lnk to the existing file called ~/myfile.txt
    Write a single Linux command to display detailed information for those files above displaying their i-node numbers.
    In this case, will the inode numbers for those files above be the same or different?

  2. Write a single Linux command to create a symbolic link called ~/shortcuts/murray.saul.lnk to the existing directory called ~murray.saul
    Write a single Linux command to display detailed information for those files above displaying their i-node numbers.
    In this case, will the inode numbers for those files above be the same or different?

    What data is contained in the file called ~/shortcuts/murray.saul.lnk?
    What would be the size of the file called ~/shortcuts/murray.saul.lnk?

  3. Write a single Linux command to run the program called ~/clean.sh in the background.
    What command would you issue to place the previously issued program in the foreground?
    What command would you issue to confirm that this program is running in the background?
    What key-combination would you issue to send that program again into the background?

  4. Write a single Linux command to display running processes in “real-time”.
  5. Write a single Linux command to terminal a process that has the following PID: 22384
  6. Use the following diagram to answer the accompanying questions.
    Each of the following questions will use the diagram below and are treated as independent situations.

    [1] Stopped vim a
    [2]- Stopped vim b
    [3]+ Stopped vim c


    Write a single Linux command to bring the second-recently process placed in the background into the foreground.
    Write a single Linux command to terminate the job #3.

  7. Create a table listing each Linux command, useful options and command purpose for the following Linux commands: ln , ps , top , fg , bg , jobs , kill