«

»

Oct 21

Unix Cheat Sheet

Turn off color in viĀ 


:syntax off


 


Line count output (rate) per 1 second (e.g. to determine # of apache web requests at 1 second intervals)


tail -f access.log|perl -e ‘while (<>) {$l++;if (time > $e) {$e=time;print “$l\n”;$l=0}}’


 


Detach foreground or background task from console


Ctrl-Z


bg


disown %1

Leave a Reply