(optional) My click moment about "Why Linux"

If you have the same question.

Except for the very obvious reason that most, if not all, of the essential R package has to be run on a Linux/Unix system, "Why Linux" is a very interesting question to address. The one word answer would be "power".

That was when my control freakiness get the best of me. Consider the code sudo ufw allow from any to any port 3389 proto tcp, I was not really fond with the idea to open a port to allow any ip to connect to my computer via the specific port. And then it spreads to "Get me your manager I want to check the log". So long story short I get to know there is a syslog among others, and as expected it is long and impossible to read in the Terminal. Anyway I spotted something like [UFW BLOCKED] and I started to (super unnecessarily) panic. It's time to extract all the lines with [UFW BLOCKED] and examine the source ip/MAC closely.

Immediately come to my mind, is grep. What about I run grep 'UFW BLOCKED' syslog > log.txt? And BOOM the next second I got a file named log.txt with all the lines from syslog which contains the phrase UFW BLOCKED.

How awesome is that? Imagine if you are working in a graphic user interface. In case you can wait for a 3.5MB files to slowly open in Microsoft word and/or notepad if it opens at all, then tiresomely search for UFW BLOCKED and copy and paste it onto another files. In the case of knowing grep, I did this maybe half an hour work in seconds.

I literally fall in a mysterious love that no one could ever understood. And FYI no one bothers to crash into my network. It was all me.

Last updated