Open main menu

CDOT Wiki β

Changes

Tutorial8: Links / Process Management

2 bytes added, 05:58, 24 February 2021
LINUX PRACTICE QUESTIONS
# Hard Links:<ol type="a"><li>What is the purpose of creating a hard-link?</li><li>What is a limitation of a hard link?<li>Write a single Linux command to create a hard link called '''~/backup/myfile.txt.lnk''' for the <u>existing</u> file called '''~/myfile.txt'''</li><li>Write a single Linux command to display the '''i-node''' number for both files. Are the '''i-node''' numbers identical?</li></ol><br>
# Symbolic (Soft) Links:<ol type="a"><li>What is the purpose of creating a symbolic (soft) link?</li><li>What is a limitation of a symbolic (soft) link?</li><li>Write a single Linux command to create a symbolic link called '''~/shortcuts/murray.saul.lnk'''<br>to the <u>existing</u> directory called '''~murray.saul'''</li><li>Are the inode i-node numbers identical for both of those files?</li><li>What data is contained in the file called '''~/shortcuts/murray.saul.lnk'''?</li></ol><br>
# Background / Foreground Processes:<ol type="a"><li>Write a single Linux command to run the program called '''~/clean.sh''' in the '''background'''.</li><li>Write a single Linux command to place the previously issued program in the '''foreground'''.</li><li>Write a single Linux command to '''confirm''' that this program is running in the background.</li><li>What '''key-combination''' would you issue to send that program again into the '''background'''?</li><li>Write a single Linux command to have that process sent into the background to '''continue running'''?</li></ol><br>
# Managing Background processes:<br><span style="text-indent:120px;">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]&nbsp; Stopped vim a<br>[2]- Stopped vim b<br>[3]+ Stopped vim c</span></span><ol type="a"><li>Write a single Linux command to bring the second-recently process placed in the background into the '''foreground'''.</li><li>Write a single Linux command to '''terminate job #3'''.</li></ol><br>
# Write a single Linux command to display running processes in “real-time”.
# Write a single Linux command to terminal terminate a process that has the following PID: '''22384'''<br><br>
# Aliases / History:<ol type="a"><li>Write a linux command to create an '''alias''' called '''ld''' that issues the command: '''ls -ld'''</li><li>Write a linux command to unset the '''alias''' created in the previous question.</li><li>Issue a Linux command to list '''history''' of commands that match the pattern called '''touch'''.</li></ol><br>
# Create a '''table''' listing each Linux command, useful options and command purpose for the following Linux commands:<br>'''ln''' , '''ps''' , '''top''' , '''fg''' , '''bg''' , '''jobs''' , '''kill''' , '''alias''' , '''unalias''' , '''history'''
13,420
edits