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
  • pgerwinski/dbs
  • Rafiou/dbs
2 results
Select Git revision
  • 2023ws
  • 2024ws
2 results
Show changes
Showing
with 275 additions and 0 deletions
#!./greeting2.sh /*
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 2. Okt 11:30 /dev/sda
brw-rw---- 1 root disk 8, 1 2. Okt 11:30 /dev/sda1
brw-rw---- 1 root disk 8, 2 2. Okt 11:30 /dev/sda2
brw-rw---- 1 root disk 8, 5 2. Okt 11:30 /dev/sda5
brw-rw---- 1 root disk 8, 16 16. Okt 12:40 /dev/sdb
brw-rw---- 1 root disk 8, 17 16. Okt 12:40 /dev/sdb1
brw-rw---- 1 root disk 8, 32 16. Okt 12:41 /dev/sdc
brw-rw---- 1 root disk 8, 33 16. Okt 12:41 /dev/sdc1
brw-rw---- 1 root disk 8, 48 16. Okt 12:41 /dev/sdd
brw-rw---- 1 root disk 8, 49 16. Okt 12:41 /dev/sdd1
cassini/home/peter/bo/2024ws/dbs/20241016> lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 487M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 465,3G 0 part
└─sda5_crypt 254:0 0 465,3G 0 crypt
├─cassini--vg-root 254:1 0 464,3G 0 lvm /
└─cassini--vg-swap_1 254:2 0 980M 0 lvm [SWAP]
sdb 8:16 1 3,9G 0 disk
└─sdb1 8:17 1 3,9G 0 part
cassini/home/peter/bo/2024ws/dbs/20241016> mount /dev/sdb1
cassini/home/peter/bo/2024ws/dbs/20241016> lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 487M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 465,3G 0 part
└─sda5_crypt 254:0 0 465,3G 0 crypt
├─cassini--vg-root 254:1 0 464,3G 0 lvm /
└─cassini--vg-swap_1 254:2 0 980M 0 lvm [SWAP]
sdb 8:16 1 3,9G 0 disk
└─sdb1 8:17 1 3,9G 0 part /media/usb1
cassini/home/peter/bo/2024ws/dbs/20241016> umount /media/usb1
cassini/home/peter/bo/2024ws/dbs/20241016>
../common/pgscript.sty
\ No newline at end of file
../common/pgslides.sty
\ No newline at end of file
cassini/home/peter/bo/2024ws/dbs/20241016> cat > hallo.sh
echo "Hallo, Welt!"
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo.sh
-rw-r--r-- 1 peter peter 20 16. Okt 11:42 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> chmod 750 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo.sh
-rwxr-x--- 1 peter peter 20 16. Okt 11:42 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> hallo.sh
bash: hallo.sh: Kommando nicht gefunden.
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo.sh
Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo.sh
Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo.sh
-rwxr-x--- 1 peter peter 20 16. Okt 11:42 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> chmod 100 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo.sh
---x------ 1 peter peter 20 16. Okt 11:42 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo.sh
/bin/bash: ./hallo.sh: Keine Berechtigung
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> sudo cp hallo.sh hallo2.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo2.sh
-rwxr-x--- 1 root root 20 16. Okt 11:46 hallo2.sh
cassini/home/peter/bo/2024ws/dbs/20241016> chmod 640 hallo2.sh
chmod: Beim Setzen der Zugriffsrechte für 'hallo2.sh': Die Operation ist nicht erlaubt
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo2.sh
-rwxr-x--- 1 root root 20 16. Okt 11:46 hallo2.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo2.sh
bash: ./hallo2.sh: Keine Berechtigung
cassini/home/peter/bo/2024ws/dbs/20241016> cp -pi hallo2.sh hallo3.sh
cp: 'hallo2.sh' kann nicht zum Lesen geöffnet werden: Keine Berechtigung
cassini/home/peter/bo/2024ws/dbs/20241016> rm hallo2.sh
rm: reguläre Datei (schreibgeschützt) 'hallo2.sh' entfernen? y
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo2.sh
ls: Zugriff auf 'hallo2.sh' nicht möglich: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> cat hallo.sh
echo "Hallo, Welt!"
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo.sh
-rwxr-x--- 1 peter peter 20 16. Okt 11:42 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo.sh
Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> cat hallo3.sh
#!/bin/bash
echo "Hallo, Welt!"
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo.sh
Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016> bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
2 + 2
4
2^64
18446744073709551616
2^4096
10443888814131525066917527107166243825799642490473837803842334832839\
53907971557456848826811934997558340890106714439262837987573438185793\
60726323608785136527794595697654370999834036159013438371831442807001\
18559462263763188393977127456723346843445866174968079087058037040712\
84048740118609114467977783598029006686938976881787785946905630190260\
94059957945343282346930302669644305902501597239986771421554169383555\
98852914863182379144344967340878118726394964751001890413490084170616\
75093668333850551032972088269550769983616369411933015213796825837188\
09183365675122131849284636812555022599830041234478486259567449219461\
70238065059132456108257318353800876086221028342701976982023131690176\
78006675195485079921636419370285375124784014907159135459982790513399\
61155179427110683113409058427288427979155484978295432353451706522326\
90613949059876930021229633956877828789484406160074129456749198230505\
71642377154816321380631045902916136926708342856440730447899971901781\
46576347322385026725305989979599609079946920177462481771844986745565\
92501783290704731194331655508075682218465717463732968849128195203174\
57002440926616910874148385078411929804522981857338977648103126085903\
00130241346718972667321649151113160292078173803343609024380470834040\
3154190336
1/9
0
scale=42
1/9
.111111111111111111111111111111111111111111
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> cat calculate1.bc
#!/usr/bin/bc
2 + 2
cassini/home/peter/bo/2024ws/dbs/20241016> chmod +x calculate1.bc
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l calculate1.bc
-rwxr-xr-x 1 peter peter 21 16. Okt 11:56 calculate1.bc
cassini/home/peter/bo/2024ws/dbs/20241016> ./calculate1.bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
4
Hallo?
(standard_in) 1: syntax error
(standard_in) 1: illegal character: ?
quit
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> cat calculate2.bc
#!/usr/bin/bc
2 + 2
quit
cassini/home/peter/bo/2024ws/dbs/20241016> ./calculate2.bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
4
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> cat greeting.sh
#!/bin/bash
read name
echo Hallo $name
cassini/home/peter/bo/2024ws/dbs/20241016> chmod +x greeting.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ./greeting.sh
Peter
Hallo Peter
cassini/home/peter/bo/2024ws/dbs/20241016> ./greeting.sh
/*
Hallo /bin /boot /dev /etc /home /initrd.img /initrd.img.old /lib /lib32 /lib64 /libx32 /lost+found /media /mnt /opt /proc /root /run /sbin /srv /swapfile /sys /tmp /usr /var /vmlinuz /vmlinuz.old
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> cat ls-root.sh
#!./greeting.sh
/*
cassini/home/peter/bo/2024ws/dbs/20241016> chmod +x ls-root.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ./ls-root.sh
Hallo?
Hallo Hallo?
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> cat greeting2.sh
#!/bin/bash
echo Hallo $1
cassini/home/peter/bo/2024ws/dbs/20241016> cat ls-root2.sh
#!./greeting2.sh /*
cassini/home/peter/bo/2024ws/dbs/20241016> ./ls-root2.sh
Hallo /bin /boot /dev /etc /home /initrd.img /initrd.img.old /lib /lib32 /lib64 /libx32 /lost+found /media /mnt /opt /proc /root /run /sbin /srv /swapfile /sys /tmp /usr /var /vmlinuz /vmlinuz.old
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> which python3
/usr/bin/python3
cassini/home/peter/bo/2024ws/dbs/20241016> python3
Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print (3.14 * 2)
6.28
>>>
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> cat calculate3.py
#!/usr/bin/python3
print (3.14 * 2)
cassini/home/peter/bo/2024ws/dbs/20241016> chmod 750 calculate3.py
cassini/home/peter/bo/2024ws/dbs/20241016> ./calculate3.py
6.28
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo.sh
-rwxr-x--- 1 peter peter 20 16. Okt 11:42 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> cat hallo.sh
echo "Hallo, Welt!"
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo.sh
Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016> chmod -x hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo.sh
-rw-r----- 1 peter peter 20 16. Okt 11:42 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo.sh
bash: ./hallo.sh: Keine Berechtigung
cassini/home/peter/bo/2024ws/dbs/20241016> chmod +x hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo.sh
-rwxr-x--x 1 peter peter 20 16. Okt 11:42 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo.sh
Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016> chmod 750 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ls -l hallo.sh
-rwxr-x--- 1 peter peter 20 16. Okt 11:42 hallo.sh
cassini/home/peter/bo/2024ws/dbs/20241016> ./hallo.sh
Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -l
insgesamt 4
-rw-r--r-- 1 peter peter 19 16. Okt 12:51 test-01.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cp -pi test-01.txt test-02.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -l
insgesamt 8
-rw-r--r-- 1 peter peter 19 16. Okt 12:51 test-01.txt
-rw-r--r-- 1 peter peter 19 16. Okt 12:51 test-02.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-01.txt
Dies ist ein Test.
cassini/home/peter/bo/2024ws/dbs/20241016/test> ln -s test-02.txt test-03.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -l
insgesamt 8
-rw-r--r-- 1 peter peter 19 16. Okt 12:51 test-01.txt
-rw-r--r-- 1 peter peter 19 16. Okt 12:51 test-02.txt
lrwxrwxrwx 1 peter peter 11 16. Okt 12:51 test-03.txt -> test-02.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-03.txt
Dies ist ein Test.
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-02.txt
Dies ist ein Test.
cassini/home/peter/bo/2024ws/dbs/20241016/test> echo "Dies auch." > test-02.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-02.txt
Dies auch.
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-03.txt
Dies auch.
cassini/home/peter/bo/2024ws/dbs/20241016/test> rm test-02.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-03.txt
cat: test-03.txt: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -l test-03.txt
lrwxrwxrwx 1 peter peter 11 16. Okt 12:51 test-03.txt -> test-02.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -l test-02.txt
ls: Zugriff auf 'test-02.txt' nicht möglich: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2024ws/dbs/20241016/test>
cassini/home/peter/bo/2024ws/dbs/20241016> ln -s test test2
cassini/home/peter/bo/2024ws/dbs/20241016> ls -dl test*
drwxr-xr-x 2 peter peter 4096 16. Okt 12:53 test
lrwxrwxrwx 1 peter peter 4 16. Okt 12:54 test2 -> test
cassini/home/peter/bo/2024ws/dbs/20241016> ls test2/
test-01.txt test-03.txt
cassini/home/peter/bo/2024ws/dbs/20241016> ls test2
test-01.txt test-03.txt
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs/20241016> ls -dl test*
drwxr-xr-x 2 peter peter 4096 16. Okt 12:53 test
lrwxrwxrwx 1 peter peter 4 16. Okt 12:54 test2 -> test
cassini/home/peter/bo/2024ws/dbs/20241016> chmod 750 test2
cassini/home/peter/bo/2024ws/dbs/20241016> ls -dl test*
drwxr-x--- 2 peter peter 4096 16. Okt 12:53 test
lrwxrwxrwx 1 peter peter 4 16. Okt 12:54 test2 -> test
cassini/home/peter/bo/2024ws/dbs/20241016>