Compare commits
24
Commits
eaaeed850a
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ac612193a | ||
|
|
0c8e2ac487 | ||
|
|
44c074ac43 | ||
|
|
5e23e6b68d | ||
|
|
0040f3c7a9 | ||
|
|
3d752f68d3 | ||
|
|
b9124bed93 | ||
|
|
2a41d33d46 | ||
|
|
11a5b4a8b3 | ||
|
|
43e8ab16a2 | ||
|
|
19f46ff5ef | ||
|
|
a51f396a93 | ||
|
|
f559c6393b | ||
|
|
fe7b1e71f9 | ||
|
|
616d74fe26 | ||
|
|
b0f1641920 | ||
|
|
1ec672ecd1 | ||
|
|
8919f282f9 | ||
|
|
2e355f1520 | ||
|
|
cc88025b00 | ||
|
|
00fcd3127b | ||
|
|
e84df26fbc | ||
|
|
5279907a10 | ||
|
|
d33405d95a |
@@ -2,5 +2,5 @@
|
||||
LastUsedProfileId=1
|
||||
|
||||
[Training]
|
||||
RequiredAccuracy=90
|
||||
RequiredStrokesPerMinute=100
|
||||
RequiredAccuracy=92
|
||||
RequiredStrokesPerMinute=150
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,220 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE KTouchCourse>
|
||||
<KTouchCourse>
|
||||
<Title>BASH-Tippen</Title>
|
||||
<Description>
|
||||
Kurs zum Erlernen und Üben typischer Bash-Befehle,
|
||||
Dateipfade, Optionen, Umleitungen, Pipes und Shell-Skripte.
|
||||
Ausgelegt für eine deutsche QWERTZ-Tastatur.
|
||||
</Description>
|
||||
|
||||
<Lessons>
|
||||
<Lesson>
|
||||
<Title>Grundzeile und einfache Wörter</Title>
|
||||
<NewKeys>asdf jklö</NewKeys>
|
||||
<Text>
|
||||
asdf jklö asdf jklö
|
||||
fall lass das alles
|
||||
date fasse lade
|
||||
ls ls ls
|
||||
pwd pwd pwd
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Erste Bash-Befehle</Title>
|
||||
<NewKeys>g h r u i e n t</NewKeys>
|
||||
<Text>
|
||||
ls
|
||||
pwd
|
||||
cd
|
||||
clear
|
||||
date
|
||||
whoami
|
||||
hostname
|
||||
echo
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Dateien und Verzeichnisse</Title>
|
||||
<NewKeys>m b c v x z</NewKeys>
|
||||
<Text>
|
||||
ls -l
|
||||
ls -a
|
||||
pwd
|
||||
cd ..
|
||||
cd /
|
||||
cd ~
|
||||
mkdir test
|
||||
touch datei
|
||||
rm datei
|
||||
rmdir test
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Pfade und Verzeichnisnavigation</Title>
|
||||
<NewKeys>/ . - _</NewKeys>
|
||||
<Text>
|
||||
cd /tmp
|
||||
cd /var/log
|
||||
cd ~/Dokumente
|
||||
ls ./datei
|
||||
ls ../
|
||||
pwd
|
||||
mkdir -p projekt/src
|
||||
cd projekt
|
||||
cd src
|
||||
cd ..
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Dateien kopieren und verschieben</Title>
|
||||
<NewKeys>p ö ä ü</NewKeys>
|
||||
<Text>
|
||||
cp datei kopie
|
||||
mv kopie archiv
|
||||
mkdir archiv
|
||||
cp datei archiv/
|
||||
mv archiv/kopie archiv/alt
|
||||
rm archiv/alt
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Optionen und lange Befehle</Title>
|
||||
<NewKeys>q w y ö ä ü</NewKeys>
|
||||
<Text>
|
||||
ls -lah
|
||||
ls --all
|
||||
ls --human-readable
|
||||
mkdir --parents projekt/src
|
||||
cp --interactive datei ziel
|
||||
rm --interactive datei
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Ausgabe und Umleitungen</Title>
|
||||
<NewKeys>> < | &</NewKeys>
|
||||
<Text>
|
||||
echo hallo
|
||||
echo hallo > datei
|
||||
cat datei
|
||||
echo welt >> datei
|
||||
cat < datei
|
||||
cat datei | sort
|
||||
cat datei | less
|
||||
sleep 10 &
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Pipes und Textverarbeitung</Title>
|
||||
<NewKeys>s o k f</NewKeys>
|
||||
<Text>
|
||||
ls -l | less
|
||||
ps aux | less
|
||||
cat /etc/passwd | sort
|
||||
grep root /etc/passwd
|
||||
ls -l | grep txt
|
||||
cat datei | wc -l
|
||||
history | tail
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Suchen mit find und grep</Title>
|
||||
<NewKeys>n d v</NewKeys>
|
||||
<Text>
|
||||
find . -name "*.txt"
|
||||
find /tmp -type f
|
||||
grep hallo datei
|
||||
grep -r hallo .
|
||||
grep -i fehler log.txt
|
||||
find . -type f | sort
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Variablen und Umgebungsvariablen</Title>
|
||||
<NewKeys>$ = " ' { }</NewKeys>
|
||||
<Text>
|
||||
name="Bash"
|
||||
echo "$name"
|
||||
echo "${name}"
|
||||
home="$HOME"
|
||||
echo "$home"
|
||||
export EDITOR=vim
|
||||
echo "$PATH"
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Bedingungen und Rückgabewerte</Title>
|
||||
<NewKeys>[ ] ! -</NewKeys>
|
||||
<Text>
|
||||
test -f datei
|
||||
[ -f datei ]
|
||||
[ -d projekt ]
|
||||
[ ! -e alt ]
|
||||
echo $?
|
||||
command -v bash
|
||||
which bash
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Schleifen und kleine Skripte</Title>
|
||||
<NewKeys>for do done in if then fi</NewKeys>
|
||||
<Text>
|
||||
for file in *.txt; do
|
||||
echo "$file"
|
||||
done
|
||||
|
||||
if [ -f datei ]; then
|
||||
echo "Datei vorhanden"
|
||||
fi
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Bash-Kommandos im Fließtext</Title>
|
||||
<NewKeys></NewKeys>
|
||||
<Text>
|
||||
mkdir -p ~/projekt/{src,bin,doc}
|
||||
cd ~/projekt
|
||||
touch src/main.sh
|
||||
chmod +x src/main.sh
|
||||
echo '#!/usr/bin/env bash' > src/main.sh
|
||||
echo 'echo hallo' >> src/main.sh
|
||||
./src/main.sh
|
||||
</Text>
|
||||
</Lesson>
|
||||
|
||||
<Lesson>
|
||||
<Title>Abschlussübung</Title>
|
||||
<NewKeys></NewKeys>
|
||||
<Text>
|
||||
#!/usr/bin/env bash
|
||||
|
||||
projekt="$HOME/bash-training"
|
||||
mkdir -p "$projekt"
|
||||
cd "$projekt" || exit 1
|
||||
|
||||
for name in eins zwei drei; do
|
||||
echo "$name" > "$name.txt"
|
||||
done
|
||||
|
||||
find . -type f -name "*.txt" |
|
||||
sort |
|
||||
while read -r file; do
|
||||
echo "Datei: $file"
|
||||
wc -l "$file"
|
||||
done
|
||||
</Text>
|
||||
</Lesson>
|
||||
</Lessons>
|
||||
</KTouchCourse>
|
||||
@@ -1,9 +0,0 @@
|
||||
yes J | sudo pacman -Syu
|
||||
yes J | sudo pacman -Syu
|
||||
yes J | sudo pacman -Syu && echo "done"
|
||||
yes J | sudo pacman -Syu && echo "done"
|
||||
Der, die, das
|
||||
Der, die, das
|
||||
Eine Dose voller Soße
|
||||
Eine Dose voller Soße
|
||||
Eine Dose voller Soße
|
||||
@@ -1,35 +0,0 @@
|
||||
[duration]
|
||||
radio_lesson=false
|
||||
radio_time=true
|
||||
radio_token=false
|
||||
spin_time=3
|
||||
spin_token=500
|
||||
|
||||
[error]
|
||||
check_beep=true
|
||||
check_correct=true
|
||||
check_stop=true
|
||||
|
||||
[lesson]
|
||||
combo_theme=
|
||||
list_open=19
|
||||
list_own=1
|
||||
list_training=4
|
||||
tab_current=0
|
||||
|
||||
[main]
|
||||
check_illustration=true
|
||||
language_layout=de_qwertz_win
|
||||
language_lesson=de_de_qwertz
|
||||
|
||||
[mainwindow]
|
||||
pos=@Point(0 0)
|
||||
size=@Size(1920 1046)
|
||||
|
||||
[support]
|
||||
check_border=true
|
||||
check_helpers=true
|
||||
check_path=true
|
||||
check_selection=true
|
||||
check_selection_start=true
|
||||
check_status=true
|
||||
Reference in New Issue
Block a user