336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
https://unix.stackexchange.com/questions/8414/how-to-have-tail-f-show-colored-output
How to have tail -f show colored output
I'd like to be able to tail the output of a server log file that has messages like: INFO SEVERE etc, and if it's SEVERE, show the line in red; if it's INFO, in green. What kind of alias can I se...
unix.stackexchange.com
안녕하세요.
RPI 에서 Log를 볼때 콘솔에 색상을 입히면 좋을꺼 같다 생각했습니다.
그래서 찾다 보니 grc란게 있네요.
결과는 이와 같습니다.
watch를 사용 할 경우, 컬러 반영이 안되서 while do를 사용해야 되네요.
while sleep 60; do clear; sudo grc tail -n18 /var/log/nginx/error.log /var/log/nginx/access.log /var/log/vsftpd.log ; done
감사합니다.
'관련자료' 카테고리의 다른 글
요소수 관련되서 정리를 남깁니다. (0) | 2021.11.11 |
---|---|
grep 에서 and 조건절 입력 커맨드 (0) | 2021.11.11 |
RPI 에서 auth.log에 로그를 남기는 방법 (0) | 2021.11.10 |
RPI 커맨드로 여러개 LOG 확인하는 방법. (0) | 2021.11.10 |
Linux 콘솔에서 파일 비교 방법 입니다. (0) | 2021.11.09 |