Practical: Connecting to remote machines
General idea for the practical, to be properly formatted later.
We will be doing some simple data analysis on a remote machine: counting the number of words in a dictionary file.
Steps:
- Login to the remote machine (IP address is on the big screen). Create a directory for your own analysis.
- Copy input data to the directory you just created on the remote machine. As input data you can use the dictionary file on your laptop (
/usr/share/dict/words
). - On the remote machine, count the number of lines in the dictionary and save the output in a file.
- Copy the resulting file from the remote machine to your laptop.
- Remove your analysis directory from the remote machine.
Instead of counting the number of words in the dictionary, we could also combine this practical with The Bash shell and common command line tools and have the student perform tasks related to that lecture on the remote machine.