Shared Directories

Here are steps for setting up a shared directory for groups of students to work on the same project. While the instructions are written in the context of the BiTT Project, they apply equally well to working in pairs on your final project.

  • Decide as a group under whose account you’d like to create the common directory. Suppose that someone were Matthew Vassar... :-)
  • At a high level, what you need to do is:
    • create a directory under your Matthew Vassar’s directory, and
    • change the permissions of that directory so that others may write to it.
  • Here are the steps Mathew Vassar would need to follow to do this:
    • 1) login to jr (you’ll be in your home directory upon logging in)
    • 2) mkdir bitt-proj
    • 3) chmod 775 bitt-proj

This would make Matthew Vassar’s bitt-proj directory read/write/executable by the other students in his group (and technically, by anyone in the class).

From the command line, if another user wanted to cd into the shared directory, they would issue the command:
cd ~mavassar/bitt-proj

Similarly, from jEdit, another user could open files stored in your by navigating the open file browser to:

/home
  /mavassar
    /bitt-proj

(and similarly save files from jEdit into the same directory.)

If there was a file another user wanted to copy into or from the shared directory: (remember the cp command copies from-file → to-file)

  • cp ~mavassar/bitt-proj/shared-file my-file
  • cp myfile ~mavassar/bitt-proj/shared-file
courses/cs353-201201/shared_directories.txt · Last modified: 2012/01/04 22:14 by mlsmith
VCCS Top Events Extended Site Search Login Vassar Science Web Vassar Home Driven by DokuWiki Valid XHTML 1.0