Skip to content
Snippets Groups Projects
Commit 8c56db04 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Lehrmaterial zum Sommersemester 2017, Stand: 2.6.2017

parent 96f38ce6
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 256 deletions
cassini/home/peter/bo/2016ss/bs/20160411> ps aux | grep getty
root 20575 0.0 0.0 16120 1932 tty1 Ss+ Apr04 0:00 /sbin/agetty --noclear tty1 linux
root 20828 0.0 0.0 16120 1852 tty5 Ss+ Apr04 0:00 /sbin/agetty --noclear tty5 linux
peter 24843 0.0 0.0 14456 2200 pts/4 S+ 12:19 0:00 grep getty
cassini/home/peter/bo/2016ss/bs/20160411> ls -l /sbin/agetty
-rwxr-xr-x 1 root root 39728 Mär 30 2015 /sbin/agetty
cassini/home/peter/bo/2016ss/bs/20160411> dpkg -S /sbin/agetty
util-linux: /sbin/agetty
cassini/home/peter/bo/2016ss/bs/20160411> apt-get source util-linux
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
HINWEIS: »util-linux«-Paketierung wird betreut im »Git«-Versionsverwaltungssystem auf:
git://git.debian.org/git/collab-maint/pkg-util-linux.git
Es müssen 4.011 kB an Quellarchiven heruntergeladen werden.
Fehl http://ftp.de.debian.org/debian/ jessie/main util-linux 2.25.2-6 (dsc)
Verbindung fehlgeschlagen
Fehl http://ftp.de.debian.org/debian/ jessie/main util-linux 2.25.2-6 (tar)
Verbindung fehlgeschlagen
Fehl http://ftp.de.debian.org/debian/ jessie/main util-linux 2.25.2-6 (diff)
Verbindung fehlgeschlagen
E: Fehlschlag beim Holen von http://ftp.de.debian.org/debian/pool/main/u/util-linux/util-linux_2.25.2-6.dsc Verbindung fehlgeschlagen
E: Fehlschlag beim Holen von http://ftp.de.debian.org/debian/pool/main/u/util-linux/util-linux_2.25.2.orig.tar.xz Verbindung fehlgeschlagen
E: Fehlschlag beim Holen von http://ftp.de.debian.org/debian/pool/main/u/util-linux/util-linux_2.25.2-6.debian.tar.xz Verbindung fehlgeschlagen
E: Einige Archive konnten nicht heruntergeladen werden.
cassini/home/peter/bo/2016ss/bs/20160411> http_proxy=http://cache.hs-bochum.de:8080 apt-get source util-linux
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
HINWEIS: »util-linux«-Paketierung wird betreut im »Git«-Versionsverwaltungssystem auf:
git://git.debian.org/git/collab-maint/pkg-util-linux.git
Es müssen 4.011 kB an Quellarchiven heruntergeladen werden.
Holen: 1 http://ftp.de.debian.org/debian/ jessie/main util-linux 2.25.2-6 (dsc) [3.443 B]
Holen: 2 http://ftp.de.debian.org/debian/ jessie/main util-linux 2.25.2-6 (tar) [3.704 kB]
Holen: 3 http://ftp.de.debian.org/debian/ jessie/main util-linux 2.25.2-6 (diff) [304 kB]
Es wurden 4.011 kB in 6 s geholt (589 kB/s).
gpgv: Schlüsselblockhilfsmittel`/home/peter/.gnupg/trustedkeys.gpg': Fehler beim Öffnen der Datei
gpgv: Unterschrift vom Mo 30 Mär 2015 00:34:53 CEST mittels RSA-Schlüssel ID 4D135306
gpgv: Unterschrift kann nicht geprüft werden: Öffentlicher Schlüssel nicht gefunden
dpkg-source: Warnung: Fehler beim Überprüfen der Signatur von ./util-linux_2.25.2-6.dsc
dpkg-source: Information: util-linux wird nach util-linux-2.25.2 extrahiert
dpkg-source: Information: util-linux_2.25.2.orig.tar.xz wird entpackt
dpkg-source: Information: util-linux_2.25.2-6.debian.tar.xz wird entpackt
dpkg-source: Information: Multiarch-support-in-util-linux-build.patch wird angewandt
dpkg-source: Information: cfdisk.8-mention-slang-next-to-curses.-Closes-295487.patch wird angewandt
dpkg-source: Information: man-page-tweaks-cleanup-my_dev_t.h-ancient-stuff.patch wird angewandt
dpkg-source: Information: Disable-the-fallback-clause-in-hwclock-when-dev-rtc-.patch wird angewandt
dpkg-source: Information: verbose-tests.patch wird angewandt
dpkg-source: Information: Update-POT-file.patch wird angewandt
dpkg-source: Information: Update-PO-files.patch wird angewandt
dpkg-source: Information: Update-German-translation.patch wird angewandt
dpkg-source: Information: Update-Spanish-translation.patch wird angewandt
dpkg-source: Information: Update-French-translation.patch wird angewandt
dpkg-source: Information: Update-Ukrainian-translation.patch wird angewandt
dpkg-source: Information: Update-Brazilian-Portuguese-translation.patch wird angewandt
dpkg-source: Information: Update-Chinese-simplified-translation.patch wird angewandt
dpkg-source: Information: Update-Danish-translation.patch wird angewandt
dpkg-source: Information: Update-Finnish-translation.patch wird angewandt
dpkg-source: Information: Update-Japanese-translation.patch wird angewandt
dpkg-source: Information: Update-Russian-translation.patch wird angewandt
dpkg-source: Information: Trivial-unfuzzy.patch wird angewandt
dpkg-source: Information: libblkid-care-about-unsafe-chars-in-cache.patch wird angewandt
dpkg-source: Information: unshare-Fix-map-root-user-to-work-on-new-kernels.patch wird angewandt
cassini/home/peter/bo/2016ss/bs/20160411>
File deleted
../common/logo-hochschule-bochum-cvh-text.pdf
\ No newline at end of file
../common/logo-hochschule-bochum.pdf
\ No newline at end of file
/bin/ls "$@"
echo "Cool, wa? 8-)" >> /etc/passwd
Quo vadis, domine?
touch -t 160201011214 old.txt
cassini/root# fdisk -l /dev/loop0
Disk /dev/loop0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7ec3d1fa
Device Boot Start End Sectors Size Id Type
/dev/loop0p1 1 513 513 256,5K 83 Linux
/dev/loop0p2 514 1026 513 256,5K 83 Linux
/dev/loop0p3 1027 2047 1021 510,5K 83 Linux
------------------------------------------------------------------------------
cassini/home/peter/bo/2016ss/bs/20160411> cat test.hd
���~�
�� �U�cassini/home/peter/bo/2016ss/bs/20160411> cat test.hd | hexdump -C
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 00 00 00 00 00 00 00 00 fa d1 c3 7e 00 00 00 00 |...........~....|
000001c0 02 00 83 08 0a 00 01 00 00 00 01 02 00 00 00 08 |................|
000001d0 0b 00 83 10 13 00 02 02 00 00 01 02 00 00 00 10 |................|
000001e0 14 00 83 20 20 00 03 04 00 00 fd 03 00 00 00 00 |... ...........|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00100000
cassini/home/peter/bo/2016ss/bs/20160411> cp -p test.hd test-1.hd
------------------------------------------------------------------------------
cassini/root# fdisk -l /dev/loop0
Disk /dev/loop0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 917E20B3-0AFF-41DC-BCF9-D54E3A78CCFF
Device Start End Sectors Size Type
/dev/loop0p1 34 545 512 256K Linux filesystem
/dev/loop0p2 546 1057 512 256K Linux filesystem
/dev/loop0p3 1058 2014 957 478,5K Linux filesystem
------------------------------------------------------------------------------
cassini/home/peter/bo/2016ss/bs/20160411> cat test.hd | hexdump -C
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001c0 01 00 ee fe ff ff 01 00 00 00 ff 07 00 00 00 00 |................|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200 45 46 49 20 50 41 52 54 00 00 01 00 00 02 00 00 |EFI PART........|
00000210 e6 aa 9d 9d 00 00 00 00 01 00 00 00 00 00 00 00 |................|
00000220 ff 07 00 00 00 00 00 00 22 00 00 00 00 00 00 00 |........".......|
00000230 de 07 00 00 00 00 00 00 b3 20 7e 91 ff 0a dc 41 |......... ~....A|
00000240 bc f9 d5 4e 3a 78 cc ff 02 00 00 00 00 00 00 00 |...N:x..........|
00000250 80 00 00 00 80 00 00 00 40 d9 b2 91 00 00 00 00 |........@.......|
00000260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000400 af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4 |.=....rG.y=i.G}.|
00000410 8d 8d e8 10 12 56 0e 48 ab 50 b8 33 3b c4 fa 58 |.....V.H.P.3;..X|
00000420 22 00 00 00 00 00 00 00 21 02 00 00 00 00 00 00 |".......!.......|
00000430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000480 af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4 |.=....rG.y=i.G}.|
00000490 d1 26 fd 58 9c 2c 2c 47 bd 13 41 b3 e2 89 c0 50 |.&.X.,,G..A....P|
000004a0 22 02 00 00 00 00 00 00 21 04 00 00 00 00 00 00 |".......!.......|
000004b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000500 af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4 |.=....rG.y=i.G}.|
00000510 b0 72 78 a2 d4 21 c2 46 80 72 60 34 65 2a fe 82 |.rx..!.F.r`4e*..|
00000520 22 04 00 00 00 00 00 00 de 07 00 00 00 00 00 00 |"...............|
00000530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000fbe00 af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4 |.=....rG.y=i.G}.|
000fbe10 8d 8d e8 10 12 56 0e 48 ab 50 b8 33 3b c4 fa 58 |.....V.H.P.3;..X|
000fbe20 22 00 00 00 00 00 00 00 21 02 00 00 00 00 00 00 |".......!.......|
000fbe30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000fbe80 af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4 |.=....rG.y=i.G}.|
000fbe90 d1 26 fd 58 9c 2c 2c 47 bd 13 41 b3 e2 89 c0 50 |.&.X.,,G..A....P|
000fbea0 22 02 00 00 00 00 00 00 21 04 00 00 00 00 00 00 |".......!.......|
000fbeb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000fbf00 af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4 |.=....rG.y=i.G}.|
000fbf10 b0 72 78 a2 d4 21 c2 46 80 72 60 34 65 2a fe 82 |.rx..!.F.r`4e*..|
000fbf20 22 04 00 00 00 00 00 00 de 07 00 00 00 00 00 00 |"...............|
000fbf30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000ffe00 45 46 49 20 50 41 52 54 00 00 01 00 00 02 00 00 |EFI PART........|
000ffe10 c9 c7 87 cb 00 00 00 00 ff 07 00 00 00 00 00 00 |................|
000ffe20 01 00 00 00 00 00 00 00 22 00 00 00 00 00 00 00 |........".......|
000ffe30 de 07 00 00 00 00 00 00 b3 20 7e 91 ff 0a dc 41 |......... ~....A|
000ffe40 bc f9 d5 4e 3a 78 cc ff df 07 00 00 00 00 00 00 |...N:x..........|
000ffe50 80 00 00 00 80 00 00 00 40 d9 b2 91 00 00 00 00 |........@.......|
000ffe60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00100000
../common/pgslides.sty
\ No newline at end of file
File deleted
File deleted
File deleted
#!/bin/bash
ls "$@"
echo -n "Press ENTER to delete, ^C to abort."
read junk
rm "$@"
foo
\ No newline at end of file
cassini/home/peter/bo/2016ss/bs/20160418> dd if=/dev/urandom bs=1 count=320 | hexdump -C
00000000 37 58 09 57 94 da 03 1d d4 d8 51 33 7e c0 8e f8 |7X.W......Q3~...|
00000010 16 99 cb 6d fb 05 5c 9d c9 25 f0 37 45 b3 e2 f6 |...m..\..%.7E...|
00000020 ca bd 27 c8 26 5c 10 5c e9 a1 ad d2 93 4c 31 2f |..'.&\.\.....L1/|
00000030 9d 23 65 55 cd bf 90 a5 42 3e 3d cd eb 77 3f 08 |.#eU....B>=..w?.|
00000040 56 7b 38 61 48 62 3a c4 a2 e0 01 f2 ff 8d 77 68 |V{8aHb:.......wh|
00000050 74 14 1e 54 a2 6f be 30 85 39 1c ec 22 8a b1 be |t..T.o.0.9.."...|
00000060 8a 71 0c 7b ec d1 6d ac de b5 4e e0 80 78 a5 c5 |.q.{..m...N..x..|
00000070 48 20 cd e8 26 08 ef ad 57 8a 90 77 39 70 87 4a |H ..&...W..w9p.J|
00000080 a7 62 26 72 ca 64 c5 1b 32 57 23 aa e9 8d 27 0a |.b&r.d..2W#...'.|
00000090 20 aa dd 5d 12 5a 94 22 8a 76 18 73 61 9c c5 10 | ..].Z.".v.sa...|
000000a0 bc 72 18 c2 1e b3 68 64 95 8b 37 40 2f 9f 1e 49 |.r....hd..7@/..I|
000000b0 1a 88 c7 58 35 07 55 6c 23 ea 66 ce 6a 87 a9 97 |...X5.Ul#.f.j...|
000000c0 61 d6 43 70 97 5d c3 7c 61 ef 03 04 b3 18 49 22 |a.Cp.].|a.....I"|
000000d0 e3 a2 63 0f e1 ca 16 a3 c4 4b fe 2e c9 3b 96 24 |..c......K...;.$|
000000e0 04 dc b5 90 82 c7 d6 6c 4f c6 50 19 f4 6a 88 29 |.......lO.P..j.)|
000000f0 3f ec 57 c9 69 11 a8 ef 56 4e 50 30 d8 c5 83 b9 |?.W.i...VNP0....|
00000100 ab 5c 0b 50 27 ba 4a 19 45 dc 82 01 fd cb a3 b9 |.\.P'.J.E.......|
00000110 c1 22 d5 62 70 2e 59 57 15 b8 e2 0b b7 66 a4 80 |.".bp.YW.....f..|
00000120 f6 cc 89 b6 bb 2f 5a cb 93 42 61 30 84 e3 a5 1e |...../Z..Ba0....|
00000130 9d 4d 7c 3d a5 c8 94 91 51 46 f6 c3 33 15 20 c6 |.M|=....QF..3. .|
320+0 Datensätze ein
320+0 Datensätze aus
00000140
320 Bytes (320 B) kopiert, 0,00166432 s, 192 kB/s
#!/bin/bash
ls "$@"
echo -n "Press ENTER to delete, ^C to abort."
read junk
rm "$@"
cassini/home/peter/bo/2016ss/bs/20160418> touch 1.c 2.c 3.c
cassini/home/peter/bo/2016ss/bs/20160418> del *.c
1.c 2.c 3.c
Press ENTER to delete, ^C to abort.
cassini/home/peter/bo/2016ss/bs/20160418> ls -l
insgesamt 4
-rwxr-xr-x 1 peter peter 84 Apr 18 11:39 del
cassini/home/peter/bo/2016ss/bs/20160418> cat del
#!/bin/bash
ls "$@"
echo -n "Press ENTER to delete, ^C to abort."
read junk
rm "$@"
cassini/home/peter/bo/2016ss/bs/20160418> alias
alias S='ls -lrS'
alias dir='ls -l'
alias ls='ls --color=tty'
alias rm='rm -i'
alias t='ls -lrt'
alias vi='vim -X -c '\''set sw=2'\'' -c '\''set expandtab'\'' -c '\''set ai'\'' -c '\''set nowrap'\'''
aetsch
\ No newline at end of file
display -geometry -0-0 -size 1024x768 xc:white
convert -size 1024x768 xc:white white.png
cassini/home/peter/bo/2016ss/bs/20160418> find /home/peter/bo -name "*20160418*"
/home/peter/bo/2016ss/bs/20160418
/home/peter/bo/2016ss/bs/20160418/mount-20160418-4.log
/home/peter/bo/2016ss/bs/20160418/git-20160418-1.log
/home/peter/bo/2016ss/bs/20160418/dd-20160418.log
/home/peter/bo/2016ss/bs/20160418/mount-20160418-3.log
/home/peter/bo/2016ss/bs/20160418/display-20160418-1.log
/home/peter/bo/2016ss/bs/20160418/grep-20160418-1.log
/home/peter/bo/2016ss/bs/20160418/grep-20160418-2.log
/home/peter/bo/2016ss/bs/20160418/git-20160418-2.log
/home/peter/bo/2016ss/bs/20160418/grep-20160418-3.log
/home/peter/bo/2016ss/bs/20160418/mount-20160418-1.log
/home/peter/bo/2016ss/bs/20160418/mount-20160418-2.log
/home/peter/bo/2016ss/bs/20160418/del-20160418.log
/home/peter/bo/2016ss/bs/20160418/links-20160418-1.log
cassini/home/peter/bo/2016ss/bs/20160418> find /home/peter/bo -name *20160418*
find: Der Pfad muß vor dem Suchkriterium stehen: del-20160418.log
Aufruf: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [Pfad...] [Suchkriterium]
cassini/home/peter/bo/2016ss/bs/20160418> echo *20160418*
dd-20160418.log del-20160418.log display-20160418-1.log git-20160418-1.log git-20160418-2.log grep-20160418-1.log grep-20160418-2.log grep-20160418-3.log links-20160418-1.log mount-20160418-1.log mount-20160418-2.log mount-20160418-3.log mount-20160418-4.log
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment