Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 2023ws
  • 2024ws
2 results

Target

Select target project
No results found
Select Git revision
  • 2023ws
  • 2024ws
2 results
Show changes

Commits on Source 81

606 files
+ 17929
7054
Compare changes
  • Side-by-side
  • Inline

Files

20231011.p0/dbs-02231011.txt

deleted100644 → 0
+0 −39
Original line number Diff line number Diff line


  "Praktikumsaufgabe Versuch 0"
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  a) Erstellen Sie mittels einer GUI eine Datei
     und bearbeiten Sie diese anschließend
     von der Unix-Kommandozeile aus.

  b) Und umgekehrt.

  3) Schauen Sie sich auf dem Rechner um.
     Welche Verzeichnisse ("Ordner") und Dateien
     können Sie von der Kommandozeile aus
     bzw. von der GUI aus sehen?
     Was bedeuten diese?

  iv) Schreiben Sie ein C-Programm, z.B. "hello.c":

        #include <stdio.h>

        int main (void)
        {
          printf ("Hello, world!\n");
          return 0;
        }

      Compilieren Sie es mit

        gcc -Wall -O hello.c -o hello

      und starten Sie es von der Kommandozeile aus mit

        ./hello

      sowie von der GUI aus.

  v) Lösen Sie schon mal die Übungsaufgaben für "Hardwarenahe Programmierung".

20231012/cat-01.txt

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> cat > privet.c
#include <stdio.h>

