101 Exam Flashcards
(971 cards)
Regular File System
Method of laying out files and folders on a physical hard disk
Two primary psuedo file system locations
/proc
/sys
Linux Kernel
- Core framework of the OS
- Handles memory management and hardware device interactions
- Many third-party kernel modules are device drivers
uname
displays information about current running kernel
uname -m
prints machine hardware name
uname -rm
brings up kernel release version with hardware name
uname -a
brings up OS, host name of the server, kernel release version, build time of the kernel, machine architecture, cpu type, and the OS label
modprobe
used to dynamically load and unload kernel modules at runtime
modprobe -r
used to remove a kernel module
modprobe (name)
used to add a kernel module
xfs module
used by kernel to know how to work with the PC’s file system
/udev
device manager for the Linux kernel, links information on system.
lspci
- displays information on PCI devices attached
- should the kernel not recognize a device, it will show up here and contain information that can be used to find drivers/modules
lsusb
displays information on USB devices attached
lsblk
lists hard disk and partition
procfs
Information about system hardware and the state of the system is contained in this
‘pseudofilesystem’
/proc
- Usually where the procfs filesystem is mounted.
-Within this directory, you will find directories that correspond in label (number) to the
associated PID (Process ID) of running processes
/proc/mounts
file (or link to another file) that contains information on all the
filesystems that are mounted locally
/proc/interrupts
shows information about the interrupts in use in the system
and what they are associated with (the hardware that is using them)
/proc/ioports
one or more addresses that identify a device, and the kernel module associated with them
/proc/dma
(Direct Memory Access), values used by hardware to access system memory directly (i.e. without involving the CPU)
/proc/usb
USB device IDs and kernel modules associated with them
/proc/pci
PCI device IDs and kernel modules associated with them
sysfs
- ‘pseudofilesystem’ that can contain information about system hardware (like procfs)
-designed to address some of the problems with the procfs method (unstructured data and
the fact that both hardware and process information was consolidated in the structure)