Skip to content

Copying Files From PE Nodes

vvidday edited this page Oct 9, 2021 · 2 revisions

Purpose

To easily copy your files from the PE Nodes to your personal computer at the end of the lab session.

How to do it?

Windows
  1. Using Windows Explorer, go the the directory you want your files to be copied to
  2. Hold Shift key and right-click, then select Open PowerShell window here
  3. (Alternatively, you may open cmd and then cd to the desired directory)
  4. Type scp plabxxxx@pexxx:* . (please fill in the xxx according to your account slip) and press Enter
  5. When prompted, enter your password for your PE Nodes (refer to account slip again)
  6. Done! All files are copied form PE Nodes to your computer
UNIX/Linux
  1. Open your terminal (Ctrl + Alt + T for Ubuntu)
  2. cd to the directory you want your files to be copied to
  3. Type scp plabxxxx@pexxx:* . (please fill in the xxx according to your account slip) and press Enter
  4. When prompted, enter your password for your PE Nodes (refer to account slip again)
  5. Done! All files are copied form PE nodes to your computer
Mac
  1. Open your terminal (Ctrl + Space to open spotlight search - search for terminal)
  2. cd to the directory you want your files to be copied to
  3. Type scp plabxxxx@pexxx:* . (please fill in the xxx according to your account slip) and press Enter
  4. When prompted, enter your password for your PE Nodes (refer to account slip again)
  5. Done! All files are copied form PE nodes to your computer
Copying out Specific Files
  1. Zip the files you want to copy out with zip filename.zip <files>
    • e.g. zip lab05.zip Keyable.java Student.java will zip Keyable.java and Student.java into lab05.zip.
    • zip lab05.zip *.java *.jsh will zip all .java and .jsh files.
  2. In the above steps, instead of scp plabxxxx@pexxx:* ., type scp plabxxxx@pexxx:filename.zip .. This will copy out only the .zip file you created.
  3. In your local directory, type unzip filename.zip to unzip the files.

Assumptions

  • You used some kind of terminal to SSH into the PE Nodes
  • (Untested for other methods of acessing PE Nodes)

Notes

  • Contributions are welcomed, especially in the Mac section.
  • Mac users may attempt to adapt this method for their OS, since the logic should be similar.
Tips for advanced users
  • Lazy to type? Create your own script file (like .bat for Windows)
  • You can also modify the command to scp plabxxxx@pexxx:* ./<Labxx>/ where <Labxx> is basically according to file structure you have on your PC. Path is relative to where you cd to (or placed your script file)
Clone this wiki locally