Monday, March 24, 2014

How to transfer files across computers using SSH and terminal

If you need to transfer large files, e.g. fastq files, from your computer to the server that will do the downstream analysis use scp command in the terminal:

scp username1@hostname1:/path/to/folder/file.fastq username2@hostname2:/path/to/folder

In the case of coping files from your computer to the server:

scp /path/to/folder/file.fastq username@hostname:/path/to/folder
In case of copying files from the server to your computer

scp username@hostname:/path/to/folder/file.fastq /path/to/folder

You will be asked for the password and the file will be copied after.

No comments:

Post a Comment