User Tools

Site Tools


mkatari-bioinformatics-august-2013-introlinuxnotes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mkatari-bioinformatics-august-2013-introlinuxnotes [2015/06/11 11:08] – [History] mkatarimkatari-bioinformatics-august-2013-introlinuxnotes [2015/06/11 11:31] mkatari
Line 274: Line 274:
 </code> </code>
  
 +====== Transferring Files ======
 +
 +There are several ways to transfer files to a server. The most reliable and consistent way is to use ''scp''. scp is a combination of the cp copy command and ssh command for connecting securely. An important thing to note is that you can only use scp if the remote server accepts ssh connections. For example, if you are using a windows machine and have not setup a service to accept ssh connections, you can copy to your windows machines, but you can copy from your windows machine. 
 +
 +One major advantage of using mobaxterm on windows machines is that it comes with some basic linux commands, including scp. On a mac, scp comes with the operating system. So if you want to copy a file that is on your Desktop to hpc from your laptop you can use the following command:
 +
 +<code>
 +[2015-06-11 07:22.19]  ~
 +[Manpreet.WIN-OAOVO3NM02E] ➤ cp allusers.txt Desktop/allusers_local.txt
 +                                                                           ✔
 +────────────────────────────────────────────────────────────────────────────
 +[2015-06-11 07:22.37]  ~
 +[Manpreet.WIN-OAOVO3NM02E] ➤ scp Desktop/allusers_local.txt mkatari@hpc.ilri.cgiar.org:
 +Unauthorized access is prohibited.
 +allusers_local.txt                        100%   18KB  18.2KB/  00:00
 +
 +</code>
 ====== Exercise ====== ====== Exercise ======
  
mkatari-bioinformatics-august-2013-introlinuxnotes.txt · Last modified: 2015/06/11 11:50 by mkatari