☝🏻 You should also have already logged in to Puhti with SSH or via the Puhti web interface (and opened a login node shell).
mkdir YourNameTestFolder # replace YourName ls
cd YourNameTestFolder # replace YourName
💡 Note: if you just type
cd and the first letter of the folder name, then hit
tab key, the terminal completes the name. Handy!
wgetfor downloading from a URL:
lscommand with some extra options:
ls -lth # options are l for long format, t for sorting by time and h for convenient size units. Anything that starts with a hashtag is a comment and is not executed
lesscommand to check out what the file looks like:
lesspreview of the file, hit
💡 Tip: Instead of
less you can use
cat which prints the content of the file(s) straight into the command line. For long texts
less is recommended.
cp my-first-file.txt YourName-first-file.txt # replace YourName ls -lth less YourName-first-file.txt # replace YourName
rm my-first-file.txt ls
💡 Tip: If you don’t want to have duplicate files you can use
mv to ‘move/rename’ the file. Syntax is the same:
mv /path/to/source/oldname /path/to/destination/newname.
💡 For more information of a given command line
man command or
command --help where
command is replaced with the one that you need help with.
💡 Tip: If you remember a part of a command that you have used recently you can search for it with the command
history | grep string. This will show all your used commands that have included the string
string (replace this with the pattern you are searching for).