Markdown + Data Formats
Write your first Markdown note and learn JSON + CSV. 5 short tasks, each 2-3 minutes.
Your first note with Markdown
Markdown + data formats
Markdown is a simple markup language for formatting text quickly — with a few special characters instead of complicated tags. GitHub, chat tools and these lab tasks themselves are written in Markdown. You also get to know two important data formats: JSON and CSV.
Key terms
- Markdown (
.md):#for headings,-for lists,[text](URL)for links. - JSON: a data format of key-value pairs in curly braces
{ "name": "Max" }— the standard for APIs. - CSV: "Comma-Separated Values" — a table as text, columns separated by commas.
Work in the folder
/home/student/markdown/(mkdir -p /home/student/markdown).
Your goal
You write a Markdown note (heading, list, link) and create one small JSON and one CSV file.
Exercises
1. Write a heading
Concept: Markdown heading. In Markdown a heading starts with
#and a space. Write a heading intonotizen.md.mkdir -p /home/student/markdown echo "# My notes" > /home/student/markdown/notizen.mdCheck:
notizen.mdcontains a line starting with#.2. A list with three items
Concept: Markdown list. A list item starts with
-and a space. Write a list with at least three items intoliste.md.printf -- "- First item\n- Second item\n- Third item\n" > /home/student/markdown/liste.mdCheck:
liste.mdcontains at least three lines starting with-.3. A link
Concept: Markdown link. A link looks like this:
[display text](URL). Write a link intolinks.md.echo "[Techlogia Lab](https://techlogia.de/lab)" > /home/student/markdown/links.mdCheck:
links.mdcontains a link in the format[text](https://...).4. A small JSON file
Concept: JSON. JSON stores data as key-value pairs in curly braces. Keys and text values are in double quotes. Create a small profile as
profil.json.echo '{ "name": "Max", "class": "7a" }' > /home/student/markdown/profil.jsonMind the double quotes and the comma between pairs.
Check:
profil.jsoncontains a valid JSON object with at least one"key": valuepair.5. A CSV table
Concept: CSV. A CSV file is a table as text: the first line is the column names, then one line per record, values separated by commas. Create
tabelle.csvwith a header and at least three data lines.printf "name,class\nMax,7a\nLisa,7b\nTom,8a\n" > /home/student/markdown/tabelle.csvCheck:
tabelle.csvhas a header (two columns) and at least three more lines.
Related courses
Now practice it yourself
Reading is good – doing is better. Start this course on a real Linux VM, right in your browser. A free account is all it takes.
Start for freeLab content under CC BY 4.0 – free to use with attribution (© TechLogia).
