mv workersDB.c ~/cs31/labs/01/.Or move it into a file with a different name to not wipe out your version, and you can cut and paste changes between the two versions in vim:
mv workersDB.c ~/cs31/labs/01/workersDB_new.cYou can also use the find command to find where the heck the browser saved the file:
cd find . -name workersDB.c
# scp source destination scp workersDB.c partners_username@lab:./cs31/labs/01/workersDB_1.cscp will prompt partnerB to enter his/her password, and the file will be copied into their cs31/labs/01/ subdirectory. Note that I'm using the relative path name to the file destination file: ./cs31/labs/01/workersDB_1.c, I could also use the full path name: /home/partnerB/cs31/labs/01/workersDB_1.c or with ~: ~/cs31/labs/01/workersDB_1.c
As in the example above, I recommend naming the destination file
something other than workersDB.c so as not to overwrite
your partner's version of workersDB.c, potentially losing his/her changes.
Your partner can then decide whether or not to replace their
version with the version copied over via scp, and use the mv command
to do so (or s/he can cut-and-paste content between the two files using vim):
# mv source destination
mv workersDB_1.c workersDB.c
If you cut and paste code (either as above or between two of your own files), the formatting can get really messed up because of vim's auto-formatting C source code. You can either avoid this by doing the following in command-mode before pasting to stop vim from auto-indenting:
:set pasteand this turns paste-mode off
:set nopasteor, you can re-format the pasted code in vim by puting the cursor at the start of the line you want to select to start reformating and scroll down (or shift-G to select to the end) and then hit = (SHIFT-V, SHIFT-G, =) (visual select, go to last line, re-format)