Skip to content
Snippets Groups Projects
Commit 61b56f6a authored by Florian Moser's avatar Florian Moser
Browse files

Add new slides, images

parent c4c418aa
No related branches found
No related tags found
No related merge requests found
#! /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 { ...@@ -28,11 +28,6 @@ h1, h2, h3 {
max-width: 100%; max-width: 100%;
} }
img {
width: 40%;
}
.remark-inline-code { .remark-inline-code {
color: #f18a21; color: #f18a21;
} }
......
File added
linux_toolkit_2021/images/categorization.png

7.98 KiB

linux_toolkit_2021/images/terminal_old.jpg

121 KiB

linux_toolkit_2021/images/terminal_old.webp

76.9 KiB

...@@ -25,6 +25,7 @@ class: center, middle ...@@ -25,6 +25,7 @@ class: center, middle
...a wide spectrum of available **tools** and what you can do with them. ...a wide spectrum of available **tools** and what you can do with them.
--- ---
# Goals # Goals
...@@ -78,12 +79,13 @@ Many of the classical Linux tools adhere to the "UNIX principle": ...@@ -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 In a wider, non-programming sense: It's useful to
learn things that are small, orthogonal, and compose. learn things that are small, orthogonal, and compose.
---
# Bash # Bash
Related words: terminal, terminal emulator, shell, command line, ... Related words: terminal, terminal emulator, shell, command line, ...
<img src="images/bash.png"> <img src="images/bash.png" width="50%">
In a nutshell: In a nutshell:
Bash is a tool that let's you interact with your computer via text. 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 ...@@ -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: ...@@ -131,9 +159,7 @@ Both redirect command output:
- `|` redirects to a new command ("piping") - `|` redirects to a new command ("piping")
- `>` redirects into a file ("file redirection" or "redirection" for short) - `>` redirects into a file ("file redirection" or "redirection" for short)
<img src="images/cat.png" width="30%"> <img src="images/catpiperedirection.png" width="60%">
<img src="images/catpipe.png" width="30%">
<img src="images/catpiperedirection.png" width="30%">
--- ---
...@@ -174,6 +200,8 @@ done ...@@ -174,6 +200,8 @@ done
--- ---
class: center, middle
# Tool Galore # Tool Galore
We will now talk about multiple tools and how to combine them using bash (mostly). We will now talk about multiple tools and how to combine them using bash (mostly).
...@@ -190,7 +218,7 @@ two main choices: ...@@ -190,7 +218,7 @@ two main choices:
these fill niches that bash doesn't, but are still close to the system. 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 ...@@ -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 # Longlist of interesting tools
**stow** lets you manage config files easily. **stow** lets you manage config files easily.
**ranger** is a console-based file manager. **ranger** is a console-based file manager.
**i3** is an alternative window-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.
--- ---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment