dmesg -T

直接用dmesg显示系统信息,很难看

[95721.670025] snapshot device recevied [read] io request, access on dev sector[272], length is [240] sectors.
[95721.670363] device is closed
[95721.693207] device is closed
显示的时间没有办法看。

使用dmesg --help看到,如下:

Usage:
 dmesg [options]

Display or control the kernel ring buffer.

Options:
 -C, --clear                 clear the kernel ring buffer
 -c, --read-clear            read and clear all messages
 -D, --console-off           disable printing messages to console
 -E, --console-on            enable printing messages to console
 -F, --file <file>           use the file instead of the kernel log buffer
 -f, --facility <list>       restrict output to defined facilities
 -H, --human                 human readable output
 -k, --kernel                display kernel messages
 -L, --color[=<when>]        colorize messages (auto, always or never)
                               colors are enabled by default
 -l, --level <list>          restrict output to defined levels
 -n, --console-level <level> set level of messages printed to console
 -P, --nopager               do not pipe output into a pager
 -r, --raw                   print the raw message buffer
 -S, --syslog                force to use syslog(2) rather than /dev/kmsg
 -s, --buffer-size <size>    buffer size to query the kernel ring buffer
 -u, --userspace             display userspace messages
 -w, --follow                wait for new messages
 -x, --decode                decode facility and level to readable string
 -d, --show-delta            show time delta between printed messages
 -e, --reltime               show local time and time delta in readable format
 -T, --ctime                 show human readable timestamp (may be inaccurate!)
 -t, --notime                don't print messages timestamp
     --time-format <format>  show time stamp using format:
                               [delta|reltime|ctime|notime|iso]
Suspending/resume will make ctime and iso timestamps inaccurate.

-h, --help     display this help and exit

可以使用-T来显示可读时间,如下:

dmesg -T

[Fri Aug 31 17:55:32 2018] device is closed
[Fri Aug 31 17:55:32 2018] device is closed

linux dmesg 显示可读时间格式相关推荐

  1. mysql将时间戳转成常用可读时间格式

    mysql中一个表的一个时间列是int类型,现在想修改这个字段的值,打算可读日期时间格式转成int,然后修改那个值. 这个转换函数就是UNIX_TIMESTAMP,将可读的时间转换成int类型,具体用 ...

  2. linux的时间转换为字符串,linux time转换为可读时间字符串

    将linux time转换为可读的时间字符串的方法 -陈运文 用下面的函数可以方便的转换(C语言) int change_time_tostr(int time, char *timestr){ tm ...

  3. linux下显示其他时区时间

    时区的系统常见定义: unix系统时区设置: 每个用户可以使用环境变量TZ来设置与系统不同的时区,这个设置将覆盖系统的设置.执行date命令,显示与系统不同的时区时间. 常见的系统时区定义: Time ...

  4. mysql 把时间戳转时间格式_mysql时间戳转成常用可读时间格式的两种方法

    使用EXECL转换时间戳的公式为: 代码:=(xxxxxxxxxx+8*3600)/86400+70*365+19 使用MYSQL语句解释时间戳语法举例: 代码: SELECT FROM_UNIXTI ...

  5. linux 时间 环境变量,Linux环境变量的修改(永久,暂时)以及修改ls显示的时间格式...

    本文转自:http://blog.sina.com.cn/s/blog_8e21864f01014u9h.html Linux修改环境变量,很简单但很重要 一.Linux的变量种类 按变量的生存周期来 ...

  6. linux如何更改服务器时间格式,Linux中date命令,格式化输出,时间设置

    date命令的帮助信息 [root@localhost source]# date --help 用法:date [选项]...[+格式] 或:date [-u|--utc|--universal] ...

  7. linux 时间戳 c语言,c语言中的时间戳和时间格式

    0.读取系统毫秒级时间long getCurrentTime() { struct timeval tv; gettimeofday(&tv,NULL); return tv.tv_sec * ...

  8. linux修改文件创建的时间格式,Linux下修改文件创建时间(修改文件更改时间)

    Linux下修改文件创建时间(修改文件更改时间) 进到要改的文件目录里 find . -name "*" -exec touch '{}' \; 注:最后一定要加分号,{}外一定要 ...

  9. 在mini6410嵌入式linux上使用QT4和mitab显示mapinfo或mif格式电子地图

    Mapinfo是目前较为常用的一种电子地图.市面上的各种电子地图基本都是这种格式,或是由这种格式演变来的.这种格式的电子地图,在网上较容易下载或购买到.这篇文章描述了如何在嵌入式linux上显示map ...

最新文章

  1. 数组方法深入扩展(遍历forEach,filter,reduce等)
  2. dynamic modelling
  3. 两个python文件怎么联系在一起_【新手求助】怎样把两个程序连接在一起?老师作业,谢谢啦...
  4. TCP通信的客户端代码实现
  5. 线程间通信————互斥
  6. 带偏移量的AES加密工具
  7. 实体框架 5.0:空间数据类型、性能增强、数据库提升
  8. 在 Linux 平台下使用 JNI
  9. 大型网站采用的具有稳定性的系统构架
  10. springboot项目启动rabbitmq报错org.springframework.amqp.AmqpIOException: java.io.IOException
  11. 牛b硬件信息修改大师_比X大师更靠谱?一款真正良心的硬件检测工具
  12. 纯电动两档箱实际项目模型,本模型基于Cruise软件和搭建完成,本资料包包含所有源文件
  13. TOPSIS法 —— python
  14. p2p文件服务器,P2P文件传输
  15. IDEA 更改配色和主题样式
  16. elasticsearch单机版安装及安装过程踩的坑整理
  17. 计算机所有以太网适配的ip,演示win10电脑以太网没有有效的ip配置
  18. oracle查询元数据,Oracle Spatial-元数据及SDO_GEOMETRY
  19. 前端(JQuery):使用magnify插件实现图片预览
  20. A,B两个整数集合,设计一个算法求他们的交集,尽可能的高效(牛客网)

热门文章

  1. Python基本语法_控制流语句_if/while/for
  2. 好程序员web前端分享javascript枚举算法
  3. 移动端 元素外面使用伪类after加边框 导致其内部元素无法选中
  4. 抓信插件开发遇到网页的CSS不起作用
  5. wireshark从入门到精通(协议排错安全篇)3
  6. 在子线程中弹土司的一段代码
  7. 在vmware esx平台创建windows 2003 server群集时无法找到共享磁盘的解决方法
  8. RIM 将在今天发布新的 BlackBerry 7 OS 手机
  9. 分区视图(转自小春BOOK)
  10. Algs4-1.1.21打印表格