section 9 - processes, package management, logs, resources Flashcards
Ubuntu, Raspbian, Mint, Debian package manager
.deb based:
APT
CentOS, Fedora package manager
.rpm based:
CentOS - YUM
Fedora - DNF
the program responsible for starting up all the basic programs Linux needs to run, first thing launched by the kernel
/sbin/init
PID starts with what?
1
child processes inherit what from the parent?
the parent’s PID becomes the child’s PPID
what two commands can be used to view running processes?
ps
top
what command can view available memory?
free
What is the kernel ring buffer? How do you view it?
a log file for the kernel itself, stored in memory rather than a log file
dmesg | less
dmesg | grep keyword
How do you manually create a log file for the kernel ring buffer?
To manually create a kernel ring buffer log file, edit /etc/rc.d/rc.local by adding
this at the end: dmesg > /var/log/dmesg
How is viewing the kernel ring buffer useful?
troubleshooting hardware and driver issues
kernel logging tool separate from other programs
klog
General standard for logging system and program messages
syslogd
Info about the most recent startup of an X windows system
Xorg.0.log
directory with Security-related messages
Secure
● Related to the gnome display manager or gdm environment
● Handles graphical-based user logins
gdm/