Linux_LPI-101_01
Linux_LPI-101_01
Linux_LPI-101_01
Fichier Détails
Cartes-fiches | 54 |
---|---|
Utilisateurs | 13 |
Langue | Deutsch |
Catégorie | Informatique |
Niveau | Apprentissage |
Crée / Actualisé | 22.11.2013 / 17.10.2023 |
Lien de web |
https://card2brain.ch/box/linuxlpi10101
|
Intégrer |
<iframe src="https://card2brain.ch/box/linuxlpi10101/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
lspci
lsusb
/lib/modules
/lib/modules/"kernelversion"/modules.xyzmap
uname -r
uname, uname -a (detailiert)
lsmod
Über einen SCSI Emulator
/etc/udev/rules.d/ (Die Files enden mit .rules)
/dev
sysfs ist ein virtuelles Filesytem (ram-based filesystem)
Info: hald is a daemon that maintains a database of the devices connected to the system system in real-time (from the Udev service). The daemon connects to the D-Bus system message bus to provide an API that applications can use to discover, monitor and invoke operations on devices.
Info: Dbus is like a system bus which is used for inter-process communication. hald notifies the corresponding "desktop application" through the Dbus and this App can open the mounted device‚files,…
Info: udev überwacht und wertet hotplug-Ereignisse aus. Udev supplies a dynamic device directory containing only the nodes for devices which are connected to the system. It creates or removes the device node files in the /dev directory as they are plugged in or taken out
dmesg
/var/log/messages
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network
/etc/init.d/network restart
Info: Hotplub oder Coldplug ist Linux egal, kommt auf HW an ob es im Betrieb aus-, eingesteckt werden kann.
/proc/ z.B. interrupts, version
modinfo (z.B. modinfo /lib/modules/2.6.32-358.el6.x86_64/kernel/net/wireless/cfg80211.ko)
modprobe, Bsp: modprobe -r usb_storage (entfenrt USB Modul, ohne -r wird’s hinzugefügt)
eject /dev/sdb
/sys
ls /sys/bus/*/*
Info: bootloader GRUB ist flexibler asl LILO, bei GRUB können noch die Startparameter (e)ditiert werden
id
exec /sbin/init
Info Bootvorgang: Bios, Bootloader (GRUB), GRUB startet Kernel, Kernel lädt Treiber, Kernel greift auf root verzeichnis zu und bindet es read only ein und startet den init Prozess, init Prozess startet den Rest der Dienste
Startoptionen verändern (GRUB)
/var/log/boot.log
Im Grub in der Zeile "Kernel" den Parameter "init=/bin/bash rw" dem Bootloader mitgeben, oder nur single am Ende der Kernel Zeile
Zeigt auf das Wurzelverzeichnis des boot Loaders, muss nicht dasjenige von Linux sein -> falls separate boot Partition.
/sbin/init
/etc/inittab
rpm -qc "SysVinit" oder rpm -ql SysVinit | grep etc/
info: runlevel. runlevel bauen nicht aufeinander auf. Sammlung von Diensten welche gestartet werden. Runlevel 0 -> fährt system herunter. Runvlevel 1 -> es wird nur ein Prozess, eine shell gestartet, es läuft nur dieser Prozess, man kann sich nicht auf verschiedene Textconsolen anmelden. Runlevel 2 -> Multiuser, mehrere consolen jedoch ohne netzwerk, wenn Homelaufwerk auf einem netzwerkshare liegt funktioniert das nicht. keine grafische Oberfläche. Runlevel 3 -> Netzwerkzugriff. Runlevel 4 -> unused. Runlevel 5 -> Grafische Oberfläche, X11. Runlevel 6 -> System reboot.
ca::ctrlaltdel:/sbin/shutdown -t3 -r now