Operating Systems Assignment for CMSI 387: I/O and File 'Gymnastics' - Spring 2009 - Prof., Assignments of Operating Systems

Details about an assignment for the operating systems course, cmsi 387, in spring 2009. The assignment focuses on i/o and file manipulation practices, including creating an ssh tunnel, running processes in screen sessions, checking disk usage, moving files, and determining mount points for storage devices.

Typology: Assignments

Pre 2010

Uploaded on 08/16/2009

koofers-user-c1v
koofers-user-c1v 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CMSI 387
OPERATING SY S T E M S
Spring 2009
Assignment 0212
This assignment seeks to give you a little I/O agility and file manipulation practice, plus additional introduc-
tory reading for the areas covered since last time.
Not for Submission
Supplemental reading for what has been covered so
far includes the conceptual parts of Sections 13.1–
13.3, 10.1–10.4, and 11.1 in SGG. The implemen-
tation material also previews what’s coming.
For Submission
I/O and File “Gymnastics”
Perform the following I/O and file activities (ex-
cept for #3 and #4) on a computer of your choice
(of course, that computer must have the needed
tools to accomplish these tasks), and record the
listed artifacts as evidence of your activities:
1.Create an ssh tunnel from this computer to a
service that is visible from another ssh-capable
computer (but, of course, not necessarily visible
from the computer you’re using). Then, access that
service from your computer through localhost and
the tunneled port number.
Submit the command you used to create the
tunnel; if you used an ssh GUI (such as
PuTTY), record a screenshot of the parame-
ters you used
Submit a screenshot of your successful con-
nection to the remote service via the tunnel
2. Run something lengthy (ping, top, tail, massively
long download…) inside a screen session; logout
of that computer entirely, login again, and re-
connect to that screen session, to prove to your-
self that the process has continued to run
without interruption.
Submit the commands used for performing
this activity
Submit screenshots of your long-running
command before you logged out, then after
you reconnected to it
3. Figure out how much disk space you’re using in
your Keck lab home directory. Which subdi-
rectory is taking up the most space?
Submit the command you used to determine
this information
Submit the output provided by the command
4. On a Keck lab machine, create a file within
your home directory. Run ls -i to determine
that file’s inode number. Move this file to an-
other directory inside your home directory,
then move it to /tmp, then move it back to your
home directory. After each move, use ls -i to
see its inode number.
Submit the commands that you used to cre-
ate the file then move it around
Submit the output of ls -i both right after you
created the file and after each file move
5. Pop a few storage devices (CD, DVD, flash
drive, network drive, etc.) into your computer.
Figure out the mount points for each device.
Submit the command that you used to de-
termine this information; if you used a GUI
tool for this, submit a screenshot
Submit the output provided by the command
(or a screenshot showing the information, if
you used a GUI tool)
Commit your answers as a LaTeX document (in-
cluding image files if necessary) under /homework/
cmsi387/gymnastics.

Partial preview of the text

Download Operating Systems Assignment for CMSI 387: I/O and File 'Gymnastics' - Spring 2009 - Prof. and more Assignments Operating Systems in PDF only on Docsity!

CMSI 387

O P E R A T I N G S Y S T E M S

Spring 2009

Assignment 0212

This assignment seeks to give you a little I/O agility and file manipulation practice, plus additional introduc- tory reading for the areas covered since last time.

Not for Submission

Supplemental reading for what has been covered so far includes the conceptual parts of Sections 13.1– 13.3, 10.1–10.4, and 11.1 in SGG. The implemen- tation material also previews what’s coming.

For Submission

I/O and File “Gymnastics”

Perform the following I/O and file activities (ex- cept for #3 and #4) on a computer of your choice (of course, that computer must have the needed tools to accomplish these tasks), and record the listed artifacts as evidence of your activities: 1.Create an ssh tunnel from this computer to a service that is visible from another ssh -capable computer (but, of course, not necessarily visible from the computer you’re using). Then, access that service from your computer through localhost and the tunneled port number.

  • Submit the command you used to create the tunnel; if you used an ssh GUI (such as PuTTY), record a screenshot of the parame- ters you used
  • Submit a screenshot of your successful con- nection to the remote service via the tunnel
  1. Run something lengthy ( ping , top , tail , massively long download…) inside a screen session; logout of that computer entirely, login again, and re- connect to that screen session, to prove to your- self that the process has continued to run without interruption.
  • Submit the commands used for performing this activity
  • Submit screenshots of your long-running command before you logged out, then after you reconnected to it
  1. Figure out how much disk space you’re using in your Keck lab home directory. Which subdi- rectory is taking up the most space?
  • Submit the command you used to determine this information
  • Submit the output provided by the command
  1. On a Keck lab machine, create a file within your home directory. Run ls -i to determine that file’s inode number. Move this file to an- other directory inside your home directory, then move it to /tmp , then move it back to your home directory. After each move, use ls -i to see its inode number.
  • Submit the commands that you used to cre- ate the file then move it around
  • Submit the output of ls -i both right after you created the file and after each file move
  1. Pop a few storage devices (CD, DVD, flash drive, network drive, etc.) into your computer. Figure out the mount points for each device.
  • Submit the command that you used to de- termine this information; if you used a GUI tool for this, submit a screenshot
  • Submit the output provided by the command (or a screenshot showing the information, if you used a GUI tool) Commit your answers as a LaTeX document (in- cluding image files if necessary) under /homework/ cmsi387/gymnastics.