Archive for July, 2009

links for 2009-07-29

Jul 30 2009 Published by under Uncategorized

No responses yet

links for 2009-07-28

Jul 29 2009 Published by under Uncategorized

No responses yet

links for 2009-07-27

Jul 28 2009 Published by under Uncategorized

No responses yet

Less is better, than tail

Jul 27 2009 Published by under English,OS X

I’ve been using tail to watch my log files for years:

tail -f log/production.log

It works great all the time, until you want to search for something, then you have to ctrl+c and open the file in less or vi.

Maybe there is a better way? After some googling, I found less is the answer:

less +F log/production.log

less +F works exactly like tail -f, with more:

  • Simply press ctrl+c to switch to editing model, so you can scroll backward and using any more/vi command, such as /pattern to search
  • Press shift+f again to switch back to tail model

Anyway, just run man less to find some more information.

8 responses so far

links for 2009-07-26

Jul 27 2009 Published by under Bookmarks

No responses yet

The Internet in One Graphic

Jul 21 2009 Published by under English

Source:

The Internet in One Graphic

No responses yet

links for 2009-07-20

Jul 21 2009 Published by under Bookmarks

No responses yet

links for 2009-07-11

Jul 12 2009 Published by under Bookmarks

No responses yet

links for 2009-07-08

Jul 09 2009 Published by under Bookmarks

No responses yet