diff --git a/lectures/lecture-05/1 - Command line, files, and processes.ipynb b/lectures/lecture-05/1 - Command line, files, and processes.ipynb index 2281221..d28e064 100644 --- a/lectures/lecture-05/1 - Command line, files, and processes.ipynb +++ b/lectures/lecture-05/1 - Command line, files, and processes.ipynb @@ -90,7 +90,7 @@ " - On macOS, go to \"Applications -> Utilities -> Terminal\" (German: \"Programme -> Dienstprogramme -> Terminal\")\n", " - On linux, start the \"Terminal\" program.\n", "\n", - "## Step 3 - your username and passoword\n", + "## Step 3 - your username and password\n", "\n", "Your username is your the lowercase version of your lastname (e.g. Cem Ă–zdemir would have a username of `oezdemir`). Your password is your matriculation number followed by \"x\" (e.g. `12345678x`).\n", "\n", @@ -407,9 +407,23 @@ }, { "cell_type": "markdown", - "id": "c13ae6e1", + "id": "63c4b3bd-a196-474d-8c1f-ceed2a2f38aa", "metadata": {}, "source": [ + "# Markdown (`.md`) files\n", + "\n", + "Markdown files are another file type (like Python `.py` files) which can be edited as \"plain text\". In this case, it is used for writing documentation with things like **bold** words and [links](https://de.wikipedia.org/wiki/Hyperlink).\n", + "\n", + "It is very common to have a `README.md` file in directories with important information about its contents." + ] + }, + { + "cell_type": "markdown", + "id": "d95e5b12-4695-4476-8cdf-e7fcd579d0ce", + "metadata": {}, + "source": [ + "\n", + "\n", "# Reading and plotting data from the command line\n", "\n", "Copy the `iris.csv` file\n", @@ -435,6 +449,24 @@ "Now we can run this with: `python plot2.py iris.csv`" ] }, + { + "cell_type": "markdown", + "id": "6e79bfc0-6af3-4168-9556-14fe3fa48bcf", + "metadata": {}, + "source": [ + "# Getting files from remote computer with `scp`\n", + "\n", + "The command `scp` is a sister to `ssh` and stands for \"secure copy\" and lets you download a file from a remote computer. The syntax is:\n", + "\n", + " scp username:computer.example.com:filename.png .\n", + "\n", + "So, for the file generated above, I can download it from my laptop with:\n", + "\n", + " scp straw@python-course.strawlab.org:plot2.png .\n", + "\n", + "On Mac, I can open a file from the command line with `open plot2.png`." + ] + }, { "cell_type": "markdown", "id": "157597ea",