Chinaunix首页 | 论坛 | 博客
  • 博客访问: 534925
  • 博文数量: 116
  • 博客积分: 2063
  • 博客等级: 大尉
  • 技术积分: 1174
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-26 16:44
个人简介

none

文章分类

全部博文(116)

文章存档

2023年(2)

2020年(3)

2019年(4)

2018年(7)

2017年(6)

2016年(17)

2015年(13)

2014年(19)

2013年(6)

2012年(13)

2011年(5)

2010年(11)

2008年(10)

分类: LINUX

2011-12-12 15:43:12

~ >: ls -l /var/
lrwxrwxrwx    1 root     root             6 Dec 12  2011 cache -> ../tmp
lrwxrwxrwx    1 root     root             6 Dec 12  2011 lock -> ../tmp
lrwxrwxrwx    1 root     root             6 Dec 12  2011 log -> ../tmp
lrwxrwxrwx    1 root     root             6 Dec 12  2011 pcmcia -> ../tmp
lrwxrwxrwx    1 root     root             6 Dec 12  2011 run -> ../tmp
lrwxrwxrwx    1 root     root             6 Dec 12  2011 spool -> ../tmp
lrwxrwxrwx    1 root     root             6 Dec 12  2011 tmp -> ../tmp

WITHOUT THE FOLDER /VAR AND THE  FOLLOWING UP SOFT LINK, DEBUG CONSOLE WILL PRINT CONTENT WHICH SHOULD BE STORE IN THE FILE /TMP/messages

localhost login: [    7.160000] eth0: link up (100/Full)
Jan  1 02:31:51 localhost user.info kernel: [    7.160000] eth0: link up (100/Full)
Jan  1 02:31:58 localhost user.info dropbear[483]: Child connection from 192.168.200.104:2534
Jan  1 02:32:11 localhost user.notice dropbear[483]: password auth succeeded for 'root' from 192.168.200.104:2534
Jan  1 02:32:11 localhost user.warn dropbear[484]: lastlog_perform_login: Couldn't stat /var/log/lastlog: No such file or directory
Jan  1 02:32:11 localhost user.warn dropbear[484]: lastlog_openseek: /var/log/lastlog is not a file or directory!
Jan  1 02:32:11 localhost user.warn dropbear[484]: wtmp_write: problem writing /var/log/wtmp: No such file or directory


HOW TO SHOW PRINTK MSG AUTOMATIC  WHILE DEBUGGING KERNEL SPACE CODE ON EMBEDDED DEVICE WITHOUT CONSOLE CABLE
cat /proc/kmsg

This file is used to hold messages generated by the kernel. These messages are then picked up by other programs, such as /sbin/klogd or /bin/dmesg.
阅读(1465) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~