@@ -85,8 +85,8 @@ a lot of distributions.
8585For 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
9292The ` -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
106106information 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
115131Now you have a basic understanding, see next [ chapter] ( beyond_the_basics.md ) for some more in depth concepts.
0 commit comments