r/unix • u/based2 • Jun 06 '15
Stop using tail -f (mostly)
http://www.brianstorti.com/stop-using-tail/?utm_content=buffer13c971
u/usinglinux Jun 07 '15
"watch - navigate - keep watching" is trivial with tail -f when using tmux or similar (as long as the scrollback is long enough). that also works with zless & co, and with --follow=name.
1
u/ReturnOfThePing Jun 07 '15
I learned two things from this: You can use 'tail -f' on multiple log files, and also I gotta try 'less +F'.
0
Jun 06 '15
[deleted]
1
u/cogburnd02 Jun 11 '15
Yes let's all memorize GNU specific commands that don't work anymore once you're faced with one of the other Unices.
OTOH, it's not like you can't install
lesson those other unices...:-)
0
Jun 11 '15
[deleted]
1
u/cogburnd02 Jun 12 '15
Why? Your sysadmin should at least let you put
lessin~and then you can add that to your$PATHand that would work, right?0
Jun 12 '15
[deleted]
1
u/cogburnd02 Jun 12 '15
installing your own software to tightly controlled systems is also rather frowned upon.
What type of systems are you talking about?
0
Jun 12 '15
[deleted]
1
u/cogburnd02 Jun 16 '15
I'd have to submit a change request, do a proper risk analysis, and provide business justification for why I want to use this particular piece of software.
Let's go ahead and temporarily ignore the fact that installing the GNU utils over your standard ones makes your system more reliable (ps) and get down to the concept that if you can't install software on a machine you're using day-to-day, and you can't put whatever you want in
$HOMEthen it really seems like you're working under a freaking dictatorship.0
Jun 16 '15
[deleted]
1
u/cogburnd02 Jun 16 '15
What if one of your precious GNU utilities quietly breaks some functionality elsewhere, because the behavior is subtly different in ways that you didn't anticipate?
Then "some functionality elsewhere" probably needs to be rewritten, anyway, in order to be fully portable. Here is a list of nonportable things people may have done, and you should almost certainly set
$POSIXLY_CORRECTto ensure that your blocks are the right size.And quoting a 1990s study ... please.
Simply because a study is old does not mean that it is incorrect. You are, of course, free to try to replicate the results of the study.
you'd have to be batshit insane to blindly install them over the system provided utilities on any Unix system.
I never recommended doing so 'blindly.' Of course, an assessment should be done regarding the safety and reliability of the standard utilities versus the GNU utilities, I'm only saying that it's been studied before and the GNU utilities are reportedly more reliable than the standard utilities in a published study. Before you (or anyone) simply installs the GNU utilities, you/they should make sure that anything that would break (shell scripts, etc.) is fixed beforehand.
...is in fact a dictatorship, and for good reason...
There is no good reason for a dictatorship.
you wouldn't know that because you've obviously never worked in a place like that.
Yay! Personal attacks! :-P
I would never want to work in a place like that, anyway.
→ More replies (0)
1
u/based2 Jun 06 '15
https://news.ycombinator.com/item?id=9290332