Exercise 1: Tools for Working with Clusters
In this exercise, follow the instructions in the chapter on connecting to the cluster.
a) Logging into the Cluster
Log in to the cluster. Install the appropriate program for accessing a remote computer via the SSH protocol if necessary.
b) File Transfer Programs
- Install a file transfer program to facilitate file transfer between your personal computer and the cluster.
- Connect to the cluster using the file transfer program.
- Create a text file on your computer's desktop named a.txtand write some words.
- Create a new folder called exercise1on the cluster and transfer the filea.txtinto it.
- Open the file a.txton the remote computer, modify the text, and save the changes.
- Then, rename the file a.txttob.txtand transfer it back to your desktop. Verify if the changes have been successfully made in the file.
- Using the file transfer program on the remote computer, create a file named c.txtin theexercise1folder. Open it, write some words in it, and save it.
c) Working Directly on the cluster
In the terminal:
- Use the cd exercise1command to navigate to the folder from the previous exercise.
- Use the pwdcommand to check the current directory.
- View the file's contents using the cat c.txtcommand.
- If desired, open the file with the nanoeditor using thenano c.txtcommand.
- Finally, use the cd ..command (or simplycd) to return to the user's home directory.