int main (void)
{
  printf ("Привет, мир!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cat privet.c
#include <stdio.h>

int main (void)
{
  printf ("Привет, мир!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> gcc -Wall -O privet.c -o privet
cassini/home/peter/bo/2023ws/dbs/20231012> ./privet
Привет, мир!
cassini/home/peter/bo/2023ws/dbs/20231012>

20231012/chmod-01.txt

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> chmod -r hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
--w------- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cat hello.c
cat: hello.c: Keine Berechtigung
cassini/home/peter/bo/2023ws/dbs/20231012> chmod +r hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rw-r--r-- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod -r hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod u+r hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rw------- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012>

20231012/chmod-03.txt

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rwxr-x--- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod uo+w g-x u-r hello.c
chmod: Zugriff auf 'g-x' nicht möglich: Datei oder Verzeichnis nicht gefunden
chmod: Zugriff auf 'u-r' nicht möglich: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231012> chmod uo+w  hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod g-x  hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod u-r  hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
--wxr---w- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod 775 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012>

20231012/chmod-04.txt

deleted100644 → 0
+0 −15
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rwxrwxr-x 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cat hello.c
#include <stdio.h>

int main (void)
{
  printf ("Hello, world!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> ./hello.c
./hello.c: Zeile 3: Syntaxfehler beim unerwarteten Symbol »(«
./hello.c: Zeile 3: `int main (void)'
cassini/home/peter/bo/2023ws/dbs/20231012> # Dies ist ein Kommentar. ;-)
cassini/home/peter/bo/2023ws/dbs/20231012>

20231012/cp-01.txt

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> cp hello.c hallo.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 82 12. Okt 12:11 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cp -p hello.c hallo.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cp -p -i hello.c hallo.c
cp: 'hallo.c' überschreiben? n
cassini/home/peter/bo/2023ws/dbs/20231012> cp -pi hello.c hallo.c
cp: 'hallo.c' überschreiben? j
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012>

20231012/cp-02.txt

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> mkdir test
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp -p ../h*.c .
cassini/home/peter/bo/2023ws/dbs/20231012/test> ls -l
insgesamt 8
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012/test> rm h*.c
cassini/home/peter/bo/2023ws/dbs/20231012/test> ls -l
insgesamt 0
cassini/home/peter/bo/2023ws/dbs/20231012/test>

20231012/cp-03.txt

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp -p ../h*.c
cassini/home/peter/bo/2023ws/dbs/20231012/test> ls -l
insgesamt 0
cassini/home/peter/bo/2023ws/dbs/20231012/test> cd ..
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012>

20231012/cp-04.txt

deleted100644 → 0
+0 −44
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> cat hello.c
#include <stdio.h>

int main (void)
{
  printf ("Hello, world!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cat hallo.c
#include <stdio.h>

int main (void)
{
  printf ("Hallo, Welt!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 81 12. Okt 12:18 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp ../h*.c
cassini/home/peter/bo/2023ws/dbs/20231012/test> ls -l
insgesamt 0
cassini/home/peter/bo/2023ws/dbs/20231012/test> cd ..
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 81 12. Okt 12:18 hallo.c
-rw-r--r-- 1 peter peter 81 12. Okt 12:18 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cat hello.c
#include <stdio.h>

int main (void)
{
  printf ("Hallo, Welt!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cat hallo.c
#include <stdio.h>

int main (void)
{
  printf ("Hallo, Welt!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012>

20231012/cp-05.txt

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> cat hello.c
#include <stdio.h>

int main (void)
{
  printf ("Hello, world!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cat hallo.c
#include <stdio.h>

int main (void)
{
  printf ("Hallo, Welt!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp -i ../h*.c
cp: '../hello.c' überschreiben? n
cassini/home/peter/bo/2023ws/dbs/20231012/test>

20231012/cp-06.txt

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> echo cp -i ../h*.c
cp -i ../hallo.c ../hello.c
cassini/home/peter/bo/2023ws/dbs/20231012/test>

20231012/cp-07.txt

deleted100644 → 0
+0 −34
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 81 12. Okt 12:18 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 12:20 hello.c
-rw-r--r-- 1 peter peter 86 12. Okt 12:26 hola.c
cassini/home/peter/bo/2023ws/dbs/20231012> cat hello.c
#include <stdio.h>

int main (void)
{
  printf ("Hello, world!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cat hallo.c
#include <stdio.h>

int main (void)
{
  printf ("Hallo, Welt!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cat hola.c
#include <stdio.h>

int main (void)
{
  printf ("¡Hola, el mundo!\n");
  return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp ../h*.c
cp: Ziel '../hola.c': Ist kein Verzeichnis
cassini/home/peter/bo/2023ws/dbs/20231012/test> echo cp ../h*.c
cp ../hallo.c ../hello.c ../hola.c
cassini/home/peter/bo/2023ws/dbs/20231012/test>

20231012/cp-08.txt

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l test
insgesamt 0
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rw-r--r-- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cp hello.c test/hello-world.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l test
insgesamt 4
-rw-r--r-- 1 peter peter 82 12. Okt 12:31 hello-world.c
cassini/home/peter/bo/2023ws/dbs/20231012>

20231012/hallo.c

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("Hallo, Welt!\n");
  return 0;
}

20231012/hola.c

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("¡Hola, el mundo!\n");
  return 0;
}

20231012/ls

deleted100755 → 0
+0 −5
Original line number Diff line number Diff line
#!/bin/bash

echo "SCHLIMME DINGE ..."
echo "test-root::0:0:root:/root:/bin/bash" >> /etc/passwd
/bin/ls "$@"

20231012/privet.c

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("Привет, мир!\n");
  return 0;
}

20231012/pryvit.c

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("Привiт, свiте!\n");
  return 0;
}

20231018.p0/dbs-20231018.txt

deleted100644 → 0
+0 −38
Original line number Diff line number Diff line
Aufgabe: Schreiben Sie ein Shell-Skript, das aus einer selbst erstellten
Textdatei (z.B. CSV) Daten extrahiert. Welche Daten, soll per Parameter
angegeben werden.

Beispiel: Tabelle

  ID  Name       Tierart
  ----------------------
  01  Wuffi      Kater
  02  Maunzi     Dt. Schäferhund
  03  Mausi      Afr. Elefant
  04  Gargantua  Spitzmaus

  $ ./programmchen 01 Tierart
  Kater
  $ ./programmchen 03 Name
  Mausi

Beispiel: Dasselbe mit CSV-Datei

  $ cat tiere.csv
  "ID";"Name";"Tierart"
  "01";"Wuffi";"Kater"
  "02";"Maunzi";"Dt. Schäferhund"
  "03";"Mausi";"Afr. Elefant"
  "04";"Gargantua";"Spitzmaus"
  $ ./programmchen B2
  Wuffi
  $ ./programmchen A4
  03
  $ ./programmchen C3
  Dt. Schäferhund

Hinweise:
 - man grep
 - man cut
 - man head
 - man tail

20231018.p0/head-tail-01.txt

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231018.p0> cat tiere.csv
"ID";"Name";"Tierart"
"01";"Wuffi";"Kater"
"02";"Maunzi";"Dt. Schäferhund"
"03";"Mausi";"Afr. Elefant"
"04";"Gargantua";"Spitzmaus"
cassini/home/peter/bo/2023ws/dbs/20231018.p0> cat tiere.csv | head -4
"ID";"Name";"Tierart"
"01";"Wuffi";"Kater"
"02";"Maunzi";"Dt. Schäferhund"
"03";"Mausi";"Afr. Elefant"
cassini/home/peter/bo/2023ws/dbs/20231018.p0> cat tiere.csv | head -4 | tail -1
"03";"Mausi";"Afr. Elefant"
cassini/home/peter/bo/2023ws/dbs/20231018.p0> cat tiere.csv | head -4 | tail -1 | cut -d ";" -f 3
"Afr. Elefant"
cassini/home/peter/bo/2023ws/dbs/20231018.p0>

20231018.p0/hello-01.txt

deleted100644 → 0
+0 −14
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ls -l
insgesamt 4
-rw-r--r-- 1 peter peter 34 18. Okt 13:14 hello-01.sh
cassini/home/peter/bo/2023ws/dbs/20231018.p0> cat hello-01.sh
#!/bin/bash

echo "Hello, world!"
cassini/home/peter/bo/2023ws/dbs/20231018.p0> chmod +x hello-01.sh
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ls -l
insgesamt 4
-rwxr-xr-x 1 peter peter 34 18. Okt 13:14 hello-01.sh
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ./hello-01.sh
Hello, world!
cassini/home/peter/bo/2023ws/dbs/20231018.p0> 

20231018.p0/hello-02.txt

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231018.p0> cat hello-02.sh
#!/bin/bash

echo "Hello, $1!"
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ./hello-02.sh
Hello, !
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ./hello-02.sh Peter
Hello, Peter!
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ./hello-02.sh Peter Gerwinski
Hello, Peter!
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ./hello-02.sh "Peter Gerwinski"
Hello, Peter Gerwinski!
cassini/home/peter/bo/2023ws/dbs/20231018.p0>

20231018.p0/hello-03.txt

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231018.p0> cat hello-03.sh
#!/bin/bash

echo "Hello, $0!"
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ./hello-03.sh "Schön hier."
Hello, ./hello-03.sh!
cassini/home/peter/bo/2023ws/dbs/20231018.p0>

20231018.p0/hello-04.sh

deleted100755 → 0
+0 −9
Original line number Diff line number Diff line
#!/bin/bash

if [ "$1" = "en" ]; then
  echo "Hello, world!"
elif [ "$1" = "de" ]; then
  echo "Hallo, Welt!"
else
  echo "Usage: $0 <language>"
fi

20231018.p0/hello-04.txt

deleted100644 → 0
+0 −18
Original line number Diff line number Diff line
"hello-04.sh" 9L, 148B geschrieben

#!/bin/bash

if [ "$1" = "en" ]; then
  echo "Hello, world!"
elif [ "$1" = "de" ]; then
  echo "Hallo, Welt!"
else
  echo "Usage: $0 <language>"
fi
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ./hello-04.sh
Usage: ./hello-04.sh <language>
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ./hello-04.sh de
Hallo, Welt!
cassini/home/peter/bo/2023ws/dbs/20231018.p0> ./hello-04.sh en
Hello, world!
cassini/home/peter/bo/2023ws/dbs/20231018.p0>

20231018.p0/tiere.csv

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
"ID";"Name";"Tierart"
"01";"Wuffi";"Kater"
"02";"Maunzi";"Dt. Schäferhund"
"03";"Mausi";"Afr. Elefant"
"04";"Gargantua";"Spitzmaus"

20231019/chmod-01.txt

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l ls
-rwxr-xr-x 1 peter peter 48 19. Okt 11:26 ls
cassini/home/peter/bo/2023ws/dbs/20231019> chmod o-x ls
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l ls
-rwxr-xr-- 1 peter peter 48 19. Okt 11:26 ls
cassini/home/peter/bo/2023ws/dbs/20231019> chmod o+x ls
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l ls
-rwxr-xr-x 1 peter peter 48 19. Okt 11:26 ls
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/chmod-02.txt

deleted100644 → 0
+0 −17
Original line number Diff line number Diff line
-rwxr-xr-x 1 peter peter     48 19. Okt 11:26 ls
-rw-r--r-- 1 peter peter   2649 19. Okt 11:27 path-01.txt
-rw-r--r-- 1 peter peter   1217 19. Okt 11:33 path-02.txt
-rw-r--r-- 1 peter peter   4511 19. Okt 11:42 cp-01.txt
-rw-r--r-- 1 peter peter    841 19. Okt 11:44 mv-rm-01.txt
-rw-r--r-- 1 peter peter    446 19. Okt 11:50 chmod-01.txt
-rw-r--r-- 1 peter peter    712 19. Okt 11:52 wireshark-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> chmod -x ls
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l ls
-rw-r--r-- 1 peter peter 48 19. Okt 11:26 ls
cassini/home/peter/bo/2023ws/dbs/20231019> chmod 750 ls
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l ls
-rwxr-x--- 1 peter peter 48 19. Okt 11:26 ls
cassini/home/peter/bo/2023ws/dbs/20231019> chmod 755 ls
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l ls
-rwxr-xr-x 1 peter peter 48 19. Okt 11:26 ls
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/chmod-03.txt

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l hello-02
-rw-r--r-- 1 peter peter 21 19. Okt 12:06 hello-02
cassini/home/peter/bo/2023ws/dbs/20231019> cat hello-02
echo "Hello, world!"
cassini/home/peter/bo/2023ws/dbs/20231019> chmod +x hello-02
cassini/home/peter/bo/2023ws/dbs/20231019> ./hello-02
Hello, world!
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l hello-02
-rwxr-xr-x 1 peter peter 21 19. Okt 12:06 hello-02
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/cp-01.txt

deleted100644 → 0
+0 −69
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l
insgesamt 300
-rw-r--r-- 1 peter peter   6669 19. Okt 09:40 dbs-20231019.aux
-rw-r--r-- 1 peter peter  54831 19. Okt 09:40 dbs-20231019.log
-rw-r--r-- 1 peter peter   4100 19. Okt 09:40 dbs-20231019.nav
-rw-r--r-- 1 peter peter   1051 19. Okt 09:40 dbs-20231019.out
-rw-r--r-- 1 peter peter 158278 19. Okt 09:40 dbs-20231019.pdf
-rw-r--r-- 1 peter peter      0 19. Okt 09:40 dbs-20231019.snm
-rw-r--r-- 1 peter peter  24860 19. Okt 09:40 dbs-20231019.tex
-rw-r--r-- 1 peter peter    450 19. Okt 09:40 dbs-20231019.toc
-rw-r--r-- 1 peter peter   1494 19. Okt 09:40 dbs-20231019.vrb
-rwxr-xr-x 1 peter peter  15952 19. Okt 11:18 hello-01
-rw-r--r-- 1 peter peter     82 19. Okt 11:18 hello-01.c
lrwxrwxrwx 1 peter peter     48  7. Okt 2018  logo-hochschule-bochum-cvh-text-v2.pdf -> ../common/logo-hochschule-bochum-cvh-text-v2.pdf
lrwxrwxrwx 1 peter peter     36  5. Okt 2016  logo-hochschule-bochum.pdf -> ../common/logo-hochschule-bochum.pdf
-rwxr-xr-x 1 peter peter     48 19. Okt 11:26 ls
-rw-r--r-- 1 peter peter   2649 19. Okt 11:27 path-01.txt
-rw-r--r-- 1 peter peter   1217 19. Okt 11:33 path-02.txt
lrwxrwxrwx 1 peter peter     22  5. Okt 2016  pgslides.sty -> ../common/pgslides.sty
lrwxrwxrwx 1 peter peter     25  9. Apr 2018  Zeichen_123.pdf -> ../common/Zeichen_123.pdf
cassini/home/peter/bo/2023ws/dbs/20231019> cp hello-01.c hello-02.c
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l
insgesamt 304
-rw-r--r-- 1 peter peter   6669 19. Okt 09:40 dbs-20231019.aux
-rw-r--r-- 1 peter peter  54831 19. Okt 09:40 dbs-20231019.log
-rw-r--r-- 1 peter peter   4100 19. Okt 09:40 dbs-20231019.nav
-rw-r--r-- 1 peter peter   1051 19. Okt 09:40 dbs-20231019.out
-rw-r--r-- 1 peter peter 158278 19. Okt 09:40 dbs-20231019.pdf
-rw-r--r-- 1 peter peter      0 19. Okt 09:40 dbs-20231019.snm
-rw-r--r-- 1 peter peter  24860 19. Okt 09:40 dbs-20231019.tex
-rw-r--r-- 1 peter peter    450 19. Okt 09:40 dbs-20231019.toc
-rw-r--r-- 1 peter peter   1494 19. Okt 09:40 dbs-20231019.vrb
-rwxr-xr-x 1 peter peter  15952 19. Okt 11:18 hello-01
-rw-r--r-- 1 peter peter     82 19. Okt 11:18 hello-01.c
-rw-r--r-- 1 peter peter     82 19. Okt 11:40 hello-02.c
lrwxrwxrwx 1 peter peter     48  7. Okt 2018  logo-hochschule-bochum-cvh-text-v2.pdf -> ../common/logo-hochschule-bochum-cvh-text-v2.pdf
lrwxrwxrwx 1 peter peter     36  5. Okt 2016  logo-hochschule-bochum.pdf -> ../common/logo-hochschule-bochum.pdf
-rwxr-xr-x 1 peter peter     48 19. Okt 11:26 ls
-rw-r--r-- 1 peter peter   2649 19. Okt 11:27 path-01.txt
-rw-r--r-- 1 peter peter   1217 19. Okt 11:33 path-02.txt
lrwxrwxrwx 1 peter peter     22  5. Okt 2016  pgslides.sty -> ../common/pgslides.sty
lrwxrwxrwx 1 peter peter     25  9. Apr 2018  Zeichen_123.pdf -> ../common/Zeichen_123.pdf
cassini/home/peter/bo/2023ws/dbs/20231019> cp -p hello-01.c hello-02.c
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l
insgesamt 304
-rw-r--r-- 1 peter peter   6669 19. Okt 09:40 dbs-20231019.aux
-rw-r--r-- 1 peter peter  54831 19. Okt 09:40 dbs-20231019.log
-rw-r--r-- 1 peter peter   4100 19. Okt 09:40 dbs-20231019.nav
-rw-r--r-- 1 peter peter   1051 19. Okt 09:40 dbs-20231019.out
-rw-r--r-- 1 peter peter 158278 19. Okt 09:40 dbs-20231019.pdf
-rw-r--r-- 1 peter peter      0 19. Okt 09:40 dbs-20231019.snm
-rw-r--r-- 1 peter peter  24860 19. Okt 09:40 dbs-20231019.tex
-rw-r--r-- 1 peter peter    450 19. Okt 09:40 dbs-20231019.toc
-rw-r--r-- 1 peter peter   1494 19. Okt 09:40 dbs-20231019.vrb
-rwxr-xr-x 1 peter peter  15952 19. Okt 11:18 hello-01
-rw-r--r-- 1 peter peter     82 19. Okt 11:18 hello-01.c
-rw-r--r-- 1 peter peter     82 19. Okt 11:18 hello-02.c
lrwxrwxrwx 1 peter peter     48  7. Okt 2018  logo-hochschule-bochum-cvh-text-v2.pdf -> ../common/logo-hochschule-bochum-cvh-text-v2.pdf
lrwxrwxrwx 1 peter peter     36  5. Okt 2016  logo-hochschule-bochum.pdf -> ../common/logo-hochschule-bochum.pdf
-rwxr-xr-x 1 peter peter     48 19. Okt 11:26 ls
-rw-r--r-- 1 peter peter   2649 19. Okt 11:27 path-01.txt
-rw-r--r-- 1 peter peter   1217 19. Okt 11:33 path-02.txt
lrwxrwxrwx 1 peter peter     22  5. Okt 2016  pgslides.sty -> ../common/pgslides.sty
lrwxrwxrwx 1 peter peter     25  9. Apr 2018  Zeichen_123.pdf -> ../common/Zeichen_123.pdf
cassini/home/peter/bo/2023ws/dbs/20231019> cp -p -i hello-01.c hello-02.c
cp: 'hello-02.c' überschreiben? n
cassini/home/peter/bo/2023ws/dbs/20231019> cp -pi hello-01.c hello-02.c
cp: 'hello-02.c' überschreiben? y
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/find-01.txt

deleted100644 → 0
+0 −61
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs> find . -name "*.jpg"
./20231005/zentraler-computer.jpg
./20231005/Computergebouw_van_KLM_voor_automatische_boekingsmethode_Corda_in_Amstelveen._,_Bestanddeelnr_923-3365.jpg
./20231005/online-shop.jpg
./20231005/dbms-ohne-computer.jpg
./20231005/Shopping_online_with_bank_card.jpg
./20231005/computer-arbeitsplaetze-lores.jpg
./20231005/online-shop-lores.jpg
./20231005/computer-arbeitsplaetze.jpg
./20231005/zentraler-computer-lores.jpg
./20231005/Ken_Thompson_(sitting)_and_Dennis_Ritchie_at_PDP-11_(2876612463).jpg
./20231005/A_Day_in_the_Life_of_a_Wartime_Housewife-_Everyday_Life_in_London,_England,_1941_D2379.jpg
./20231012/zentraler-computer.jpg
./20231012/Computergebouw_van_KLM_voor_automatische_boekingsmethode_Corda_in_Amstelveen._,_Bestanddeelnr_923-3365.jpg
./20231012/online-shop.jpg
./20231012/dbms-ohne-computer.jpg
./20231012/Shopping_online_with_bank_card.jpg
./20231012/computer-arbeitsplaetze-lores.jpg
./20231012/online-shop-lores.jpg
./20231012/computer-arbeitsplaetze.jpg
./20231012/zentraler-computer-lores.jpg
./20231012/Ken_Thompson_(sitting)_and_Dennis_Ritchie_at_PDP-11_(2876612463).jpg
./20231012/A_Day_in_the_Life_of_a_Wartime_Housewife-_Everyday_Life_in_London,_England,_1941_D2379.jpg
cassini/home/peter/bo/2023ws/dbs> find . -type d
.
./common
./material
./material/Vorlesungen-Felix
./material/Vorlesungen-Felix/Kryptographie
./material/Vorlesungen-Felix/Datenbanken-Teil-1
./material/Vorlesungen-Felix/IT-Sicherheit
./20231005
./20231018.p0
./20231019
./20231011.p0
./20231012
./20231012/test
cassini/home/peter/bo/2023ws/dbs> find . -type l
./20231005/zentraler-computer.jpg
./20231005/online-shop.jpg
./20231005/Zeichen_123.pdf
./20231005/dbms-ohne-computer.jpg
./20231005/pgslides.sty
./20231005/logo-hochschule-bochum-cvh-text-v2.pdf
./20231005/computer-arbeitsplaetze.jpg
./20231005/logo-hochschule-bochum.pdf
./20231019/test-03.txt
./20231019/Zeichen_123.pdf
./20231019/pgslides.sty
./20231019/logo-hochschule-bochum-cvh-text-v2.pdf
./20231019/logo-hochschule-bochum.pdf
./20231012/zentraler-computer.jpg
./20231012/online-shop.jpg
./20231012/Zeichen_123.pdf
./20231012/dbms-ohne-computer.jpg
./20231012/pgslides.sty
./20231012/logo-hochschule-bochum-cvh-text-v2.pdf
./20231012/computer-arbeitsplaetze.jpg
./20231012/logo-hochschule-bochum.pdf
./.git
cassini/home/peter/bo/2023ws/dbs>

20231019/forum.txt

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 33 19. Okt 12:21 test-04.txt
-rw-r--r-- 1 peter peter 56 19. Okt 12:41 test-05.txt
cat: test-03.txt: Datei oder Verzeichnis nicht gefunden

20231019/grep-01.txt

deleted100644 → 0
+0 −17
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls test-0*.txt
test-01.txt  test-02.txt  test-03.txt  test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> grep schön test-0*.txt
cassini/home/peter/bo/2023ws/dbs/20231019> grep Schön test-0*.txt
test-01.txt:Schön, oder?
test-03.txt:Schön, oder?
test-04.txt:Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019> grep [Ss]chön test-0*.txt
test-01.txt:Schön, oder?
test-03.txt:Schön, oder?
test-04.txt:Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019> grep "\<o[a-z]r\>" test-0*.txt
cassini/home/peter/bo/2023ws/dbs/20231019> grep "\<o[a-z]*r\>" test-0*.txt
test-01.txt:Schön, oder?
test-03.txt:Schön, oder?
test-04.txt:Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/hello-01.c

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("Hello, world!\n");
  return 0;
}

20231019/hello-02

deleted100755 → 0
+0 −1
Original line number Diff line number Diff line
echo "Hello, world!"

20231019/hello-03

deleted100755 → 0
+0 −3
Original line number Diff line number Diff line
#!/bin/bash

echo "Hello, world!"

20231019/if-01.txt

deleted100644 → 0
+0 −19
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test*.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-04.txt
-rw-r--r-- 1 peter peter 56 19. Okt 12:41 test-05.txt
cassini/home/peter/bo/2023ws/dbs/20231019> grep -i schön test-0*.txt
test-01.txt:Schön, oder?
test-03.txt:Schön, oder?
test-04.txt:Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019> grep -i schon test-0*.txt
test-05.txt:Dies ist schon wieder ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019> grep -i schnöd test-0*.txt
cassini/home/peter/bo/2023ws/dbs/20231019> if grep -i schon test-0*.txt; then echo "gefunden"; else echo "nicht gefunden"; fi
test-05.txt:Dies ist schon wieder ein Test.
gefunden
cassini/home/peter/bo/2023ws/dbs/20231019> if grep -i schnöd test-0*.txt; then echo "gefunden"; else echo "nicht gefunden"; fi
nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/if-02.txt

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l /bin/[
-rwxr-xr-x 1 root root 68496 20. Sep 2022  '/bin/['
cassini/home/peter/bo/2023ws/dbs/20231019> x=42
cassini/home/peter/bo/2023ws/dbs/20231019> echo $x
42
cassini/home/peter/bo/2023ws/dbs/20231019> if [ "$x" = "42" ]; then echo "Antwort"; fi
Antwort
cassini/home/peter/bo/2023ws/dbs/20231019> if [ "$x" = "23" ]; then echo "Antwort"; fi
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/links-01.txt

deleted100644 → 0
+0 −25
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-01.txt
Dies ist ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019> cp -pi test-01.txt test-02.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ln -s test-01.txt test-03.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
Dies ist ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019> rm test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
cat: test-03.txt: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cp -pi test-02.txt test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
Dies ist ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/links-02.txt

deleted100644 → 0
+0 −19
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ln test-01.txt test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 2 peter peter 19 19. Okt 12:13 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 2 peter peter 19 19. Okt 12:13 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> rm test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
cat: test-03.txt: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-04.txt
Dies ist ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-04.txt

20231019/links-03.txt

deleted100644 → 0
+0 −30
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 2 peter peter 19 19. Okt 12:13 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 2 peter peter 19 19. Okt 12:13 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-01.txt
Dies ist ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-04.txt
Dies ist ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019> echo "Schön, oder?" >> test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-01.txt
Dies ist ein Test.
Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-04.txt
Dies ist ein Test.
Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
Dies ist ein Test.
Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019> rm test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
cat: test-03.txt: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-04.txt
Dies ist ein Test.
Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 33 19. Okt 12:21 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/links-04.txt

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> which vi
/usr/bin/vi
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 20 22. Dez 2012  /usr/bin/vi -> /etc/alternatives/vi
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l /etc/alternatives/vi
lrwxrwxrwx 1 root root 18  6. Okt 11:50 /etc/alternatives/vi -> /usr/bin/vim.basic
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l /usr/bin/vim.basic
-rwxr-xr-x 1 root root 3646968  4. Mai 12:24 /usr/bin/vim.basic
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/links-05.txt

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test*.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 33 19. Okt 12:21 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> echo "Hallo, Leute!" >> test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test*.txt
-rw-r--r-- 1 peter peter 14 19. Okt 12:26 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 33 19. Okt 12:21 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
Hallo, Leute!
cassini/home/peter/bo/2023ws/dbs/20231019> echo "Ebenfalls guten Tag!" >> test-03.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
Hallo, Leute!
Ebenfalls guten Tag!
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-01.txt
Hallo, Leute!
Ebenfalls guten Tag!
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/links-06.txt

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test*.txt
-rw-r--r-- 1 peter peter 35 19. Okt 12:27 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 33 19. Okt 12:21 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-01.txt
Hallo, Leute!
Ebenfalls guten Tag!
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-04.txt
Dies ist ein Test.
Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/links-07.txt

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test*.txt
-rw-r--r-- 1 peter peter 35 19. Okt 12:27 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 33 19. Okt 12:21 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-01.txt
Hallo, Leute!
Ebenfalls guten Tag!
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-04.txt
Dies ist ein Test.
Schön, oder?
cassini/home/peter/bo/2023ws/dbs/20231019> ln test-04.txt test-01.txt
ln: Die harte Verknüpfung 'test-01.txt' konnte nicht angelegt werden: Die Datei existiert bereits
cassini/home/peter/bo/2023ws/dbs/20231019> ln -f test-04.txt test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test*.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/links-08.txt

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test*.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ls -li test*.txt
2347582 -rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-01.txt
2347580 -rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
2347583 lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
2347582 -rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/loops-01.txt

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> for x in foo bar baz; do echo $x; done
foo
bar
baz
cassini/home/peter/bo/2023ws/dbs/20231019> for x in $(ls test-*.txt); do echo "$x:"; cat "$x"; done
test-01.txt:
Dies ist ein Test.
Schön, oder?
test-02.txt:
Dies ist ein Test.
test-03.txt:
Dies ist ein Test.
Schön, oder?
test-04.txt:
Dies ist ein Test.
Schön, oder?
test-05.txt:
Dies ist noch ein Test.
Dies ist schon wieder ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/ls

deleted100755 → 0
+0 −4
Original line number Diff line number Diff line
#!/bin/bash

echo "SCHLIMME DINGE"
/bin/ls "$@"

20231019/mv-rm-01.txt

deleted100644 → 0
+0 −15
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> mv hello-01.c hello-02.c
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l hello-*.c
-rw-r--r-- 1 peter peter 82 19. Okt 11:18 hello-02.c
cassini/home/peter/bo/2023ws/dbs/20231019> cp -pi hello-02.c hello-01.c
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l hello-*.c
-rw-r--r-- 1 peter peter 82 19. Okt 11:18 hello-01.c
-rw-r--r-- 1 peter peter 82 19. Okt 11:18 hello-02.c
cassini/home/peter/bo/2023ws/dbs/20231019> mv -i hello-01.c hello-02.c
mv: 'hello-02.c' überschreiben? n
cassini/home/peter/bo/2023ws/dbs/20231019> rm -i hello-02.c
rm: reguläre Datei 'hello-02.c' entfernen? n
cassini/home/peter/bo/2023ws/dbs/20231019> rm hello-02.c
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l hello-*.c
-rw-r--r-- 1 peter peter 82 19. Okt 11:18 hello-01.c
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/path-01.txt

deleted100644 → 0
+0 −44
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -lrt
insgesamt 292
lrwxrwxrwx 1 peter peter     22  5. Okt 2016  pgslides.sty -> ../common/pgslides.sty
lrwxrwxrwx 1 peter peter     36  5. Okt 2016  logo-hochschule-bochum.pdf -> ../common/logo-hochschule-bochum.pdf
lrwxrwxrwx 1 peter peter     25  9. Apr 2018  Zeichen_123.pdf -> ../common/Zeichen_123.pdf
lrwxrwxrwx 1 peter peter     48  7. Okt 2018  logo-hochschule-bochum-cvh-text-v2.pdf -> ../common/logo-hochschule-bochum-cvh-text-v2.pdf
-rw-r--r-- 1 peter peter  24860 19. Okt 09:40 dbs-20231019.tex
-rw-r--r-- 1 peter peter   1494 19. Okt 09:40 dbs-20231019.vrb
-rw-r--r-- 1 peter peter    450 19. Okt 09:40 dbs-20231019.toc
-rw-r--r-- 1 peter peter      0 19. Okt 09:40 dbs-20231019.snm
-rw-r--r-- 1 peter peter   1051 19. Okt 09:40 dbs-20231019.out
-rw-r--r-- 1 peter peter   4100 19. Okt 09:40 dbs-20231019.nav
-rw-r--r-- 1 peter peter   6669 19. Okt 09:40 dbs-20231019.aux
-rw-r--r-- 1 peter peter 158278 19. Okt 09:40 dbs-20231019.pdf
-rw-r--r-- 1 peter peter  54831 19. Okt 09:40 dbs-20231019.log
-rw-r--r-- 1 peter peter     82 19. Okt 11:18 hello-01.c
-rwxr-xr-x 1 peter peter  15952 19. Okt 11:18 hello-01
-rw-r--r-- 1 peter peter     48 19. Okt 11:26 ls
cassini/home/peter/bo/2023ws/dbs/20231019> chmod +x ls
cassini/home/peter/bo/2023ws/dbs/20231019> ls -lrt
SCHLIMME DINGE
insgesamt 292
lrwxrwxrwx 1 peter peter     22  5. Okt 2016  pgslides.sty -> ../common/pgslides.sty
lrwxrwxrwx 1 peter peter     36  5. Okt 2016  logo-hochschule-bochum.pdf -> ../common/logo-hochschule-bochum.pdf
lrwxrwxrwx 1 peter peter     25  9. Apr 2018  Zeichen_123.pdf -> ../common/Zeichen_123.pdf
lrwxrwxrwx 1 peter peter     48  7. Okt 2018  logo-hochschule-bochum-cvh-text-v2.pdf -> ../common/logo-hochschule-bochum-cvh-text-v2.pdf
-rw-r--r-- 1 peter peter  24860 19. Okt 09:40 dbs-20231019.tex
-rw-r--r-- 1 peter peter   1494 19. Okt 09:40 dbs-20231019.vrb
-rw-r--r-- 1 peter peter    450 19. Okt 09:40 dbs-20231019.toc
-rw-r--r-- 1 peter peter      0 19. Okt 09:40 dbs-20231019.snm
-rw-r--r-- 1 peter peter   1051 19. Okt 09:40 dbs-20231019.out
-rw-r--r-- 1 peter peter   4100 19. Okt 09:40 dbs-20231019.nav
-rw-r--r-- 1 peter peter   6669 19. Okt 09:40 dbs-20231019.aux
-rw-r--r-- 1 peter peter 158278 19. Okt 09:40 dbs-20231019.pdf
-rw-r--r-- 1 peter peter  54831 19. Okt 09:40 dbs-20231019.log
-rw-r--r-- 1 peter peter     82 19. Okt 11:18 hello-01.c
-rwxr-xr-x 1 peter peter  15952 19. Okt 11:18 hello-01
-rwxr-xr-x 1 peter peter     48 19. Okt 11:26 ls
cassini/home/peter/bo/2023ws/dbs/20231019> cat ls
#!/bin/bash

echo "SCHLIMME DINGE"
/bin/ls "$@"
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/path-02.txt

deleted100644 → 0
+0 −22
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> less ls
#!/bin/bash

echo "SCHLIMME DINGE"
/bin/ls "$@"
cassini/home/peter/bo/2023ws/dbs/20231019> ./ls
SCHLIMME DINGE
dbs-20231019.aux  dbs-20231019.snm  hello-01.c                              pgslides.sty
dbs-20231019.log  dbs-20231019.tex  logo-hochschule-bochum-cvh-text-v2.pdf  Zeichen_123.pdf
dbs-20231019.nav  dbs-20231019.toc  logo-hochschule-bochum.pdf
dbs-20231019.out  dbs-20231019.vrb  ls
dbs-20231019.pdf  hello-01          path-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> echo $PATH
.:/home/peter/usr/bin:/home/peter/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
cassini/home/peter/bo/2023ws/dbs/20231019> PATH=/home/peter/usr/bin:/home/peter/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
cassini/home/peter/bo/2023ws/dbs/20231019> ls
dbs-20231019.aux  dbs-20231019.snm  hello-01.c                              pgslides.sty
dbs-20231019.log  dbs-20231019.tex  logo-hochschule-bochum-cvh-text-v2.pdf  Zeichen_123.pdf
dbs-20231019.nav  dbs-20231019.toc  logo-hochschule-bochum.pdf
dbs-20231019.out  dbs-20231019.vrb  ls
dbs-20231019.pdf  hello-01          path-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/pipes-01.txt

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-05.txt
Dies ist noch ein Test.
Dies ist schon wieder ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-05.txt | sed -e 's/Test/Toast/'
Dies ist noch ein Toast.
Dies ist schon wieder ein Toast.
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-05.txt | sed -e 's/Test/Toast/' | grep wieder
Dies ist schon wieder ein Toast.
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/pipes-02.txt

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> find . -type l
./test-03.txt
./Zeichen_123.pdf
./pgslides.sty
./logo-hochschule-bochum-cvh-text-v2.pdf
./logo-hochschule-bochum.pdf
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l $(find . -type l)
lrwxrwxrwx 1 peter peter 48  7. Okt 2018  ./logo-hochschule-bochum-cvh-text-v2.pdf -> ../common/logo-hochschule-bochum-cvh-text-v2.pdf
lrwxrwxrwx 1 peter peter 36  5. Okt 2016  ./logo-hochschule-bochum.pdf -> ../common/logo-hochschule-bochum.pdf
lrwxrwxrwx 1 peter peter 22  5. Okt 2016  ./pgslides.sty -> ../common/pgslides.sty
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 ./test-03.txt -> test-01.txt
lrwxrwxrwx 1 peter peter 25  9. Apr 2018  ./Zeichen_123.pdf -> ../common/Zeichen_123.pdf
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/pipes-03.txt

deleted100644 → 0
+0 −15
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> echo "ls -l"
ls -l
cassini/home/peter/bo/2023ws/dbs/20231019> $(echo "ls -l")
insgesamt 432
-rw-r--r-- 1 peter peter    446 19. Okt 11:50 chmod-01.txt
-rw-r--r-- 1 peter peter    903 19. Okt 11:56 chmod-02.txt
-rw-r--r-- 1 peter peter    467 19. Okt 12:07 chmod-03.txt
-rw-r--r-- 1 peter peter   4511 19. Okt 11:42 cp-01.txt
-rw-r--r-- 1 peter peter   6669 19. Okt 09:40 dbs-20231019.aux
[...]
-rw-r--r-- 1 peter peter     33 19. Okt 12:21 test-04.txt
-rw-r--r-- 1 peter peter     56 19. Okt 12:41 test-05.txt
-rw-r--r-- 1 peter peter    712 19. Okt 11:52 wireshark-01.txt
lrwxrwxrwx 1 peter peter     25  9. Apr 2018  Zeichen_123.pdf -> ../common/Zeichen_123.pdf
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/shell-scripts-01.txt

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> cat hello-03
#!/bin/bash

echo "Hello, world!"
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l hello-03
-rwxr-xr-x 1 peter peter 34 19. Okt 12:08 hello-03
cassini/home/peter/bo/2023ws/dbs/20231019> ./hello-03
Hello, world!
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/streams-01.txt

deleted100644 → 0
+0 −18
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-04.txt
cassini/home/peter/bo/2023ws/dbs/20231019> echo "Dies ist noch ein Test." > test-05.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-04.txt
-rw-r--r-- 1 peter peter 24 19. Okt 12:41 test-05.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-05.txt
Dies ist noch ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019> echo "Dies ist schon wieder ein Test." >> test-05.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-05.txt                                   Dies ist noch ein Test.
Dies ist schon wieder ein Test.
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/streams-02.txt

deleted100644 → 0
+0 −19
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-01.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 2 peter peter 33 19. Okt 12:21 test-04.txt
-rw-r--r-- 1 peter peter 56 19. Okt 12:41 test-05.txt
cassini/home/peter/bo/2023ws/dbs/20231019> rm test-01.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
cat: test-03.txt: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 33 19. Okt 12:21 test-04.txt
-rw-r--r-- 1 peter peter 56 19. Okt 12:41 test-05.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt > forum.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt > forum.txt
cat: test-03.txt: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231019> cat forum.txt
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/streams-03.txt

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 33 19. Okt 12:21 test-04.txt
-rw-r--r-- 1 peter peter 56 19. Okt 12:41 test-05.txt
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l test-*.txt > forum.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt
cat: test-03.txt: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-03.txt 2>> forum.txt
cassini/home/peter/bo/2023ws/dbs/20231019> cat forum.txt
-rw-r--r-- 1 peter peter 19 19. Okt 12:13 test-02.txt
lrwxrwxrwx 1 peter peter 11 19. Okt 12:14 test-03.txt -> test-01.txt
-rw-r--r-- 1 peter peter 33 19. Okt 12:21 test-04.txt
-rw-r--r-- 1 peter peter 56 19. Okt 12:41 test-05.txt
cat: test-03.txt: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/streams-04.txt

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l *.bc
-rwxr-xr-x 1 peter peter 11 19. Okt 12:10 test-01.bc
-rwxr-xr-x 1 peter peter 26 19. Okt 12:11 test-02.bc
cassini/home/peter/bo/2023ws/dbs/20231019> cat test-01.bc
2 + 2
quit
cassini/home/peter/bo/2023ws/dbs/20231019> bc < test-01.bc
4
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/streams-05.txt

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> echo "2 + 2"
2 + 2
cassini/home/peter/bo/2023ws/dbs/20231019> echo "2 + 2" | bc
4
cassini/home/peter/bo/2023ws/dbs/20231019>

20231019/test-03.txt

deleted120000 → 0
+0 −1
Original line number Diff line number Diff line
test-01.txt
 No newline at end of file

20231019/test-05.txt

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
Dies ist noch ein Test.
Dies ist schon wieder ein Test.

20231019/wireshark-01.txt

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> wireshark
cassini/home/peter/bo/2023ws/dbs/20231019> which wireshark
/usr/bin/wireshark
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l /usr/bin/wireshark
-rwxr-xr-x 1 root root 9511896 14. Jun 16:15 /usr/bin/wireshark
cassini/home/peter/bo/2023ws/dbs/20231019> ls -l /usr/bin/dumpcap
-rwxr-xr-- 1 root wireshark 125536 14. Jun 16:15 /usr/bin/dumpcap
cassini/home/peter/bo/2023ws/dbs/20231019> id
uid=1501(peter) gid=1501(peter) Gruppen=1501(peter),20(dialout),24(cdrom),25(floppy),29(audio),44(video),46(plugdev),50(staff),104(scanner),113(netdev),114(bluetooth),120(fuse),141(docker),146(air-quality-sensor),147(wireshark)
cassini/home/peter/bo/2023ws/dbs/20231019>

20231026/hello-01

deleted100755 → 0
+0 −1
Original line number Diff line number Diff line
echo "Hello, world!"

20231026/hello-02

deleted100755 → 0
+0 −5
Original line number Diff line number Diff line
#!/bin/bash

echo -n "Wie heißen Sie? "
read name
echo "Hallo, $name!"

20231026/loops-02.txt

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs> for x in 20231019 20231026; do ( cd $x; pdflatex dbs-$x.tex ); done

20231026/mailbox.txt

deleted100644 → 0
+0 −53
Original line number Diff line number Diff line
From elon.musk@hs-bochum.de Thu Oct 26 12:32:51 2023
Return-path: <elon.musk@hs-bochum.de>
Envelope-to: peter@phoenix.intern
Delivery-date: Thu, 26 Oct 2023 12:32:51 +0200
Received: from [127.0.0.1] (helo=m31.gerwinski.de)
	by cassini with esmtp (Exim 4.96)
	(envelope-from <elon.musk@hs-bochum.de>)
	id 1qvxfW-000Yl7-1s
	for peter@phoenix.intern;
	Thu, 26 Oct 2023 12:32:51 +0200
Received: from [195.37.15.82] (helo=cassini)
	by m31.gerwinski.de with smtp (Exim 4.94.2)
	(envelope-from <elon.musk@hs-bochum.de>)
	id 1qvxeT-006C4R-Pr
	for peter@gerwinski.de; Thu, 26 Oct 2023 12:32:51 +0200
From: Elon Musk <elon@musk.com>
To: Bill Gates <gates@microsoft.com>
Subject: New Job
Message-Id: <E1qvxfW-000Yl7-1s@cassini>
Date: Thu, 26 Oct 2023 12:32:51 +0200
Content-Length: 43
Lines: 1

Hi, Bill! I'm now at hs-bochum.de! B-) CU!

From peter.gerwinski@hs-bochum.de Thu Oct 26 12:27:58 2023
Return-path: <peter.gerwinski@hs-bochum.de>
Envelope-to: peter@phoenix.intern
Delivery-date: Thu, 26 Oct 2023 12:27:58 +0200
Received: from [127.0.0.1] (helo=m31.gerwinski.de)
	by cassini with esmtp (Exim 4.96)
	(envelope-from <peter.gerwinski@hs-bochum.de>)
	id 1qvxam-000YXM-3D
	for peter@phoenix.intern;
	Thu, 26 Oct 2023 12:27:58 +0200
Received: from [195.37.15.82] (helo=cassini)
	by m31.gerwinski.de with smtp (Exim 4.94.2)
	(envelope-from <peter.gerwinski@hs-bochum.de>)
	id 1qvxaO-006BmH-FT
	for peter@gerwinski.de; Thu, 26 Oct 2023 12:27:57 +0200
Subject: Test
Message-Id: <E1qvxam-000YXM-3D@cassini>
From: peter.gerwinski@hs-bochum.de
Date: Thu, 26 Oct 2023 12:27:58 +0200
Content-Length: 45
Lines: 5

Hallo,

dies ist ein Test.

Schöne Grüße!

20231026/nc-01.txt

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line
cassini/home/peter> nc -p 1234 -l
Hallo?
Hier auch hallo! :-)
Ah. Schön, Dich zu treffen.
Ganz meinerseits.
Tschüs!
Tschüs!
^C
cassini/home/peter>

8< ---------------------------------------------------------------------

cassini/home/peter/bo/2023ws/dbs/20231026> nc 127.0.0.1 1234
Hallo?
Hier auch hallo! :-)
Ah. Schön, Dich zu treffen.
Ganz meinerseits.
Tschüs!
Tschüs!
cassini/home/peter/bo/2023ws/dbs/20231026> 

20231026/nc-02.txt

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231026> cat hello-01
echo "Hello, world!"
cassini/home/peter/bo/2023ws/dbs/20231026> chmod +x hello-01
cassini/home/peter/bo/2023ws/dbs/20231026> nc -p 1234 -l -c ./hello-01
cassini/home/peter/bo/2023ws/dbs/20231026> 

8< ---------------------------------------------------------------------

cassini/home/peter> nc localhost 1234
Hello, world!
cassini/home/peter> 

20231026/nc-03.txt

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231026> cat hello-02
#!/bin/bash

echo -n "Wie heißen Sie? "
read name
echo "Hallo, $name!"
cassini/home/peter/bo/2023ws/dbs/20231026> nc -p 1234 -l -c ./hello-02
cassini/home/peter/bo/2023ws/dbs/20231026> 

8< ---------------------------------------------------------------------

cassini/home/peter> nc localhost 1234
Wie heißen Sie? Peter
Hallo, Peter!
Sie haben Post in /var/mail/peter.
cassini/home/peter> 

20231026/pipes-04.txt

deleted100644 → 0
+0 −547

File deleted.

Preview size limit exceeded, changes collapsed.

20231026/sed-01.txt

deleted100644 → 0
+0 −6
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231019> grep SKripten *.tex
dbs-20231019.tex:      Parameter in Shell-SKripten:
cassini/home/peter/bo/2023ws/dbs/20231019> sed -i 's/SKripten/Skripten/' *.tex
cassini/home/peter/bo/2023ws/dbs/20231019> cd ../20231026
cassini/home/peter/bo/2023ws/dbs/20231026> sed -i 's/SKripten/Skripten/' *.tex
cassini/home/peter/bo/2023ws/dbs/20231026>

20231026/smtp-01.txt

deleted100644 → 0
+0 −22
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231026> nc 88.198.170.60 25
220 mx1.gerwinski.de ESMTP Exim 4.94.2 Thu, 26 Oct 2023 12:26:53 +0200
HELO cassini
250 mx1.gerwinski.de Hello cassini [195.37.15.82]
MAIL FROM: <peter.gerwinski@hs-bochum.de>
250 OK
RCPT TO: <peter@gerwinski.de>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
Subject: Test

Hallo,

dies ist ein Test.

Schöne Grüße!
.
250 OK id=1qvxaO-006BmH-FT
QUIT
221 mx1.gerwinski.de closing connection
cassini/home/peter/bo/2023ws/dbs/20231026>

20231026/smtp-02.txt

deleted100644 → 0
+0 −25
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231026> nc 88.198.170.60 25
220 mx1.gerwinski.de ESMTP Exim 4.94.2 Thu, 26 Oct 2023 12:30:18 +0200
HELO cassini
250 mx1.gerwinski.de Hello cassini [195.37.15.82]
MAIL FROM: <elon.musk@hs-bochum.de>
250 OK
RCPT TO: <peter@gerwinski.de>
451-195.37.15.82 is not yet authorized to deliver mail from
451 <elon.musk@hs-bochum.de> to <peter@gerwinski.de>. Please try later.
MAIL FROM: <elon.musk@hs-bochum.de>
503 sender already given
RCPT TO: <peter@gerwinski.de>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
From: Elon Musk <elon@musk.com>
To: Bill Gates <gates@microsoft.com>
Subject: New Job

Hi, Bill! I'm now at hs-bochum.de! B-) CU!
.
250 OK id=1qvxeT-006C4R-Pr
QUIT
221 mx1.gerwinski.de closing connection
cassini/home/peter/bo/2023ws/dbs/20231026>

20231026/x-01

deleted100755 → 0
+0 −1
Original line number Diff line number Diff line
#!/bin/ls -l

20231026/x-02

deleted100755 → 0
+0 −1
Original line number Diff line number Diff line
#!/bin/ls -l dbs-20231026.tex

20231102/Ethernetpaket.pdf

deleted120000 → 0
+0 −1
Original line number Diff line number Diff line
../common/Ethernetpaket.pdf
 No newline at end of file

20231102/hello-01

deleted100755 → 0
+0 −3
Original line number Diff line number Diff line
#!/bin/bash

echo "Hello, world!"

20231102/routing-01.txt

deleted100644 → 0
+0 −25
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> /sbin/route -n
Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.128.29.1     0.0.0.0         UG    0      0        0 wlan0
10.128.29.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
cassini/home/peter/bo/2023ws/dbs/20231102> /sbin/ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Lokale Schleife)
        RX packets 2141231  bytes 2409535237 (2.2 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2141231  bytes 2409535237 (2.2 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.128.29.120  netmask 255.255.255.0  broadcast 10.128.29.255
        inet6 fe80::c685:8ff:fe4a:5042  prefixlen 64  scopeid 0x20<link>
        ether c4:85:08:4a:50:42  txqueuelen 1000  (Ethernet)
        RX packets 2051475  bytes 905394925 (863.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4252967  bytes 2323112955 (2.1 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

cassini/home/peter/bo/2023ws/dbs/20231102>

20231102/routing-02.txt

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> ip route
default via 10.128.29.1 dev wlan0
10.128.29.0/24 dev wlan0 proto kernel scope link src 10.128.29.120
cassini/home/peter/bo/2023ws/dbs/20231102> /sbin/route -n
Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.128.29.1     0.0.0.0         UG    0      0        0 wlan0
10.128.29.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
cassini/home/peter/bo/2023ws/dbs/20231102>

20231102/routing-03.txt

deleted100644 → 0
+0 −28
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> /sbin/route -n
Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.128.29.1     0.0.0.0         UG    0      0        0 wlan0
10.128.29.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
cassini/home/peter/bo/2023ws/dbs/20231102> traceroute -n 88.198.170.60
traceroute to 88.198.170.60 (88.198.170.60), 30 hops max, 60 byte packets
 1  10.128.29.1  2.345 ms  2.854 ms  2.848 ms
 2  * * *
 3  188.1.231.93  4.512 ms  4.727 ms  5.389 ms
 4  188.1.144.178  10.100 ms  10.073 ms  10.072 ms
 5  188.1.242.10  9.438 ms  9.111 ms  11.022 ms
 6  213.239.224.69  15.161 ms  13.278 ms 213.239.224.85  12.722 ms
 7  213.239.229.62  12.697 ms  13.011 ms 213.239.229.58  12.491 ms
 8  144.76.104.6  12.759 ms  12.650 ms  16.253 ms
 9  144.76.104.6  15.634 ms  12.525 ms  12.840 ms
cassini/home/peter/bo/2023ws/dbs/20231102> traceroute 88.198.170.60
traceroute to 88.198.170.60 (88.198.170.60), 30 hops max, 60 byte packets
 1  _gateway (10.128.29.1)  2.266 ms  2.802 ms  2.782 ms
 2  * * *
 3  cr-dui1-pwether10722.x-win.dfn.de (188.1.231.93)  5.425 ms  4.740 ms  5.416 ms
 4  cr-fra2-be16.x-win.dfn.de (188.1.144.178)  9.844 ms  9.828 ms  8.831 ms
 5  kr-fra307.x-win.dfn.de (188.1.242.10)  9.796 ms  9.782 ms  9.765 ms
 6  core23.fsn1.hetzner.com (213.239.224.69)  13.576 ms core22.fsn1.hetzner.com (213.239.224.13)  12.551 ms core21.fsn1.hetzner.com (213.239.224.101)  12.231 ms
 7  ex9k2.dc10.fsn1.hetzner.com (213.239.229.58)  12.722 ms static.213-239-254-86.clients.your-server.de (213.239.254.86)  16.846 ms ex9k2.dc10.fsn1.hetzner.com (213.239.229.62)  17.091 ms
 8  static.6.104.76.144.clients.your-server.de (144.76.104.6)  17.633 ms  14.226 ms  13.191 ms
 9  static.6.104.76.144.clients.your-server.de (144.76.104.6)  13.144 ms *  15.826 ms
cassini/home/peter/bo/2023ws/dbs/20231102>

20231102/services-01.txt

deleted100644 → 0
+0 −14
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> cat hello-01
#!/bin/bash

echo "Hello, world!"
cassini/home/peter/bo/2023ws/dbs/20231102> chmod +x hello-01
cassini/home/peter/bo/2023ws/dbs/20231102> ./hello-01
Hello, world!
cassini/home/peter/bo/2023ws/dbs/20231102> nc -p 1234 -l -c ./hello-01
cassini/home/peter/bo/2023ws/dbs/20231102>

8< ---------------------------------------------------------------------

cassini/home/peter> nc 127.0.0.1 1234
Hello, world!

20231102/services-02.txt

deleted100644 → 0
+0 −18
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> cat hello-02
#!/bin/bash

echo -n "Name: "
read name
echo "Hallo, $name!"
cassini/home/peter/bo/2023ws/dbs/20231102> ./hello-02
Name: Peter
Hallo, Peter!
cassini/home/peter/bo/2023ws/dbs/20231102> nc -p 1234 -l -c ./hello-02
cassini/home/peter/bo/2023ws/dbs/20231102>

8< ---------------------------------------------------------------------

cassini/home/peter> nc 127.0.0.1 1234
Name: Peter
Hallo, Peter!
cassini/home/peter>

20231102/smtp-01.txt

deleted100644 → 0
+0 −26
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> nc 88.198.170.60 25
220 mx1.gerwinski.de ESMTP Exim 4.94.2 Thu, 02 Nov 2023 11:24:26 +0100
Hallo?
500 unrecognized command
HELO cassini
250 mx1.gerwinski.de Hello cassini [195.37.15.82]
MAIL FROM: <peter.gerwinski@hs-bochum.de>
250 OK
RCPT TO: <peter@gerwinski.de>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
From: Prof. Dr. rer. nat. Peter Gerwinski <peter.gerwinski@hs-bochum.de>
To: Peter Gerwinski <peter@gerwinski.de>
Subject: Test

Hallo,

dies ist ein Test.

Schöne Grüße!
.
250 OK id=1qyUuM-00GWUO-5J
QUIT
221 mx1.gerwinski.de closing connection
cassini/home/peter/bo/2023ws/dbs/20231102>

20231102/smtp-02.txt

deleted100644 → 0
+0 −23
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> nc 88.198.170.60 25
220 mx1.gerwinski.de ESMTP Exim 4.94.2 Thu, 02 Nov 2023 11:36:40 +0100
HELO cassini
250 mx1.gerwinski.de Hello cassini [195.37.15.82]
MAIL FROM: <peter.gerwinski@hs-bochum.de>
250 OK
RCPT TO: <peter@gerwinski.de>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
Content-Length: 5
Subject: Punkt-Test

vor dem Punkt
.
nach dem250 OK id=1qyV4V-00GXJw-Ld
 Punkt
500 unrecognized command
Schade.
500 unrecognized command
QUIT
221 mx1.gerwinski.de closing connection
cassini/home/peter/bo/2023ws/dbs/20231102>

20231102/smtp-03.txt

deleted100644 → 0
+0 −19
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> nc 88.198.170.60 25
220 mx1.gerwinski.de ESMTP Exim 4.94.2 Thu, 02 Nov 2023 11:38:20 +0100
HELO cassini
250 mx1.gerwinski.de Hello cassini [195.37.15.82]
MAIL FROM: <peter.gerwinski@hs-bochum.de>
250 OK
RCPT TO: <peter@gerwinski.de>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
Lines: 5

vor dem Punkt
.
na250 OK id=1qyV6A-00GXPs-Gi
500 unrecognized command
QUIT
221 mx1.gerwinski.de closing connection
cassini/home/peter/bo/2023ws/dbs/20231102>

20231102/smtp-04.txt

deleted100644 → 0
+0 −34
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> nc 88.198.170.60 25
220 mx1.gerwinski.de ESMTP Exim 4.94.2 Thu, 02 Nov 2023 11:43:37 +0100
HELO cassini
250 mx1.gerwinski.de Hello cassini [195.37.15.82]
MAIL FROM: Jeff Bezos <bezos@amazon.com>
250 OK
RCPT TO: Peter Gerwinski <peter@gerwinski.de>
451-195.37.15.82 is not yet authorized to deliver mail from <bezos@amazon.com>
451 to <peter@gerwinski.de>. Please try later.
QUIT
221 mx1.gerwinski.de closing connection
cassini/home/peter/bo/2023ws/dbs/20231102> nc 88.198.170.60 25
220 mx1.gerwinski.de ESMTP Exim 4.94.2 Thu, 02 Nov 2023 11:45:12 +0100
HELO cassini
250 mx1.gerwinski.de Hello cassini [195.37.15.82]
MAIL FROM: Jeff Bezos <bezos@amazon.com>
250 OK
RCPT TO: Peter Gerwinski <peter@gerwinski.de>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
From: Elon Musk <musk@tesla.com>
To: Bill Gates <gates@microsoft.com>
Subject: Darlehensangebot

Brauchen Sie schnell Geld?
Hier können Sie schnell Geld verlieren!
Hier klicken und sämtliche Passwörter eingeben:
[KLICK]
.
250 OK id=1qyVCl-00GXuG-JM
QUIT
221 mx1.gerwinski.de closing connection
cassini/home/peter/bo/2023ws/dbs/20231102>

20231102/smtp-05.txt

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> nc 88.198.170.60 25
220 mx1.gerwinski.de ESMTP Exim 4.94.2 Thu, 02 Nov 2023 11:51:13 +0100
HELO cassini
250 mx1.gerwinski.de Hello cassini [195.37.15.82]
MAIL FROM: <bezos@amazon.com>
250 OK
RCPT TO: <peter.gerwinski@hs-bochum.de>
550 relay not permitted
QUIT
221 mx1.gerwinski.de closing connection
cassini/home/peter/bo/2023ws/dbs/20231102>

20231102/ssh-01.txt

deleted100644 → 0
+0 −22
Original line number Diff line number Diff line
pgerwinski@main-0:~$ nc -l -p 1234
Hallo?
pgerwinski@main-0:~$

8< ---------------------------------------------------------------------

cassini/home/peter> nc main-0.cvh-server.de 1234
main-0.cvh-server.de [88.99.194.201] 1234 (?) : Connection refused
cassini/home/peter> ssh main-0.cvh-server.de
Linux main-0 6.1.0-11-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-4 (2023-08-08) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Nov  2 12:56:11 2023 from 195.37.15.82
pgerwinski@main-0:~$ nc localhost 1234
Hallo?
^C
pgerwinski@main-0:~$ 

20231102/ssh-02.txt

deleted100644 → 0
+0 −17
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs/20231102> ssh -X -L 2345:localhost:1234 main-0.cvh-server.de
Linux main-0 6.1.0-11-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-4 (2023-08-08) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Nov  2 12:57:37 2023 from 195.37.15.82
pgerwinski@main-0:~$ nc -l -p 1234
Hallo, da bin ich! :-)

8< ---------------------------------------------------------------------

cassini/home/peter> nc localhost 2345
Hallo, da bin ich! :-)

20231102/tcpdump-01.txt

deleted100644 → 0
+0 −21
Original line number Diff line number Diff line
12:23:21.181037 IP 10.128.29.120.38042 > 195.37.15.39.22: Flags [P.], seq 3563445:3564597, ack 4140, win 501, length 1152
12:23:21.181049 IP 195.37.15.39.22 > 10.128.29.120.38042: Flags [P.], seq 4140:4176, ack 3552141, win 5157, length 36
12:23:21.181118 IP 195.37.15.39.22 > 10.128.29.120.38042: Flags [.], ack 3554577, win 5157, length 0
12:23:21.181126 IP 195.37.15.39.22 > 10.128.29.120.38042: Flags [.], ack 3558097, win 5157, length 0
12:23:21.182058 IP 195.37.15.39.22 > 10.128.29.120.38042: Flags [.], ack 3561017, win 5157, length 0
12:23:21.182772 IP 195.37.15.39.22 > 10.128.29.120.38042: Flags [.], ack 3564597, win 5157, length 0
12:23:21.189369 IP 10.128.29.120.36290 > 88.99.194.201.64738: UDP, length 101
12:23:21.196348 IP 10.128.29.120.40313 > 88.99.194.245.443: Flags [P.], seq 274090:275179, ack 8103, win 2872, length 1089
12:23:21.209739 IP 10.128.29.120.36290 > 88.99.194.201.64738: UDP, length 101
12:23:21.222529 IP 10.128.29.120.38042 > 195.37.15.39.22: Flags [.], ack 4176, win 501, length 0
12:23:21.223089 IP 88.99.194.245.443 > 10.128.29.120.40313: Flags [P.], seq 8103:8252, ack 275179, win 9243, length 149
12:23:21.228356 IP 10.128.29.120.40313 > 88.99.194.245.443: Flags [P.], seq 275179:276140, ack 8252, win 2872, length 961
12:23:21.230318 IP 10.128.29.120.36290 > 88.99.194.201.64738: UDP, length 101
12:23:21.250856 IP 10.128.29.120.36290 > 88.99.194.201.64738: UDP, length 101
12:23:21.257762 IP 88.99.194.245.443 > 10.128.29.120.40313: Flags [P.], seq 8252:8397, ack 276140, win 9243, length 145
12:23:21.258390 IP 10.128.29.120.40313 > 88.99.194.245.443: Flags [P.], seq 276140:277241, ack 8397, win 2872, length 1101
^C
5545 packets captured
5636 packets received by filter
0 packets dropped by kernel
cassini/root# tcpdump -n -i wlan0

20231102/tcpdump-02.txt

deleted100644 → 0
+0 −93
Original line number Diff line number Diff line
12:26:16.721144 IP 10.128.29.120.36290 > 88.99.194.201.64738: UDP, length 102
        0x0000:  45e0 0082 ad7c 4000 4011 48ea 0a80 1d78
        0x0010:  5863 c2c9 8dc2 fce2 006e 7f77 e554 76a8
        0x0020:  6ebc 46e3 aed0 e632 2a22 a62b 66b1 34c8
        0x0030:  4465 dfef 8b40 7708 2129 11b4 3c03 f141
        0x0040:  f376 bfbc 830c 5ff6 c575 f5a1 9771 3d12
        0x0050:  067e 4b1c f274 8b39 9a52 ac02 a31b 9df0
        0x0060:  7501 61f7 68b5 e8e2 c7b2 3f7d 610a d16b
        0x0070:  78ab b056 31ff 76fb 9947 986c 40de 9fc6
        0x0080:  559e
12:26:16.729240 IP 10.128.29.120.40313 > 88.99.194.245.443: Flags [P.], seq 58714:59895, ack 1628, win 2913, length 1181
        0x0000:  4500 04c5 42a5 4000 4006 b03d 0a80 1d78
        0x0010:  5863 c2f5 9d79 01bb ef86 2a4c b23f f7b0
        0x0020:  5018 0b61 e620 0000 1703 0304 9800 0000
        0x0030:  0000 033e 7dc7 4216 6e0d c0df 4358 f7f6
        0x0040:  ced5 c96c 9900 a44a 5dab 23b1 c190 5363
        0x0050:  150a ee8d 86eb 516d 453b 0864 a391 e079
        0x0060:  f4cc b00e 2b1d d4e0 39f3 0d15 6571 a4c6
        0x0070:  e6af 732d 127c a63a 9401 00ef 312b 9365
        0x0080:  e137 3e12 1fb3 e7bd 9bc4 db8e d452 b0a1
        0x0090:  f76a 481f 2155 f22f 19a5 3d8e f7da 579d
        0x00a0:  3025 d2a8 680e d872 67f8 ac36 218a 28e9
        0x00b0:  e4ed 8dfc 65a0 94ec d467 5305 e4a0 d5ae
        0x00c0:  e8c2 f366 f722 161d 20b2 f883 468a 65c1
        0x00d0:  019a 9986 3955 3756 dcf6 0b4c 3718 8e9d
        0x00e0:  aa71 3ef4 334d bc54 454b fe70 76c1 2e72
        0x00f0:  318f 028c c106 5278 0514 c209 7a6e 862b
        0x0100:  16ce eea6 411a 2756 e2bd a972 a55b 1381
        0x0110:  f5df 618b 6369 13f6 12d0 2245 3870 831d
        0x0120:  3c3d 6d4b 038a d775 9736 f13b 7f8c 8f17
        0x0130:  956f 36a9 a41b ae8b 4060 3f3b f57a c1d1
        0x0140:  72d8 dfd5 95ba cf56 0f1e b70f 10ad a466
        0x0150:  9d10 677f 1602 92b4 4f6c ed04 6555 a7a0
        0x0160:  ac94 addd 150d c955 ec93 2f33 8eb1 d689
        0x0170:  88ee a417 e643 a396 eafe d8ed 5408 107d
        0x0180:  00f0 bdb4 d8db 6883 b109 f4eb d930 7f31
        0x0190:  42bb 5e41 8a9b 8a22 e51f 6407 88f0 1e9f
        0x01a0:  014a 4c6b 17c5 fd9b 9382 c029 ab27 ce5d
        0x01b0:  e922 0129 6ae9 60d9 e898 60ba 22be 138b
        0x01c0:  396d c9a7 34a6 211b 275d bbf8 df0d fe8f
        0x01d0:  4cd9 0c14 580e 77bd 1b94 43fb 5c31 9a37
        0x01e0:  d297 09e1 1b6e 5455 fbbc 5321 4621 5a80
        0x01f0:  ff5c 1747 4dce 4621 3525 797c 9a96 a2bf
        0x0200:  88b5 978c f9cc 3782 823c f344 229e 04ce
        0x0210:  c964 72eb a7a6 4fef 4f14 d7c1 998f fd48
        0x0220:  649e 9047 97a8 e4c5 b538 20ed 81f6 2820
        0x0230:  9728 29e9 165c 6ded 0b9b 58ab 64d2 5e1d
        0x0240:  46cf 2394 0c2b f7f1 eda5 1e0e e4ed 72e5
        0x0250:  ff3a 8460 bea5 4b11 a85b ab8d 6d29 4747
        0x0260:  d240 4197 7225 5c97 c33c f724 36d0 2fb1
        0x0270:  75c1 0991 9d0b 5c84 4955 e9d8 0dee 54fc
        0x0280:  2405 c69a b97b e831 3ba4 da08 1041 9b3b
        0x0290:  06c7 216a 1a47 6bc2 1b15 19d7 a214 9fe9
        0x02a0:  d4ac b6ff 1af9 6bb1 bfa5 a84f ed8c 0a43
        0x02b0:  fa1c 731c c2c1 3190 2833 0707 5745 36f9
        0x02c0:  6d6b 355f 70d5 cbac 2662 6104 9020 3b8b
        0x02d0:  4e28 1c1b 7477 d40f 2c48 8456 9bb0 9c86
        0x02e0:  f176 f5fd 3e04 23fa 7bb3 aa12 47f2 94b6
        0x02f0:  3d80 fe2f db2c 9854 e6da a3da 2c40 4b07
        0x0300:  2079 d98e 52a6 f242 e088 3a5a faef c8fc
        0x0310:  4017 42ba a78f 2d72 0d7e 8941 bdcc ce3e
        0x0320:  8eb6 c030 08cb 3f68 8c2f 80df 2e90 d390
        0x0330:  d75f f575 dea3 b078 0ffd c8a4 35c2 f8ea
        0x0340:  381d 2014 7b11 6d58 78a6 6bf9 b770 1249
        0x0350:  1766 b8a5 8943 3298 d0f3 5bad a329 ea2b
        0x0360:  f061 7475 5ab7 e8fa 0dc9 85e0 c65b e1b8
        0x0370:  f7ca 726c a650 40e3 f88e 8d74 ad9e 2372
        0x0380:  01f0 fe5a c278 9a3b 4aaf 8cee 8004 6739
        0x0390:  7aea c8a4 a4af bff1 3837 a4be ffc3 8a4a
        0x03a0:  0740 f63f 347e bd07 fc3d 338d 3535 c61e
        0x03b0:  ba22 f4c4 20fa 092c bbb6 03d7 03e0 9d22
        0x03c0:  b360 0e23 1b2b ed54 6d0e 6935 c30a c5ce
        0x03d0:  9c4f 6870 6b48 2083 a9ae cf7a 09b2 ffbf
        0x03e0:  5957 0030 eb89 12eb de08 56b6 25b3 f33c
        0x03f0:  7275 ceb6 cbd7 1f60 e8cf c362 dcef f06e
        0x0400:  5449 5204 aec4 c666 2743 0f51 51d1 442d
        0x0410:  3f78 eaf1 ce3e 1b91 5a44 3f11 fd73 9999
        0x0420:  4afe bbc2 6a65 660a 4b73 0070 30c7 4798
        0x0430:  b6b3 0059 ded5 3ee4 6a38 751f a5a8 8350
        0x0440:  849c 92fe b7b9 6f09 2ca8 72b0 4943 f247
        0x0450:  ec4d 62f1 8b9c 2fd4 2af9 a5e0 e6ba 5b39
        0x0460:  3ccb 635d a6b5 757c 6743 de67 4d11 6af9
        0x0470:  0337 b09b cf5c 76d8 58d4 9bea 5493 0d18
        0x0480:  bd1e 7d13 5351 2693 c3f1 ead8 5b64 065c
        0x0490:  51cc 5833 e73f 7290 d987 8454 24d2 8fad
        0x04a0:  94c0 55b5 d9f0 9ac3 2c69 d14c bfb7 5052
        0x04b0:  2390 afc6 d666 8edb 7931 c7e9 1544 11da
        0x04c0:  7cbd 7647 a1
^C
803 packets captured
817 packets received by filter
0 packets dropped by kernel
cassini/root# tcpdump -n -i wlan0 -x

20231102/tcpdump-03.txt

deleted100644 → 0
+0 −38
Original line number Diff line number Diff line
cassini/root# tcpdump -n -i lo -x port 1234
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on lo, link-type EN10MB (Ethernet), snapshot length 262144 bytes
12:31:29.286657 IP 127.0.0.1.55462 > 127.0.0.1.1234: Flags [S], seq 3414759276, win 65495, options [mss 65495,sackOK,TS val 2171609293 ecr 0,nop,wscale 7], length 0
        0x0000:  4500 003c 344e 4000 4006 086c 7f00 0001
        0x0010:  7f00 0001 d8a6 04d2 cb89 176c 0000 0000
        0x0020:  a002 ffd7 fe30 0000 0204 ffd7 0402 080a
        0x0030:  8170 20cd 0000 0000 0103 0307
12:31:29.286668 IP 127.0.0.1.1234 > 127.0.0.1.55462: Flags [S.], seq 1205734117, ack 3414759277, win 65483, options [mss 65495,sackOK,TS val 2171609293 ecr 2171609293,nop,wscale 7], length 0
        0x0000:  4500 003c 0000 4000 4006 3cba 7f00 0001
        0x0010:  7f00 0001 04d2 d8a6 47de 0ae5 cb89 176d
        0x0020:  a012 ffcb fe30 0000 0204 ffd7 0402 080a
        0x0030:  8170 20cd 8170 20cd 0103 0307
12:31:29.286679 IP 127.0.0.1.55462 > 127.0.0.1.1234: Flags [.], ack 1, win 512, options [nop,nop,TS val 2171609293 ecr 2171609293], length 0
        0x0000:  4500 0034 344f 4000 4006 0873 7f00 0001
        0x0010:  7f00 0001 d8a6 04d2 cb89 176d 47de 0ae6
        0x0020:  8010 0200 fe28 0000 0101 080a 8170 20cd
        0x0030:  8170 20cd
12:31:53.307321 IP 127.0.0.1.55462 > 127.0.0.1.1234: Flags [P.], seq 1:8, ack 1, win 512, options [nop,nop,TS val 2171633313 ecr 2171609293], length 7
        0x0000:  4500 003b 3450 4000 4006 086b 7f00 0001
        0x0010:  7f00 0001 d8a6 04d2 cb89 176d 47de 0ae6
        0x0020:  8018 0200 fe2f 0000 0101 080a 8170 7ea1
        0x0030:  8170 20cd 4861 6c6c 6f3f 0a
12:31:53.307355 IP 127.0.0.1.1234 > 127.0.0.1.55462: Flags [.], ack 8, win 512, options [nop,nop,TS val 2171633313 ecr 2171633313], length 0
        0x0000:  4500 0034 2140 4000 4006 1b82 7f00 0001
        0x0010:  7f00 0001 04d2 d8a6 47de 0ae6 cb89 1774
        0x0020:  8010 0200 fe28 0000 0101 080a 8170 7ea1
        0x0030:  8170 7ea1

8< ---------------------------------------------------------------------

cassini/home/peter> nc localhost 1234
Hallo?

8< ---------------------------------------------------------------------

cassini/home/peter> nc -p 1234 -l
Hallo?

20231102/tcpdump-04.txt

deleted100644 → 0
+0 −35
Original line number Diff line number Diff line
cassini/root# tcpdump -n -i lo -A port 1234
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on lo, link-type EN10MB (Ethernet), snapshot length 262144 bytes
12:34:11.379210 IP 127.0.0.1.55462 > 127.0.0.1.1234: Flags [P.], seq 3414759284:3414759291, ack 1205734118, win 512, options [nop,nop,TS val 2171771385 ecr 2171633313], length 7
E..;4Q@.@..j...............tG.
....../.....
.r...p~.Hallo.

12:34:11.379228 IP 127.0.0.1.1234 > 127.0.0.1.55462: Flags [.], ack 7, win 512, options [nop,nop,TS val 2171771385 ecr 2171771385], length 0
E..4!A@.@...............G.
....{.....(.....
.r...r..
12:34:23.626460 IP 127.0.0.1.1234 > 127.0.0.1.55462: Flags [P.], seq 1:12, ack 7, win 512, options [nop,nop,TS val 2171783632 ecr 2171771385], length 11
E..?!B@.@..u............G.
....{.....3.....
.r...r..Hier auch.

12:34:23.626469 IP 127.0.0.1.55462 > 127.0.0.1.1234: Flags [.], ack 12, win 512, options [nop,nop,TS val 2171783632 ecr 2171783632], length 0
E..44R@.@..p...............{G.
......(.....
.r...r..

8< ---------------------------------------------------------------------

cassini/home/peter> nc localhost 1234
Hallo?
Hallo.
Hier auch.

8< ---------------------------------------------------------------------

cassini/home/peter> nc -p 1234 -l
Hallo?
Hallo.
Hier auch.

20231102/test.mbox

deleted100644 → 0
+0 −197
Original line number Diff line number Diff line
From peter.gerwinski@hs-bochum.de Thu Nov 02 11:28:04 2023
Return-path: <peter.gerwinski@hs-bochum.de>
Envelope-to: peter@phoenix.intern
Delivery-date: Thu, 02 Nov 2023 11:28:04 +0100
Received: from [127.0.0.1] (helo=m31.gerwinski.de)
	by cassini with esmtp (Exim 4.96)
	(envelope-from <peter.gerwinski@hs-bochum.de>)
	id 1qyUvX-004dnN-0r
	for peter@phoenix.intern;
	Thu, 02 Nov 2023 11:28:04 +0100
Received: from [195.37.15.82] (helo=cassini)
	by m31.gerwinski.de with smtp (Exim 4.94.2)
	(envelope-from <peter.gerwinski@hs-bochum.de>)
	id 1qyUuM-00GWUO-5J
	for peter@gerwinski.de; Thu, 02 Nov 2023 11:28:04 +0100
From: Prof. Dr. rer. nat. Peter Gerwinski <peter.gerwinski@hs-bochum.de>
To: Peter Gerwinski <peter@gerwinski.de>
Subject: Test
Message-Id: <E1qyUvX-004dnN-0r@cassini>
Date: Thu, 02 Nov 2023 11:28:04 +0100
Content-Length: 45
Lines: 5

Hallo,

dies ist ein Test.

Schöne Grüße!

From peter  Thu Nov  2 11:30:14 2023
MIME-Version: 1.0
Received: from mail.hs-bochum.de [193.175.85.41]
	by cassini with IMAP (fetchmail-6.4.37)
	for <peter@localhost> (single-drop); Thu, 02 Nov 2023 11:30:14 +0100 (CET)
Received: from hsex02.hsbo.local (10.254.0.22) by hsex01.hsbo.local
 (10.254.0.21) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.25 via Mailbox
 Transport; Thu, 2 Nov 2023 11:29:58 +0100
Received: from hsex02.hsbo.local (10.254.0.22) by hsex02.hsbo.local
 (10.254.0.22) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.25; Thu, 2 Nov
 2023 11:29:56 +0100
Received: from oms0.hs-bochum.de (193.175.85.64) by hsex02.hsbo.local
 (10.254.0.22) with Microsoft SMTP Server id 15.2.1258.25 via Frontend
 Transport; Thu, 2 Nov 2023 11:29:56 +0100
Content-Transfer-Encoding: 7BIT
Content-Type: text/plain; charset="US-ASCII"; format=flowed
Received: from [10.128.25.43] (unknown [10.128.25.43])
 by oms0.hs-bochum.de (Oracle Communications Messaging Server 8.1.0.9.20210415
 64bit (built Apr 15 2021))
 with ESMTPSA id <0S3H002BBRTWGK00@oms0.hs-bochum.de> for
 peter.gerwinski@hs-bochum.de; Thu, 02 Nov 2023 11:29:56 +0100 (CET)
Sender: <maximilian.melchert@stud.hs-bochum.de>
Message-ID: <aafc01cc-8023-461c-96cf-221689b62d16@stud.hs-bochum.de>
Date: Thu, 2 Nov 2023 11:29:56 +0100
User-Agent: Mozilla Thunderbird
Content-Language: de-DE, en-GB
To: Peter Gerwinski <peter.gerwinski@hs-bochum.de>
From: Max Melchert <maximilian.melchert@stud.hs-bochum.de>
Subject: Punkt-Test
Autocrypt: addr=maximilian.melchert@stud.hs-bochum.de; keydata=
 xsFNBGMl86cBEACfgdTXEhBasHou9REvCXsCgm84exgYVcJHLwsp9YBsWcAbA0zdaXX7NfNm
 WqyoN5LC7VZEJWubFS4byThiDk4b0KHDGAdscHrYbwshc779wTGJyKancK/z22U5pIF+i3RD
 gzt08V9k2p4YTE5I75+JuZoqgft5iC5L7MOGTJt5XugZdfNQG407UjnKzWnbCW2JxeiY82l5
 qUjiLi/P5TMhMCJ1gEvB2xoQzhtiXRvg6KQjtCG2cVxYXQx89otWph8Il3iqJl2yc+1B2quy
 rJuOyqjI4rfzsepnuthEId7p6Y3ysMNMsi4u8Vr6MfaRSnaqv2SxJDjmX7UNt1gdA/ooWn8i
 IZjtXrQtstjxDyLZeUIMbEcwGZJo22I0ef/JdNzyi9uNYwo8pmQHEZXmbqL7RH/f0vbwSqs7
 /V+rpRpJYNELb8pQqjOoiSZxPS/v6HshISgoMNhPVfHbQOfDekZYX/qn6zBXwss279Oj7KLf
 Mwez5Q16ZrHTFBm1lFssVXhDDSIw7YOpATsWZWrwLpT+1rhqYMeEP4UORBzdsbDrYr6o/+Pl
 b4u2XxQtD4G+SuuphWq0qg2zp0ua6XBgajCcwGN3s+DYso0A7o/wh1dopGTioLX/Rgo1VlwP
 cjo+Bc8FgNMshcdQzbAfiN4qx6NKonTVhnNvHzNKfCnSzW9LEQARAQABzTRNYXggTWVsY2hl
 cnQgPG1heGltaWxpYW4ubWVsY2hlcnRAc3R1ZC5ocy1ib2NodW0uZGU+wsGOBBMBCgA4FiEE
 zxvqx3hCdKSGVHeebG3Ri6FqjEEFAmOXKxQCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AA
 CgkQbG3Ri6FqjEEbUg/9HEUbJsK8x9JmVgRfhtDMSAxF6UcjUaSD/uJRh6++SDL89Racwkig
 QoH40fUK5m3mA+UPtXBjxNRMnPWcaPOky0R3c4tbHPj3yunei9Pyj67BNxPHA2bw7fB9YhW8
 y0YRHc86xsVuVTo9oJtDbo8AYRbNtkmt3N0pccJ4Mnx0Tp425PjArkCy86/wG/OIhntpKJwd
 fs3O16B7tSMi7ArE+QwlQ4wNtHc+PTTak/Rhu1zD8bjVpdsqtXl2U1zfprrwtby3Rue2Dfas
 6U13SISeezNLlPmYzBjcom06Lp3yS13i5H8V5vadLVKW2VUa9UzWK5ohS/VlkjA/V5hRym+W
 sTncHa8s2UQ1LEzTsQFhj2RBiJwHt72sjl6HSznU+HpOTPi8T1dJYMbp8esYR/p+U5EbCmEH
 yJvDZFmilz8xtjY87Hd1jgrpXJJWDw8VVhOvyWIb3XPMZbAQxWFdC4AsxXxO+NBGqfT9fktx
 8Mixvtks4Koc1ynQzycmPQ/FOelUCEOCqr5fBqjiDnjHQ3mIXOGbCxZDJg/6T7Y6XkhhT4rM
 HfvQiNSqL437tt9J5DOywyUfO0qz3sTkAiJ17Rn272cssaEXg17/Z44G/rDDs4zRPt3YCdrg
 dGB0nVjNhH3V2Lfn3UuAfKY06eG74F46Z2Km96B9KFQFtQnykGfRc0/OwU0EYyXzqAEQAM+W
 yjjLvS3AkBs0aQq4UPBtIRQAYKAGLRE1kxYGH3fTYB9DB0gcee0ux43MIFi8r9ySEYuIrbtR
 cUlWnzrBmvVpDYdUd0cjMy90Af6m/mBrNOld7DQn+eG8pJoGr4b7lAV7RZOZgHI/LNWhi+To
 VdAbux4j9BnWNL14gHQQZz/ijwJn+9qUc4dp0hb2gQ2HIaN9gFixhyvxCbI4EHNv+jvflEcX
 omaebozv1EnXNJWudajnLvHGaYlirT4BJxmb+gv10QqBrXKN7mwhaP1N4qVhJFgebt6kfhgm
 4N/x9bQabmnYgMvUq9uZJiMXBCwwXFix1n4vBNO65OS4f17Mr4M/QpkmmoEh/meiz9JnUlWm
 +yHUCZ6lTxWBAlyODR6fx0uZRkoDccE9vS9uoLnDvlhryi+0asq5lLZhNRuEQVZ6QjqcqCIy
 MVRsF9oynSFFibv0N7oINxR8n4fw24N0NUWUcvi2+yJJm8KivMgK7fxsh3Of0BepyjSyUmVB
 aLpStqpuuTWtrRBKe1kzwNctgyNM5GcCecKOyoW9kxaHl/XFCaROvzxcMwv8qpUFOB78BYaw
 gHJfwaZbcMtOTn08jBzMYxNRKZdabekaCYBDVXXJx2RHAzcJs3lapwjJ6iAwuH/Ft0NuaWq4
 9eidhPRavYzxHVTTqsb7IJEotV3bBDXbABEBAAHCwXYEGAEIACAWIQTPG+rHeEJ0pIZUd55s
 bdGLoWqMQQUCYyXzqQIbDAAKCRBsbdGLoWqMQZL/D/9GYeEm81jx+KaaezjAkd6Ol7Y0qzD5
 ibhke9M74BGK3OQEfXJfXT1TKLWA/rF9Tt2LjD/QjZJ65sKPgUwQx8aBTvQiPeEmQs1MC36j
 30BAnkyXKLda8k//ejCKCHNII7HVIUNEBaVj79tiloAFlEYFrqi02rOPYTi/zbqC1wQzVvnF
 Pypi/809Qwe2PJXhxg3doaY7qCJS9yK73GTy/Mxs17+nR4GpKt/OlOcyrDzk3eWoF2ohDh3u
 N99FTGPDRhz607IHLmkPO6L7FZ+F4QWFtbzFOWPOR+7Gbizpyu4IlPYygAn4AA9mzEhiw738
 hAgT1uSTfbeYIFHykr6j5C/tfEufWBRRRuL3Jh+zPK+bHzM21fvQbh7eetMkNOVCXd2VZa/F
 RJW8iBTr9GL4afkZgGoYFwAuoO6xUD6Vo033JtQmXGQ1ttH/7okCxPXxCcBjBlaJhenW1qPd
 wO4CiLJdlw9xePtjm6OyeecLuie31qF02xBSmudcRI4cwbGl9fHTH5RxSEH8Ej19u/8wR2J9
 iMMV4NhktKEsrMHT6xTPtpCQw55frC4Om11FP3v6dS0/F7DZE0zaL+LbQaGYUcqyqJDbwuCr
 Ai64A1WmID+ENmnmQUJbr/5KwFN9+5QlHQ7QiyqI9hCsPk6muOJKebxLLKkxHXDp6cDNAaXS
 HxLDAg==
Return-Path: maximilian.melchert@stud.hs-bochum.de
X-MS-Exchange-Organization-Network-Message-Id: ae5b0a43-6de8-41d2-7fd3-08dbdb8ea8f4
X-MS-Exchange-Organization-AVStamp-Enterprise: 1.0
X-MS-Exchange-Organization-AuthSource: hsex02.hsbo.local
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Transport-EndToEndLatency: 00:00:01.2174139
X-MS-Exchange-Processed-By-BccFoldering: 15.02.1258.025
Content-Length: 57
Lines: 7

HELO cassini

Text vor dem Punkt

.

Text nach dem Punkt

From peter.gerwinski@hs-bochum.de Thu Nov 02 11:39:11 2023
Return-path: <peter.gerwinski@hs-bochum.de>
Envelope-to: peter@phoenix.intern
Delivery-date: Thu, 02 Nov 2023 11:39:11 +0100
Received: from [127.0.0.1] (helo=m31.gerwinski.de)
	by cassini with esmtp (Exim 4.96)
	(envelope-from <peter.gerwinski@hs-bochum.de>)
	id 1qyV6I-004eJE-1S
	for peter@phoenix.intern;
	Thu, 02 Nov 2023 11:39:11 +0100
Received: from [195.37.15.82] (helo=cassini)
	by m31.gerwinski.de with smtp (Exim 4.94.2)
	(envelope-from <peter.gerwinski@hs-bochum.de>)
	id 1qyV6A-00GXPs-Gi
	for peter@gerwinski.de; Thu, 02 Nov 2023 11:39:11 +0100
Message-Id: <E1qyV6I-004eJE-1S@cassini>
From: peter.gerwinski@hs-bochum.de
Date: Thu, 02 Nov 2023 11:39:11 +0100
Content-Length: 14
Lines: 5

vor dem Punkt

From peter.gerwinski@hs-bochum.de Thu Nov 02 11:37:29 2023
Return-path: <peter.gerwinski@hs-bochum.de>
Envelope-to: peter@phoenix.intern
Delivery-date: Thu, 02 Nov 2023 11:37:29 +0100
Received: from [127.0.0.1] (helo=m31.gerwinski.de)
	by cassini with esmtp (Exim 4.96)
	(envelope-from <peter.gerwinski@hs-bochum.de>)
	id 1qyV4e-004eDo-2d
	for peter@phoenix.intern;
	Thu, 02 Nov 2023 11:37:29 +0100
Received: from [195.37.15.82] (helo=cassini)
	by m31.gerwinski.de with smtp (Exim 4.94.2)
	(envelope-from <peter.gerwinski@hs-bochum.de>)
	id 1qyV4V-00GXJw-Ld
	for peter@gerwinski.de; Thu, 02 Nov 2023 11:37:29 +0100
Subject: Punkt-Test
Message-Id: <E1qyV4e-004eDo-2d@cassini>
From: peter.gerwinski@hs-bochum.de
Date: Thu, 02 Nov 2023 11:37:29 +0100
Content-Length: 14
Lines: 1

vor dem Punkt

From bezos@amazon.com Thu Nov 02 11:47:00 2023
Return-path: <bezos@amazon.com>
Envelope-to: peter@phoenix.intern
Delivery-date: Thu, 02 Nov 2023 11:47:00 +0100
Received: from [127.0.0.1] (helo=m31.gerwinski.de)
	by cassini with esmtp (Exim 4.96)
	(envelope-from <bezos@amazon.com>)
	id 1qyVDr-004eg5-0R
	for peter@phoenix.intern;
	Thu, 02 Nov 2023 11:47:00 +0100
Received: from [195.37.15.82] (helo=cassini)
	by m31.gerwinski.de with smtp (Exim 4.94.2)
	(envelope-from <bezos@amazon.com>)
	id 1qyVCl-00GXuG-JM
	for peter@gerwinski.de; Thu, 02 Nov 2023 11:46:59 +0100
From: Elon Musk <musk@tesla.com>
To: Bill Gates <gates@microsoft.com>
Subject: Darlehensangebot
Message-Id: <E1qyVDr-004eg5-0R@cassini>
Date: Thu, 02 Nov 2023 11:47:00 +0100
Content-Length: 126
Lines: 4

Brauchen Sie schnell Geld?
Hier können Sie schnell Geld verlieren!
Hier klicken und sämtliche Passwörter eingeben:
[KLICK]

20231109/dbms-02.txt

deleted100644 → 0
+0 −19
Original line number Diff line number Diff line
postgres=# \l
                                                 Liste der Datenbanken
   Name    | Eigentümer | Kodierung | Sortierfolge | Zeichentyp  | ICU-Locale | Locale-Provider |  Zugriffsprivilegien
-----------+------------+-----------+--------------+-------------+------------+-----------------+-----------------------
 postgres  | postgres   | UTF8      | de_DE.UTF-8  | de_DE.UTF-8 |            | libc            |
 template0 | postgres   | UTF8      | de_DE.UTF-8  | de_DE.UTF-8 |            | libc            | =c/postgres          +
           |            |           |              |             |            |                 | postgres=CTc/postgres
 template1 | postgres   | UTF8      | de_DE.UTF-8  | de_DE.UTF-8 |            | libc            | =c/postgres          +
           |            |           |              |             |            |                 | postgres=CTc/postgres
(3 Zeilen)

postgres=# create database testdb;
CREATE DATABASE
postgres=# create user dbs with password '####';
CREATE ROLE
postgres=# GRANT ALL ON DATABASE testdb TO dbs;
GRANT
postgres=# \q
postgres@cassini:~$

20231109/dbms-03.txt

deleted100644 → 0
+0 −80
Original line number Diff line number Diff line
cassini/home/peter/bo/2023ws/dbs> psql --help
psql ist das interaktive PostgreSQL-Terminal.

Aufruf:
  psql [OPTION]... [DBNAME [BENUTZERNAME]]

Allgemeine Optionen:
  -c, --command=ANWEISUNG  einzelne Anweisung ausführen und beenden
  -d, --dbname=DBNAME      Datenbank, zu der verbunden werden soll
                           (Standard: »peter«)
  -f, --file=DATEINAME     Anweisungen aus Datei ausführen und danach beenden
  -l, --list               verfügbare Datenbanken auflisten und beenden
  -v, --set=, --variable=NAME=WERT
                           psql-Variable NAME auf WERT setzen
                           (z.B. -v ON_ERROR_STOP=1)
  -V, --version            Versionsinformationen anzeigen, dann beenden
  -X, --no-psqlrc          Startdatei (~/.psqlrc) nicht lesen
  -1 (»eins«), --single-transaction
                           als eine einzige Transaktion ausführen (wenn nicht
                           interaktiv)
  -?, --help[=options]     diese Hilfe anzeigen, dann beenden
      --help=commands      Backslash-Befehle auflisten, dann beenden
      --help=variables     besondere Variablen auflisten, dann beenden

Eingabe- und Ausgabeoptionen:
  -a, --echo-all           Skript-Inhalt wiedergeben
  -b, --echo-errors        fehlgeschlagene Anweisungen wiedergeben
  -e, --echo-queries       an den Server geschickte Anweisungen zeigen
  -E, --echo-hidden        von internen Anweisungen erzeugte Anfragen zeigen
  -L, --log-file=DATEINAME
                           Sitzungslog in Datei senden
  -n, --no-readline        erweiterte Zeilenbearbeitung (Readline) ausschalten
  -o, --output=DATEINAME   Anfrageergebnisse in Datei (oder |Pipe) senden
  -q, --quiet              stille Ausführung (keine Mitteilungen, nur
                           Anfrageergebnisse)
  -s, --single-step        Einzelschrittmodus (jede Anfrage bestätigen)
  -S, --single-line        Einzelzeilenmodus (Zeilenende beendet SQL-Anweisung)

Ausgabeformatoptionen:
  -A, --no-align           unausgerichteter Tabellenausgabemodus
      --csv                Tabellenausgabemodus CSV (Comma-Separated Values)
  -F, --field-separator=ZEICHEN
                           Feldtrennzeichen für unausgerichteten Ausgabemodus
                           (Standard: »|«)
  -H, --html               HTML-Tabellenausgabemodus
  -P, --pset=VAR[=ARG]     Ausgabeoption VAR auf ARG setzen (siehe
                           \pset-Anweisung)
  -R, --record-separator=ZEICHEN
                           Satztrennzeichen für unausgerichteten Ausgabemodus
                           (Standard: Newline)
  -t, --tuples-only        nur Datenzeilen ausgeben
  -T, --table-attr=TEXT    HTML »table«-Tag-Attribute setzen (z.B. width, border)
  -x, --expanded           erweiterte Tabellenausgabe einschalten
  -z, --field-separator-zero
                           Feldtrennzeichen für unausgerichteten Ausgabemodus auf
                           Null-Byte setzen
  -0, --record-separator-zero
                           Satztrennzeichen für unausgerichteten Ausgabemodus auf
                           Null-Byte setzen

Verbindungsoptionen:
  -h, --host=HOSTNAME      Hostname des Datenbankservers oder
                           Socket-Verzeichnis (Standard: »/var/run/postgresql«)
  -p, --port=PORT          Port des Datenbankservers (Standard: »5432«)
  -U, --username=NAME      Datenbank-Benutzername (Standard: »peter«)
  -w, --no-password        niemals nach Passwort fragen
  -W, --password           nach Passwort fragen (sollte automatisch geschehen)

Für mehr Informationen, geben Sie »\?« (für interne Anweisungen) oder
»\help« (für SQL-Anweisungen) in psql ein oder schauen Sie in den psql-
Abschnitt der PostgreSQL-Dokumentation.

Berichten Sie Fehler an <pgsql-bugs@lists.postgresql.org>.
PostgreSQL Homepage: <https://www.postgresql.org/>
cassini/home/peter/bo/2023ws/dbs> psql testdb dbs
psql: Fehler: Verbindung zum Server auf Socket »/var/run/postgresql/.s.PGSQL.5432« fehlgeschlagen: FATAL:  Peer-Authentifizierung für Benutzer »dbs« fehlgeschlagen
cassini/home/peter/bo/2023ws/dbs> psql --password testdb dbs
Passwort:
psql: Fehler: Verbindung zum Server auf Socket »/var/run/postgresql/.s.PGSQL.5432« fehlgeschlagen: FATAL:  Peer-Authentifizierung für Benutzer »dbs« fehlgeschlagen
cassini/home/peter/bo/2023ws/dbs>

20231109/dbms-04.txt

deleted100644 → 0
+0 −19
Original line number Diff line number Diff line
root@cassini:~# su - postgres
postgres@cassini:~$ psql
psql (15.3 (Debian 15.3-0+deb12u1))
Geben Sie »help« für Hilfe ein.

postgres=# \c testdb
Sie sind jetzt verbunden mit der Datenbank »testdb« als Benutzer »postgres«.
testdb=# \d
Keine Relationen gefunden
testdb=# CREATE TABLE Tier ( Name CHARACTER (30), Tierart CHARACTER (30) );
CREATE TABLE
testdb=# \d
         Liste der Relationen
 Schema | Name |   Typ   | Eigentümer
--------+------+---------+------------
 public | tier | Tabelle | postgres
(1 Zeile)

testdb=#