Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux basic command-dmsg displays kernel output

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Dmesg

The dmesg instruction is used to print and control kernel output information, which is saved in the early ring buffer.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora, SUSE, openSUSE.

1. Grammar

Dmesg [- c] [- r] [- n level] [- s bufsize]

2. List of options

Option

Description

-c

Clear the buffer after printing

-r

Print raw information

S

Sets the buffer size. Default is 16392.

-n

Specify the level of recorded information

3. Examples

View the boot kernel output information

[root@localhost dev] # dmesg-c / / View the information, and then delete the buffer content

. . .

E1000: eth0 NIC Link is Down

E1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX

40 HostNow=1 34 000ns 12.277699 timesync vgsvcTimeSyncWorker: Radical host time change: 40 928 048000 000ns (HostNow=1 539 132 201 613 000 000ns HostLast=1 539 091 273 565000 000ns)

40 000ns 34 timesync vgsvcTimeSyncWorker 22.278538 000ns: Radical guest time change: 40 932 566 440 000ns fSetTimeLastLoop=true (539 132 211 613 841 000ns GuestLast=1 539 091 279 047 401 000ns fSetTimeLastLoop=true)

Hrtimer: interrupt took 2772539 ns

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report