-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransferfile.html
executable file
·70 lines (70 loc) · 3.42 KB
/
transferfile.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="generator" content="jemdoc, see http://jemdoc.jaboc.net/" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="jemdoc.css" type="text/css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<title>Transfer Files Between Local and Cluster</title>
</head>
<body>
<table summary="Table for page layout." id="tlayout">
<tr valign="top">
<td id="layout-menu">
<div class="menu-category">Home</div>
<div class="menu-item"><a href="index.html">About</a></div>
<div class="menu-item"><a href="term-of-service.html">Term of Service</a></div>
<div class="menu-item"><a href="quick-start.html">Quick Start</a></div>
<div class="menu-item"><a href="web-portal.html">Web Portal</a></div>
<div class="menu-category">Features</div>
<div class="menu-item"><a href="login.html">Log In</a></div>
<div class="menu-item"><a href="env-setting.html">Environment</a></div>
<div class="menu-item"><a href="interactive-task.html">Interactive Task</a></div>
<div class="menu-item"><a href="batch-task.html">Batch Task</a></div>
<div class="menu-item"><a href="example.html">Job Example</a></div>
<div class="menu-item"><a href="installation.html">Installation</a></div>
<div class="menu-item"><a href="transferfile.html" class="current">File Transfer</a></div>
<div class="menu-category">Quick Link</div>
<div class="menu-item"><a href="https://hpc.uicstat.com/codehub">Code-Hub</a></div>
<div class="menu-category">Maintenance Group</div>
<div class="menu-item"><a href="recruit.html">Join Us</a></div>
</td>
<td id="layout-content">
<div id="toptitle">
<h1>Transfer Files Between Local and Cluster</h1>
</div>
<h3>Use SCP</h3>
<p>You can easily used the pre-installed tool: scp inside your terminal, this tools depends on SSH, therefore, you need to type your password every time.</p>
<div class="codeblock">
<div class="blocktitle">scp</div>
<div class="blockcontent"><pre>
scp file_name user_name@ip_address: # first command
scp file_name user_name@ip_address:Documents/ # second command
</pre></div></div>
<ul>
<li><p>The first command is trying to send the file_name to the cluster's home category; </p>
</li>
<li><p>If you want the file sened to a specific PATH, for exmaple <tt>Documents</tt> you need to follow the second command</p>
</li>
</ul>
<h3>SFTP</h3>
<p>It is easy for you to use sftp and put commands for remote copying a local file or folder to the Cluster. For instance, if you write a “Hello world” program saved as <tt>D:\File\hello.m</tt> locally then you need to upload it to the Cluster, or if you want to upload a folder <tt>D:\File\hello</tt> including a number of source code files to the Cluster, you can use following commands,</p>
<div class="codeblock">
<div class="blocktitle">sftp</div>
<div class="blockcontent"><pre>
sftp uer_name@ip_address # step one: log in
put D:\File\hello.m # upload a file to the server
put -r D:\File\hello # upload a folder to the server
</pre></div></div>
<p>Enter your password before the copying, then the file or folder will be uploaded to the HOME directory in the Cluster.</p>
<div id="footer">
<div id="footer-text">
Page generated 2022-03-07 11:28:46 CST, by USBC Maintenance Group
</div>
</div>
</td>
</tr>
</table>
</body>
</html>