Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Managing processes and services is essential for maintaining system stability.

ps aux # Lists all running processes

Code Block
languagebash
themeMidnight
 ps aux

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0 168800 10944 ?        Ss   Jun12   0:02 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Jun12   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        I<   Jun12   0:00 [rcu_gp]
root         4  0.0  0.0      0     0 ?        I<   Jun12   0:00 [rcu_par_gp]
...

...

/var/log/syslog or /var/log/messages - Stores all activity data across the global system. Activity for Redhat-based systems, such as (CentOS or Rhel, are ) stored in messages, while Ubuntu and other Debian-based (Ubuntu) systems are stored in syslog.

/var/log/auth.log or /var/log/secure - Stores authentication logs, including both successful and failed logins and authentication methods. Debian/Ubuntu information is stored in /var/log/auth.log, while Redhat/CentrOS is stored in /var/log/secure.

/var/log/apt directory - on Debian-based systems we can find the logs for the apt package manager on Debian - based systems, directory contains several log files that provide important information about apt-related activities on the systemDebian-based systems.

/var/log/yum.log - Red Hat-based systems store the yum and dnf package manager logs, file provides information about the results of a specific command, such as any errors or warnings that were generated. For example, if a package update fails,.

/var/log/dmesg
dmesg
allows reviewing messages stored in the Linux ring buffer, providing insights into hardware errors and startup issues. How To Use dmesg

...