dmesg_시간_출력

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
dmesg_시간_출력 [2017/09/21 05:13] koovdmesg_시간_출력 [2017/09/25 08:07] (현재) – [dmesg 시간 출력] admin
줄 1: 줄 1:
 ====== dmesg 시간 출력 ====== ====== dmesg 시간 출력 ======
 + --- //[[koovis@gmail.com|이강우]] 2017/09/25 16:37//
  
 ===== CentOS / RHEL 6 이하버전 ===== ===== CentOS / RHEL 6 이하버전 =====
줄 50: 줄 51:
 # run only if timestamps are enabled # run only if timestamps are enabled
 if [ "Y" = "$(cat /sys/module/printk/parameters/time)" ]; then if [ "Y" = "$(cat /sys/module/printk/parameters/time)" ]; then
-#  dmesg | sed "s/^\[[ ]*\?\([0-9.]*\)\] \(.*\)/\\1 \\2/" | while read timestamp message; do 
-#    printf "[%s] %s\n" "$(date --date "now - $uptime seconds + $timestamp seconds" +"${date_format}")" "$message" 
-#  done 
 dmesg | while read line ; do dmesg | while read line ; do
  if [ ${line:0:1} != '[' ]; then echo $line;  if [ ${line:0:1} != '[' ]; then echo $line;
줄 67: 줄 65:
 </WRAP> </WRAP>
  
 +
 +===== 참조링크 =====
 +  * https://access.redhat.com/solutions/37941
  
  • dmesg_시간_출력.1505970829.txt.gz
  • 마지막으로 수정됨: 2017/09/21 05:13
  • 저자 koov