Commit 3a6f1dde authored by Florian Moser's avatar Florian Moser
Browse files

Add new slides, images

parent 61f2e04c
#! /bin/bash
keypause=200
commandpause=3
while read line
do
xdotool key --delay $keypause $line
sleep $commandpause
od < $1
......@@ -28,11 +28,6 @@ h1, h2, h3 {
max-width: 100%;
}
img {
width: 40%;
}
.remark-inline-code {
color: #f18a21;
}
......
......@@ -25,6 +25,7 @@ class: center, middle
...a wide spectrum of available **tools** and what you can do with them.
---
# Goals
......@@ -78,12 +79,13 @@ Many of the classical Linux tools adhere to the "UNIX principle":
In a wider, non-programming sense: It's useful to
learn things that are small, orthogonal, and compose.
---
# Bash
Related words: terminal, terminal emulator, shell, command line, ...
<img src="images/bash.png">
<img src="images/bash.png" width="50%">
In a nutshell:
Bash is a tool that let's you interact with your computer via text.
......@@ -105,11 +107,37 @@ Some commands are really just programs: try typing `firefox` and hitting Enter i
---
# TODO ls & cd video
# Filesystem basics
List files and show where we are:
```bash
ls
pwd
```
Enter or leave directories:
```bash
cd my_folder
cd ..
cd /home/nils/Desktop
cd ~/Desktop
```
---
# TODO: vocab
# Bash terminology
**terminal** is the window in which bash runs.
bash is a kind of **shell**. there are others!
<img src="images/terminal_old.webp" alt="https://www.reddit.com/r/raspberry_pi/comments/6se1qy/old_terminal_connected_to_my_pi_emulating_a_modem/" width="60%">
---
......@@ -131,9 +159,7 @@ Both redirect command output:
- `|` redirects to a new command ("piping")
- `>` redirects into a file ("file redirection" or "redirection" for short)
<img src="images/cat.png" width="30%">
<img src="images/catpipe.png" width="30%">
<img src="images/catpiperedirection.png" width="30%">
<img src="images/catpiperedirection.png" width="60%">
---
......@@ -174,6 +200,8 @@ done
---
class: center, middle
# Tool Galore
We will now talk about multiple tools and how to combine them using bash (mostly).
......@@ -190,7 +218,7 @@ two main choices:
these fill niches that bash doesn't, but are still close to the system.
<img src="images/polygon.png">
<img src="images/polygon.png" width="50%">
---
......@@ -394,12 +422,27 @@ xdotool mousemove 20 100 click 1 sleep 2 mosemove 100 20
---
# Summary
<img src="images/categorization.png" width="60%">
Categories:
- downloading (like wget, ssh, rsync)
- text processing (like vim, sed, bash)
- file conversion (like ffmpeg, pandoc, convert)
- searching (like sed, grep, find)
- glue (like xdotools, rofi, xbindkeys, notify-send, python, bash)
---
# Longlist of interesting tools
**stow** lets you manage config files easily.
**ranger** is a console-based file manager.
**i3** is an alternative window-manager.
**borg** is a backup tool.
**borg** is a backup tool.
**nano** is an easy to use console text-editor.
**rsync** to copy files between machines.
---
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment