Press enter to see results or esc to cancel.

grep ile renkli ciktilar

tail -f /var/log/maillog | grep –color=’auto’ “murat@murat.ws”

[root@mail ~]# tail -f /var/log/maillog | grep –color=’auto’ “murat@murat.ws
Oct 18 15:17:46 mail postfix/virtual[28927]: 6B04C9C22BC: to=<murat@murat.ws>, relay=virtual, delay=0.75, delays=0.09/0.06/0/0.6, dsn=2.0.0, status=sent (delivered to maildir)
Oct 18 15:18:08 mail imapd: LOGIN, user=murat@murat.ws, ip=[::ffff:127.0.0.1], protocol=IMAP
Oct 18 15:18:09 mail imapd: LOGOUT, user=murat@murat.ws, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=398, time=1

bu islemin kalici olmasini istiyorsaniz, home klasorunuzun altinda bulunan .bashrc dosyasina alias grep=’grep –color=auto’ satirini ekleyebilirsiniz.

🙂