Skip to content

Commit 5a5fa82

Browse files
committed
content: finished bash, started git
also some minor style improvements
1 parent 71c23a4 commit 5a5fa82

File tree

6 files changed

+352
-53
lines changed

6 files changed

+352
-53
lines changed

src/content/lessons/exercise1.md

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: 'Intro to git'
3+
description: 'An overview of what git is, how it works and why we want to learn to use it'
4+
order: 3
5+
tags: ['intro', 'git']
6+
---
7+
8+
## Git
9+
10+
Git is the most popular **version control system** in the world.
11+
12+
<bonus-content>
13+
14+
It was published by the creator of Linux - Linus Torvalds in 2005.
15+
16+
</bonus-content>
17+
18+
It is used for both corporate, open-source and hobby projects.
19+
20+
> _Did you know_: The german government publishes their [constitution](https://github.com/bundestag/gesetze) on GitHub?
21+
22+
---
23+
24+
## What is version control?
25+
26+
---
27+
28+
## Hello git
29+
30+
```bash
31+
mkdir my-first-git-project
32+
cd my-first-git-project
33+
git init
34+
```

src/content/lessons/more-bash.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,37 @@ Bash processes commands in this order:
2929
---
3030

3131
> __Did you know:__ there is a version of the popular containerization tool Docker [written entirely in bash](https://github.com/p8952/bocker)
32+
33+
<bonus-content>
34+
35+
## Overview of the common top-level directories
36+
37+
> In UNIX-like system everything is represented as a file
38+
39+
```bash
40+
/ # root - the top level directory
41+
/bin/ # holds common programs accessible by all users
42+
/boot/ # contains files needed to start the system
43+
/dev/ # contains device files
44+
/etc/ # contains system configuration files
45+
/home/ # each user has their own directory under /home/{user-name}
46+
/media/ # usually where external storage is mounted
47+
/mnt/ # used for manually mounting external storage
48+
/lib/ # contains shared libraries
49+
```
50+
51+
---
52+
53+
```bash
54+
/opt/ # usually holds programs built locally from source
55+
/root/ # the home directory of the root user
56+
/sbin/ # contains programs only accessible to the root user
57+
/sys/ # contains files representing devices
58+
/tmp/ # contains temporary files
59+
/usr/ # holds a mish-mash of programs, libraries, docs and more
60+
/var/ # usually contains logs and other semi-temporary data
61+
```
62+
63+
> There are a lot of details and specifics of different UNIX variants that we would not have time to explore in depth.
64+
65+
</bonus-content>

0 commit comments

Comments
 (0)