Lonestar is tremendously powerful and capable of doing many things, but as most of you are probably being slightly frustrated by, it doesn't have much in the way of a GUI (graphical user interface). The lack of a GUI means it can't visualize graphs or other meaningful representations of our data. In order to do these types of things, we have to get our data off of lonestar and onto our own computers.
You recall one of the first things you did in this class was use the cp command to copy files from the the BioITeam directories to your home directory. Unfortunately lonestar can't access the directories on your personal computer so the cp command won't work. Instead we have to use the "secure copy command" (scp). Copying using scp works using the same 3 parts as the cp command:
The difference is the scp command includes more detailed information on the path of where the file is, or where the file is going using syntax similar to that used in the other "secure" command you are familiar with: ssh.
It is often useful to set up 2 different terminal windows to scp between a remote computer and your local computer. This is not required by any means, but is often helpful. The image below shows 2 separate windows where I have transferred a file named README from a folder inside the BioITeam materials to my local computer. Notice the one on the left corresponds to my local computer while the other is actually inside of the BioITeam folder on TACC.
![]()
Before you begin, be sure you have 2 terminal windows open as shown in the "setup" section above. For simplicity the window corresponding to your Local computer will be referred to as "Left" while the window where you have logged into the Remote computer will be referred to as "Right" as is depicted in the image above.
cd /corral-repl/utexas/BioITeam/ngs_course |
pwd |
Copy the address by highlighting the text and hitting control/command + C
If you are sure you know the address your file resides at from root, you do not need to do this step. In the experience of your instructor, being able to type the address out with tab keys in the remote window will safe a lot of typos when the next steps are completed. |
cd Downloads |
The scp command will have the following parts: scp <USERNAME>@<Remote_computer_address>:<pathway_to_file_you_want_to_transfer_starting_with_a_/_mark_and_ending_with_the_filename> <location_you_want_the_file_copied_to>
scp <USERNAME>@ls5.tacc.utexas.edu:/corral-repl/utexas/BioITeam/ngs_course/README . |
*note the required punctuation:
The final . on the command is not a required piece of punctuation, but instead is the symbol for the current directory. Step 1 could have been skipped, and the "." replaced with "Downloads" to have the same effect. |
Upon hitting enter you should be prompted for your tacc password, and 1 time code.
Before you begin, be sure you have 2 terminal windows open as shown in the image in "setup" section above. For simplicity the window corresponding to your Local computer will be referred to as "Left" while the window where you have logged into the Remote computer will be referred to as "Right" as is depicted in the image above.
cd $SCRATCH |
In the previous example we copied a file from the BioITeam to your local computer. Make sure you change your directory before copying a file back to TACC. If you copy a file into that BioITeam space it creates more work for your instructor of having to clear out that space. |
pwd |
Copy the address by highlighting the text and hitting control/command + C
If you are sure you know the address your file resides at from root, you do not need to do this step. In the experience of your instructor, being able to type the address out with tab keys in the remote window will safe a lot of typos when the next steps are completed. |
cd Downloads |
The scp command will have the following parts: scp <filename> <USERNAME>@<Remote_computer_address>:<location_you_want_the_file_copied_to_starting_with_a_/_mark>
scp README <USERNAME>@ls5.tacc.utexas.edu:<pwd_you_copied_in_the_right_window> |
*note the required punctuation:
As above, if you know the path to the directory you want to copy your file to, you do not need the Right window with the remote connection. Unfortunately, just as the remote computer doesn't know anything about your local computer, your local computer doesn't know anything about the nice shortcuts that exist on TACC such as the $SCRATCH variable. This means that in order to do this with a single window you would need to know what $SCRATCH is from memory. Even assuming you did know the path to the directory you want, it has been extremely rare in my experience that transferring a file to TACC is the last step. Almost always it is actually the first step where once the file is transferred you immediately begin working on it there. |
Upon hitting enter you should be prompted for your tacc password, and 1 time code.
While you can return to Genome Variant Analysis Course 2020 Home Page, it is more likely that you want to use the back arrow on your browser to return to the page you were just on.