Difference between revisions of "Tutorial7: Links / Process Management"
(→LINUX PRACTICE QUESTIONS) |
(→LINUX PRACTICE QUESTIONS) |
||
Line 112: | Line 112: | ||
'''Review Questions:''' | '''Review Questions:''' | ||
− | # | + | # Write a single Linux command to create a hard link called '''~/backup/myfile.txt.lnk''' to the existing file called '''~/myfile.txt'''<br>Write a single Linux command to display detailed information for those files above displaying their i-node numbers.<br>In this case, will the inode numbers for those files above be the same or different?<br><br> |
− | # | + | # Write a single Linux command to create a symbolic link called '''~/shortcuts/murray.saul.lnk''' to the existing directory called '''~murray.saul'''<br>Write a single Linux command to display detailed information for those files above displaying their i-node numbers.<br>In this case, will the inode numbers for those files above be the same or different?<br><br>What data is contained in the file called ~/shortcuts/murray.saul.lnk?<br>What would be the size of the file called ~/shortcuts/murray.saul.lnk?<br><br> |
− | # | + | # Write a single Linux command to run the program called ~/clean.sh in the background.<br>What command would you issue to place the previously issued program in the foreground?<br>What command would you issue to confirm that this program is running in the background?<br>What key-combination would you issue to send that program again into the background?<br><br> |
− | # | + | # 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 |
− | # | + | # 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.<br><br>[1] Stopped vim a<br>[2]- Stopped vim b<br>[3]+ Stopped vim c<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 that were mentioned in the online assignment #1 and command purpose for the following Linux commands: '''ln''' , '''ps''' , '''top''' , '''fg''' , '''bg''' , '''jobs''' , '''kill''' | # Create a '''table''' listing each Linux command, useful options that were mentioned in the online assignment #1 and command purpose for the following Linux commands: '''ln''' , '''ps''' , '''top''' , '''fg''' , '''bg''' , '''jobs''' , '''kill''' | ||
[[Category:ULI101]] | [[Category:ULI101]] |
Revision as of 09:12, 30 January 2020
Contents
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
Managing Processes
|
Linux Commands | Instructional Videos:
|
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:
- x
In the next investigation, you will ...
INVESTIGATION 2: MANAGING PROCESSES
In this section, you will learn how to ...
Perform the Following Steps:
- 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:
- 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? - 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? - 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? - 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
- 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. - Create a table listing each Linux command, useful options that were mentioned in the online assignment #1 and command purpose for the following Linux commands: ln , ps , top , fg , bg , jobs , kill