Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commitcc371f76a2ae5a04b11e69015ebaca6891efc097 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-02-26 20:39:30 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-02-26 20:40:16 +0200
Files56328e69252d4f7add34084bc502fee6279222f1 /src
syndamia.com-cc371f76a2ae5a04b11e69015ebaca6891efc097.tar
syndamia.com-cc371f76a2ae5a04b11e69015ebaca6891efc097.tar.gz
syndamia.com-cc371f76a2ae5a04b11e69015ebaca6891efc097.zip
Parentd501ce32703c04b1ee7f9c61c2a1efa22216bf58 (diff)
[talks/lbs] Added titles to a lot of shell and file system slides
1 files changed, 16 insertions, 10 deletions
-rw-r--r--src/talks/linuxgraphy-by-strabo/index.md26
diff --git a/src/talks/linuxgraphy-by-strabo/index.md b/src/talks/linuxgraphy-by-strabo/index.md
index 9ed785c..75cf951 100644
--- a/src/talks/linuxgraphy-by-strabo/index.md
+++ b/src/talks/linuxgraphy-by-strabo/index.md
@@ -218,8 +218,10 @@ While on the topic of UNIX, we'll only discuss the former.
&&slide
+### Command-line shells
+
Command-line shells operate solely with text, usually with only ASCII characters.
-There are usually two terms used when talking about connecting to a computer (to the shell), those are "terminal" ("console") and "teleprinter" ("teletype").
+Usually connecting to a computer (to the shell) is said to be done with either a "terminal" ("console") or "teleprinter" ("teletype").
&&table
@@ -265,6 +267,8 @@ Today we don't usually use such specialised hardware, but the names persist with
&&clide
+### Command location and parameters
+
Most commands are regular programs, which exist somewhere on the system.
When entering a command name, the shell searches for an executable with that name.
Searching the whole drive is very inneficient, so the search is limited to the few directories, listed in a variable called "PATH".
@@ -283,10 +287,10 @@ More rarely you might see `--OPTION=VALUE` or just `OPTION=VALUE`.
&&clide
-The first UNIX shell is the [Thompson shell](https://en.wikipedia.org/wiki/Thompson_shell).
-With time, other shells appeared, but each introduced it's own unique feature or syntax set.
+### Thompson shell
-However, all of them have in common the two major functionalities of the Thompson shell:
+The first UNIX shell is the [Thompson shell](https://en.wikipedia.org/wiki/Thompson_shell).
+The two major features that every other shell supports are:
- I/O redirection: redirection of input and output, allowing insertion of input from a file or storage of output into a file:
@@ -319,9 +323,9 @@ However, all of them have in common the two major functionalities of the Thompso
-&&slide
+&&clide
-The main attributes that every inode has are as follows:
+### Attributes of an inode
- [file type](https://en.wikipedia.org/wiki/Unix_file_types): Each inode represents some sort of file (data), but a "file" can also be a directory or device, so we need to know how to handle it.
There are 7 main types (but there can exist more, depending on OS):
@@ -336,7 +340,7 @@ The main attributes that every inode has are as follows:
exec(/bin/mprog); -> Executes /usr/local/bin/mprog
```
-&&/slide
+&&/clide
@@ -475,7 +479,9 @@ Stopping is either done by the process itself (more on that later), or by the sy
-&&clide &&font35
+&&slide &&font35
+
+#### Process Control Block
All process information is stored in a data structure, called a *process control block* (or process descriptor).
Not to be confused with a [printed circuit board](https://en.wikipedia.org/wiki/Printed_circuit_board)!
@@ -488,13 +494,13 @@ A PCB's data can be split into three categories:
A process can be **forked**, meaning a new process is created, with the same underlying code (but not process states and ...).
-&&/font &&/clide
+&&/font &&/slide
&&clide &&font35
-Typically, there are at least 5 process states:
+#### Process states
- **Created**: This is the initial state given to a new process. In this state, the process awaits a "ready" state.
- **Ready** (Waiting): A process is put in the run queue and awaits being executed ("running" state).