The general form of the copy command on unix systems is:
cp sourceFilePath
destinationFilePath
To copy a file from the instructor's directory to your directory on any of the computing nodes, use the following format, remember you MUST put the correct path from your current location on the system :
to copy FROM Instructor to your current directory on
one of the CS nodes
cp /seu/cs/home/user/l/lbaker/www/HTML/cosc2325/Student.java
.
the above command copies FROM Dr. Baker's cosc2325 directory
into current directory (.) Note the dot (.) is current directory
cp
/seu/cs/home/user/l/lbaker/www/cosc2125/labs/source/account.dat
account.dat.
copies from given path to file account.dat in current directory
cp ~lbaker/www/HTML/cosc2125/labs/account.txt
a1.txt
copies from Dr. Baker's specified directory path, the file,
account.txt to current directory naming the newly copied file as a1.txt
More Examples of copy
cp main1.cpp ../lab2
copies main1.cpp from current directory into lab2 directory up one level and down 1 level.
cp /seu/cs/home/l/lbaker/cosc2125/www/labs/source/main3.cpp lab3
copies main3.cpp from Dr. Baker's 2125/www/labs/source directory into your lab3 directory.
cp ~lbaker/cosc2125/www/labs/source/main3.cpp lab3
also copies main3.cpp from
Dr. Baker's 2125/www/labs/source directory into your lab3 directory.