linux:systemd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:systemd [2022/08/29 01:23] adminlinux:systemd [2023/12/02 17:45] (current) – [Linux.Systemd] admin
Line 1: Line 1:
 ====== Linux.Systemd ====== ====== Linux.Systemd ======
 +cheat sheet https://gist.github.com/alertor/332083217f0797fd52d6e1b2d51ad86c \\
  
 ===== Linux.Systemd.JournalCtl ===== ===== Linux.Systemd.JournalCtl =====
 +
 +  * https://dannyda.com/2021/05/30/how-to-use-systemctl-systemd-runlevel/
  
 <code BASH> <code BASH>
-флаги+# параметры
 -g grep - поиск в тексте -g grep - поиск в тексте
 -e end - сразу переходить в конец -e end - сразу переходить в конец
Line 15: Line 17:
 --no-pager - выводить без pager`a, например для анализа --no-pager - выводить без pager`a, например для анализа
  
-filter+фильтры 
 +-k                                           - показать только сообщения ядра.
 -t SYSLOG_IDENTIFIER                         - отфильтровать по SYSLOG_IDENTIFIER -t SYSLOG_IDENTIFIER                         - отфильтровать по SYSLOG_IDENTIFIER
 --since "2 days ago" / "2022-06-26 23:15:00" - с --since "2 days ago" / "2022-06-26 23:15:00" - с
Line 21: Line 24:
 -u nginx.service -u mysql.service            - unit -u nginx.service -u mysql.service            - unit
 -p "emerg".."crit"                           - priority  -p "emerg".."crit"                           - priority 
 +      ●  0 or “emerg” ●  1 or “alert” ●  2 or “crit” ●  3 or “err” ●  4 or “warning” ●  5 or “notice” ●  6 or “info” ●  7 or “debug”
 _UID=108                                     - user $id => uid=108(mysql) _UID=108                                     - user $id => uid=108(mysql)
  
  • linux/systemd.1661736183.txt.gz
  • Last modified: 2022/08/29 01:23
  • by admin