filmov
tv
Bash #13 - Log files and commands to view them
Показать описание
In this video we'll go through different log files in Debian and Fedora based distros like Ubuntu and RedHat. We'll also cover different commands that help viewing the log files.
#terminal #linux #logs #rockylinux #ubuntu #redhat
Timestamp:
0:00 Intro
0:19 my setup with Ubuntu & Rocky Linux VMs
0:40 log files path
0:55 list of log files
1:13 commands to view log files
1:35 cat syslog
4:48 grep logs (search pattern)
5:46 dmesg (diagnotic messages)
6:19 logger (custom logs entries to syslog)
6:48 journalctl
8:40 log priorities
Related video:
Used commands:
hostnamectl
cd /var/log
sudo cat syslog
sudo grep -i service syslog
sudo cat syslog | grep -i service
sudo dmesg
sudo dmesg | grep -i driver
sudo dmesg | grep -i usb
sudo dmesg --level=err,warn
sudo dmesg -T --level=err,warn
sudo dmesg --follow
sudo watch tail syslog
sudo logger adding a custom log entry for itvraag
sudo logger testing a new log entry by $USER on $(date)
journalctl
journalctl -r
journalctl -n 4
journalctl -fu ssh
journalctl --list-boots
journalctl -b 2
journalctl --since="2022-03-10 19:40:00"
journalctl --since "10 min ago"
#terminal #linux #logs #rockylinux #ubuntu #redhat
Timestamp:
0:00 Intro
0:19 my setup with Ubuntu & Rocky Linux VMs
0:40 log files path
0:55 list of log files
1:13 commands to view log files
1:35 cat syslog
4:48 grep logs (search pattern)
5:46 dmesg (diagnotic messages)
6:19 logger (custom logs entries to syslog)
6:48 journalctl
8:40 log priorities
Related video:
Used commands:
hostnamectl
cd /var/log
sudo cat syslog
sudo grep -i service syslog
sudo cat syslog | grep -i service
sudo dmesg
sudo dmesg | grep -i driver
sudo dmesg | grep -i usb
sudo dmesg --level=err,warn
sudo dmesg -T --level=err,warn
sudo dmesg --follow
sudo watch tail syslog
sudo logger adding a custom log entry for itvraag
sudo logger testing a new log entry by $USER on $(date)
journalctl
journalctl -r
journalctl -n 4
journalctl -fu ssh
journalctl --list-boots
journalctl -b 2
journalctl --since="2022-03-10 19:40:00"
journalctl --since "10 min ago"