Skip to content

Commit f6c1de1

Browse files
committed
rework uploading files
1 parent 9b64db5 commit f6c1de1

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

mkdocs/docs/HPC/linux-tutorial/uploading_files.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ a lot of distributions.
8585
For example, to copy a folder with lots of CSV files:
8686
<pre><code>$ <b>rsync -rzv testfolder [email protected]:data/</b></code></pre>
8787

88-
will copy the folder `testfolder` and its contents to `$VSC_DATA` on the
89-
, assuming the `data` symlink is present in your home directory, see
88+
will copy the folder `testfolder` and its contents to `$VSC_DATA`,
89+
assuming the `data` symlink is present in your home directory, see
9090
[symlinks section](uploading_files.md#symlinks-for-datascratch).
9191

9292
The `-r` flag means "recursively", the `-z` flag means that compression
@@ -106,10 +106,26 @@ See `man rsync` or <https://linux.die.net/man/1/rsync> for more
106106
information about rsync.
107107

108108
## Exercises
109-
1. Download the file `/etc/hostname` to your local computer.
110109

111-
2. Upload a file to a subdirectory of your personal `$VSC_DATA` space.
110+
??? abstract "Download the file `/etc/hostname` to your local computer."
111+
```bash
112+
rsync -rzv [email protected]:/etc/hostname local_folder
113+
```
112114

113-
3. Create a file named `hello.txt` and edit it using `nano`.
115+
Don't forget to change `vsc40000` to your own username.
116+
117+
??? abstract "Upload a file to a subdirectory of your personal `$VSC_DATA` space."
118+
```bash
119+
rsync -rzv testfolder [email protected]:$VSC_DATA/subdirectory/
120+
```
121+
122+
Don't forget to change `vsc40000` to your own username.
123+
124+
??? abstract "Create a file named `hello.txt` and edit it using `nano`."
125+
```bash
126+
touch hello.txt
127+
nano hello.txt
128+
```
129+
The `touch` command creates a new file named `hello.txt`, and the `nano` command opens this file in the nano editor for editing.
114130

115131
Now you have a basic understanding, see next [chapter](beyond_the_basics.md) for some more in depth concepts.

0 commit comments

Comments
 (0)