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
  • 2014ss
  • 2015ss
  • 2016ss
  • 2017ss
  • 2018ss
  • 2019ss
  • 2020ss
  • 2021ss
  • 2022ss
  • 2023ss
  • 2024ss
  • 2025ss
12 results

Target

Select target project
  • pgerwinski/bs
  • cloepke/bs
  • khaleeliyeh/bs
3 results
Select Git revision
  • 2014ss
  • 2015ss
  • master
3 results
Show changes
Showing
with 234 additions and 0 deletions
File moved
../common/logo-hochschule-bochum-cvh-text-v3.pdf
\ No newline at end of file
../common/logo-hochschule-bochum-de-narrow.pdf
\ No newline at end of file
cassini/home/peter/bo/2025ss/bs/20250331> 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]
cassini/home/peter/bo/2025ss/bs/20250331> 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/2025ss/bs/20250331> mount /dev/sdb1
cassini/home/peter/bo/2025ss/bs/20250331> 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/2025ss/bs/20250331> ls -l /media/usb1/
insgesamt 12
-rwxr-xr-x 1 peter peter 2848 3. Feb 17:35 beispiel.zip
-rwxr-xr-x 1 peter peter 3315 4. Feb 15:41 'Klausur 04.02.2025 Xxxxx Xxxxx.txt'
drwxr-xr-x 2 peter peter 4096 4. Feb 13:40 'System Volume Information'
cassini/home/peter/bo/2025ss/bs/20250331> umount /dev/sdb1
cassini/home/peter/bo/2025ss/bs/20250331> ls -l /media/usb1/
insgesamt 0
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> grep media/usb1 /etc/fstab
/dev/sdb1 /media/usb1 auto rw,user,noauto 0 0
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter> cowsay -f tux "Pause bis 17:$((22 + 15)) Uhr"
_____________________
< Pause bis 17:37 Uhr >
---------------------
\
\
.--.
|o_o |
|:_/ |
// \ \
(| | )
/'\_ _/`\
\___)=(___/
cassini/home/peter>
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-4.txt
-rw-r--r-- 1 peter peter 36 31. Mär 14:19 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> cat test-4.txt
Dies ist ebenfalls ein Teeeeeeeest!
cassini/home/peter/bo/2025ss/bs/20250331> chmod -r test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-4.txt
--w------- 1 peter peter 36 31. Mär 14:19 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> cat test-4.txt
cat: test-4.txt: Keine Berechtigung
cassini/home/peter/bo/2025ss/bs/20250331> chmod +r test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-4.txt
-rw-r--r-- 1 peter peter 36 31. Mär 14:19 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> cat test-4.txt
Dies ist ebenfalls ein Teeeeeeeest!
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-4.txt
-rw-r--r-- 1 peter peter 36 31. Mär 14:19 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> chmod o-r test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-4.txt
-rw-r----- 1 peter peter 36 31. Mär 14:19 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> chmod 666 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-4.txt
-rw-rw-rw- 1 peter peter 36 31. Mär 14:19 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> chmod 640 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-4.txt
-rw-r----- 1 peter peter 36 31. Mär 14:19 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> chmod 644 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-4.txt
-rw-r--r-- 1 peter peter 36 31. Mär 14:19 test-4.txt
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> ls -l a.out
-rwxr-xr-x 1 peter peter 15952 31. Mär 14:33 a.out
cassini/home/peter/bo/2025ss/bs/20250331> chmod 750 a.out
cassini/home/peter/bo/2025ss/bs/20250331> ls -l a.out
-rwxr-x--- 1 peter peter 15952 31. Mär 14:33 a.out
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-01.sh
-rw-r--r-- 1 peter peter 21 31. Mär 14:46 test-01.sh
cassini/home/peter/bo/2025ss/bs/20250331> cat test-01.sh
echo "Hello, world!"
cassini/home/peter/bo/2025ss/bs/20250331> chmod 755 test-01.sh
cassini/home/peter/bo/2025ss/bs/20250331> cat test-01.sh
echo "Hello, world!"
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-01.sh
-rwxr-xr-x 1 peter peter 21 31. Mär 14:46 test-01.sh
cassini/home/peter/bo/2025ss/bs/20250331> ./test-01.sh
Hello, world!
cassini/home/peter/bo/2025ss/bs/20250331> chmod 644 test-01.sh
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-01.sh
-rw-r--r-- 1 peter peter 21 31. Mär 14:46 test-01.sh
cassini/home/peter/bo/2025ss/bs/20250331> ./test-01.sh
bash: ./test-01.sh: Keine Berechtigung
cassini/home/peter/bo/2025ss/bs/20250331> chmod 755 test-01.sh
cassini/home/peter/bo/2025ss/bs/20250331> ./test-01.sh
Hello, world!
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> ls -dl test
drwxr-xr-x 2 peter peter 4096 31. Mär 14:15 test
cassini/home/peter/bo/2025ss/bs/20250331> sudo chown root:root test
[sudo] Passwort für peter:
cassini/home/peter/bo/2025ss/bs/20250331> ls -dl test
drwxr-xr-x 2 root root 4096 31. Mär 14:15 test
cassini/home/peter/bo/2025ss/bs/20250331> cp -pi test-1.txt test
cp: reguläre Datei 'test/test-1.txt' kann nicht angelegt werden: Keine Berechtigung
cassini/home/peter/bo/2025ss/bs/20250331> sudo cp -pi test-1.txt test
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test
insgesamt 4
-rw-r--r-- 1 peter peter 19 31. Mär 14:06 test-1.txt
cassini/home/peter/bo/2025ss/bs/20250331> chmod 666 test/test-1.txt
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test
insgesamt 4
-rw-rw-rw- 1 peter peter 19 31. Mär 14:06 test-1.txt
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-*.txt
-rw-r--r-- 1 peter peter 19 31. Mär 14:06 test-1.txt
-rw-r--r-- 1 peter peter 29 31. Mär 14:07 test-2.txt
-rw-r--r-- 1 peter peter 33 31. Mär 14:09 test-3.txt
-rw-r--r-- 1 peter peter 36 31. Mär 14:19 test-4.txt
-rw-r--r-- 1 peter peter 23 31. Mär 14:21 test-5.txt
-rw-r--r-- 1 peter peter 28 31. Mär 14:22 test-6.txt
cassini/home/peter/bo/2025ss/bs/20250331> sudo chown root:root test-1.txt
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test-*.txt
-rw-r--r-- 1 root root 19 31. Mär 14:06 test-1.txt
-rw-r--r-- 1 peter peter 29 31. Mär 14:07 test-2.txt
-rw-r--r-- 1 peter peter 33 31. Mär 14:09 test-3.txt
-rw-r--r-- 1 peter peter 36 31. Mär 14:19 test-4.txt
-rw-r--r-- 1 peter peter 23 31. Mär 14:21 test-5.txt
-rw-r--r-- 1 peter peter 28 31. Mär 14:22 test-6.txt
cassini/home/peter/bo/2025ss/bs/20250331> chmod 666 test-1.txt
chmod: Beim Setzen der Zugriffsrechte für 'test-1.txt': Die Operation ist nicht erlaubt
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> ls -dl test
drwxr-xr-x 2 root root 4096 31. Mär 14:50 test
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test
insgesamt 4
-rw-rw-rw- 1 peter peter 19 31. Mär 14:06 test-1.txt
cassini/home/peter/bo/2025ss/bs/20250331> rm -r test
rm: in schreibgeschütztes Verzeichnis 'test' absteigen? y
rm: das Entfernen von 'test/test-1.txt' ist nicht möglich: Keine Berechtigung
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> ls -dl test
drwxr-xr-x 2 root root 4096 31. Mär 14:50 test
cassini/home/peter/bo/2025ss/bs/20250331> ls -l test
insgesamt 4
-rw-rw-rw- 1 peter peter 19 31. Mär 14:06 test-1.txt
cassini/home/peter/bo/2025ss/bs/20250331> rm test/test-1.txt
rm: das Entfernen von 'test/test-1.txt' ist nicht möglich: Keine Berechtigung
cassini/home/peter/bo/2025ss/bs/20250331>
../common/pgslides.sty
\ No newline at end of file
cassini/home/peter/bo/2025ss/bs/20250331> cowsay $(xsel)
____________________________
< Mittagspause bis 13:48 Uhr >
----------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
cassini/home/peter/bo/2025ss/bs/20250331> xsel
(oo)
\ No newline at end of selection
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> man bash
Command Substitution
Command substitution allows the output of a command to replace the command name.
There are two forms:
$(command)
or
`command`
Bash performs the expansion by executing command in a subshell environment and re‐
placing the command substitution with the standard output of the command, with any
trailing newlines deleted. Embedded newlines are not deleted, but they may be re‐
moved during word splitting. The command substitution $(cat file) can be replaced
by the equivalent but faster $(< file).
When the old-style backquote form of substitution is used, backslash retains its
literal meaning except when followed by $, `, or \. The first backquote not pre‐
ceded by a backslash terminates the command substitution. When using the $(com‐
mand) form, all characters between the parentheses make up the command; none are
treated specially.
Command substitutions may be nested. To nest when using the backquoted form, es‐
cape the inner backquotes with backslashes.
If the substitution appears within double quotes, word splitting and pathname ex‐
pansion are not performed on the results.
cassini/home/peter/bo/2025ss/bs/20250331> cat test-03.bc
2 + 2
cassini/home/peter/bo/2025ss/bs/20250331> bc < test-03.bc
4
cassini/home/peter/bo/2025ss/bs/20250331> echo "2 + 2" | bc
4
cassini/home/peter/bo/2025ss/bs/20250331> echo "2^2048" | bc
32317006071311007300714876688669951960444102669715484032130345427524\
65513886789089319720141152291346368871796092189801949411955915049092\
10950881523864482831206308773673009960917501977503896521067960576383\
84067568276792218642619756161838094338476170470581645852036305042887\
57589154106580860755239912393038552191433338966834242068497478656456\
94948561760353263220580778056593310261927084603141502585928641771167\
25943603718461857357598351152301645904403697613233287231227125684710\
82020972515710172693132346967854258065669793504599726835299863821552\
51663894373355436021354332296046453184786049521481935558536110595962\
30656
cassini/home/peter/bo/2025ss/bs/20250331> echo "obase = 16; 42" | bc
2A
cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> echo "2 + 2" | gzip | cat | gunzip | bc4cassini/home/peter/bo/2025ss/bs/20250331>
cassini/home/peter/bo/2025ss/bs/20250331> echo "2 + 2" | sed -e 's/2/4/g' | gzip | cat | gunzip | bc
8
cassini/home/peter/bo/2025ss/bs/20250331>