🖥️dmesg

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the dmesg command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

                                                            
                                                            
                ██████╗ ███╗   ███╗███████╗███████╗ ██████╗ 
                ██╔══██╗████╗ ████║██╔════╝██╔════╝██╔════╝ 
                ██║  ██║██╔████╔██║█████╗  ███████╗██║  ███╗
                ██║  ██║██║╚██╔╝██║██╔══╝  ╚════██║██║   ██║
                ██████╔╝██║ ╚═╝ ██║███████╗███████║╚██████╔╝
                ╚═════╝ ╚═╝     ╚═╝╚══════╝╚══════╝ ╚═════╝ 
 
# Clear dmesg Buffer Logs
dmesg -c

# Display the local time and the delta in human-readable format. Conversion to the local time could be inaccurate
dmesg -e

# Print human-readable timestamps.
        # 27M	./Stuff
        # 808K	./Configs
        # 1.1M	./comemierda
        # 232M	.
dmesg -T

# Human-readable output (color + reltime)
dmesg -H
 

dmesg -w
# dmesg: follow/wait for new kernel messages
        # follow/wait for new kernel messages similar to `tail -f` available since util-linux 2.22.
                                                           
dmesg -wH 
# Live dmesg output in human readable format (colors, timing) 

dmesg -T | tail -n20 
# Show the most recent 20 lines of dmesg with the times converted to local human readable times.

dmesg -T 
# Newer versions of dmesg on Linux have this nice -T option for printing the local time instead of epoch time for timestamps

# The proper way to read kernel messages in realtime.
dmesg -wx

#==============================##==============================#
# CMD dmesg						       #
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░