☝🏻 You should also have already logged in to Puhti with SSH.
☝🏻 Note: For graphical output to work you need to log in with
ssh -X email@example.com. On Windows/macOS you also need to have an X server installed and running. See details in the previous tutorial. Another option is to use the Puhti web interface.
In the previous tutorial we downloaded a file called
my-first-file.txt, made a copy of it named
YourName-first-file.txt, and now we practice how to edit it!
💬 These exercises are done with the
nano editor, but you can use your favorite editor too.
💡 Here’s a nano cheat sheet
nano YourName-first-file.txt # replace YourName
Yto confirm saving and press enter to accept the filename.
less YourName-first-file.txt # replace YourName
☝🏻 Note! In case you are using the Puhti web interface, you need to open the files below from the file browser.
wget https://github.com/csc-training/csc-env-eff/raw/master/slides/img/terminal_icon.png wget https://github.com/csc-training/csc-env-eff/raw/master/slides/img/schrodingerscat.pdf
eogor using the file browser of the Puhti web interface.
evinceor using the file browser of the Puhti web interface.
Ctrl+Cwhen the Terminal window is selected.
nano. Try simply:
pwdand copy the path of your current working directory
‼️ Note: The following has to be typed in your personal computer’s terminal (not Puhti):
scp firstname.lastname@example.org:/path/to/your/filename.md /path/to/local/folder
💡 You can read more about
scp and moving files from Docs CSC: Copying files using scp
💬 One way to display
html files on Puhti is to go through the Allas object storage service. After configuring Allas there’s
a-commands which enable publishing files on the internet. This is instructed in the Allas tutorial.