Dipesh Majumdar

Blog and Paintings

Some userful linux and network commands

September 25, 2015

new things learnt... these are the things i didn't know...  

1. suppose there are three files - aaa aaaa aaaaaa

i didnt know : 

ls aa?   would return only aaa

i only knew aa* will return all three files


2. ping -c4   would give you only 4 lines - didn't know that

3. didnt know we had 2 types of listerners - tcp and udp 

tcp is returned by - netstat -ntl 

and udp by netstat -nul

netstat -ntlp and netstat -nulp will give the tcp and upd listerners along with the programs

4. netstat -r gives the routing table 

and here you can see your default gateway - the flag for which should be UG

netstat -rn will give you the ip 

and since we get the default gateway - we know the ip now through which the server opens up to the world

didn't know that it is also defined in /etc/resolv.conf file

just do a cat /etc/resolv.conf 

one can find this with nameserver

5. traceroute - will keep hopping - first entry will be the default gateway which is pretty interesting

My journey was comparatively easy

September 22, 2015

clouds gather and there is a downpour
i get wet, i still walk

i shiver in cold, but i still walk

for i have a lot of distance to cover
and there is not much strength left...

the distant road is obscure...
but my steps keep moving steadily

i can feel the road - i can feel 

the twists and the turns

so i still walk

i keep walking till i reach 
my home and then i sit 

i look out of the window
it's a heavy downpour again

the window glass is so hazy

i spot a distant man struggling 
to cut his way against 

gusts of wind so strong

he keeps walking


falls down... and gets up...

the storm is picking pace now

i want him to reach his his home soon

i feel lucky ... 

my journey was comparatively easy

I am still the same...

September 15, 2015

Once again i fell down-

felt  real bad.

thought of running and ....

vanishing into the center of the earth...


may be by digging an infinite hole.

but i am alright now...

a little while ago i was so low...

looking out the window...

into the green fields infinite...

soothing, pleasing and soft

that are selfless and white...

one day i will become LIKE THAT....

for sure... but not now........ 

i like them so much...

till then let me close my eyes

and relax a bit...

i am all alone

standing here... sitting here

none besides me

the hollowness only soothes me...

i close my eyes now

take a deep breath

its dark, somewhat cold

the music playing rather awkwardly against my ears

so need to change the song...

the new song! its not better!

Is it only my mind I hear?

now i am hungry


there has been no change whatsoever...


Respond or react?

August 23, 2015

There is a difference between the two. The former is the result of careful thought and analysis while the latter is due to the fight-or-flight inbuilt mechanism deeply rooted in our genes. 

Response is always better than reaction. Because it is more human. Thousands of years of evolution laid the foundation for a species to respond and not react to external stimuli. Think about a deer grazing blissfully on the green grass top of a dense Amazon Forest. The moment it hears the marching footsteps of a lion - it immediately springs hard and runs as fast as it can. This whole fight-or-flight feedback is instantaneous and doesn't even reach the brain - its a nervous system response - much like the way we react suddenly upon touching a hot iron rod. This is called reflex action. Reflex action was good - because it was designed to save a deer or a man from the hungry mouth of a lion... But reflex action alone is not so good... mix it with careful analysis, observation and thought - and it becomes a lethal weapon. And that's what happened to man... being frustrated from the attacks of lions, man started thinking of better ways to tackle the problem - so he invented tools - with which he could now attack or scare away the animal.

Homo-sapiens sit on the topmost place of the food chain in-spite of having a weak physical defense and comparatively lesser strength, due to the gift of a unique brain which is capable of out-smarting its competitors quite easily. Other species stand simply no chance against us. So today if there is any enemy of a man, it is none other than his own fellow being. He has no one else to fear from. You might see two bulls or two lions fighting with each other in a National Geographic Channel - but seldom are these 'fights till death'... no sooner does one sense defeat it backs off and runs hard to save it's life. But one man brings death to another quite often with careful planning, observation and analysis and sometimes without any reason or on spur of the moment... This is quite strange. The gamut of emotion that man is capable of exhibiting - starting from extreme love at one end of the spectrum to uncanny hatred at the other end is quite phenomenal. 

There is no doubt in the fact that man is different from all the other species in his ability to think and analyze using his brain. Such a brain no other living entity has... Over a period of time it has been the ability to respond (and not just react voluntarily) to a particular crisis or a problem  which has allowed him to survive. 

However since evolution is a continuous phenomenon, so the fine tuning of human attitude is still continuing. The same external stimuli creates different kind of responses and reactions in different human beings. Let us try to plot a chart - with A being the most perfect hypothetical human being (or an Angel) and D being the most imperfect:

Person Reaction Response
A (the hypothetical perfect human being)  0 % 100%
B 60 % 40 %
C 70 % 30 %
D (the most imperfect human being) 100 % 0 %

We can say degree of being a human being in case of B is more than C. If we carefully look into the lives of B and C, we might find that B is smarter that C. I might go one step ahead in declaring that degree of success, fame, prosperity and other positive rewards is directly proportional to this degree of being a human. In other words the more one is closer to A - the better it is for him.

Losing temper and lashing out at someone with anger and venom is nothing but reaction. This is a behavior that leans towards row D - which is the zone that belongs to animals. 

You would have seen someone who loses temper and does something stupid, repents later, because moments after slipping from the human zone, he comes back into it and then starts thinking. It is only that situation was not in his control. Another person might behave differently when faced with exactly same situation. The feelings of anger might rise in him as well but he knows the art of controlling them them and choosing to react in another way which is both effective as well as witty. Each time a bad external stimulus tries to knock you off... you can just hang in there, trying to observe the whole chain of thoughts and feelings very minutely and then trying to remain in conversation with others - choose the right words and sentences with logic and with calmness. This will clear the cobwebs of confusion and you can continue to be in control. 

This holds true for most of the cases - picture yourself in middle of a shopping center - and your kid is throwing strong tantrums and it's a very difficult situation to control. Already your kid is reacting to a certain unfavorable situation - and if being a parent you react back at his tantrums - then the situation turns ugly. Rather if you can engage in calm and assured conversation and make him understand properly about the message you want to convey - then things might turn out better. 

There will be a lot of pleasantness around one when he has mastered the art of controlling the situation by being responsive. It is not very difficult - and can be easily honed with perseverance and practice. One has to remain in a state of awareness and proactively not try to be impulsive and try only to be logical and normal as much as one can. A genuine and assured smile often helps in such situations.


When I was 26 years old...

July 17, 2015

I started an LIC Policy on 28.July.2003 - how difficult to even write the year now ... i typed 2013...and then back space and back space - and then retyped 2003. It was almost 12 years before - when i started the policy - The Endowment Assurance Policy. As i paid the premium today on  -i happened to view the policy status report - and the commencement date -  28.July.2003... triggered some flash-backs down the memory lane...

So what have i achieved today when i compare my own status - which lingers in memory only - of course financially I am better - but still i consider myself poorer when I see the age - just below my name in the report. I was only 26 years old. Damn! I was so young - I am 38 now... lost all those precious years. 

True, the years have gone by - something on which none of us have any control - what we can decide to a significant extent is which path our health, relationships, career, financial status, happiness etc takes with the passage of time...

I had the privilege of a good brother who guided me in various phases and urged me to start good things - like this very LIC policy. Otherwise I wouldn't have started for sure... He even went to the extent of paying the first few installments... which later I realized wasn't a good idea.

One needs to take responsibility of his own finance... it's true that we all begin our journey in the same home - and we are very much groomed in a way that it's hard to grasp this idea of separate-responsibility - so when the first few months he was paying my premiums - i never felt anything wrong - he is only my brother and he is paying my premium - it just came so natural...  It took time for the separate-responsibility-paradigm-shift to take effect - triggered by a few other factors as family grows... as you would all know or very soon will know... and nonetheless this is all very natural.

As I look back - I feel good about the decision of starting this policy in 2003... if not for the money, but for the good-habit of separating a portion of my daily income for the rainy days.  

When i was young, i was extravagant and unsystematic... When i see colleagues here of age 26 - 28 ... I can relate with them so much. They behave like me when i was of that age. I try to give them good advise... I don't know how much they really absorb. There are a few things that come from experience and no amount of lip-service helps. The modern generation is very smart - they think they have the whole world in their grasp - they can play around - do a little manipulation here and there - and life would simply go on rosy and nice.

However one thing i am very clear - crystal clear about how life works - whatever you do good or bad - definitely has a reaction. The reaction can be delayed or might not be visible - but the reaction will be there for sure. So it's only good to do good things.  When you do something wrong and think that no one is watching- and so it's okay - the fact of the matter is the laws of the Universe (Some call God, some call Fate/Destiny) have a way to know the difference and provide you the required outcome/reaction accordingly. 

A few days before I had visited Nemo Science Center. One of the things that caught my attention was the different speed in which 2 similar cylinders, having same weight -  rolled down an inclined plane. The only difference between the 2 cylinders is one is less hollow and one is more hollow. The weight and outer surface area of the 2 remains the same. To my wonder i saw that the more solid cylinder rolls down faster than the more hollow.

I was wondering why is this change of speed... i did a little search in google as well and thought the actual calculation to be somewhat complicated (as perceived by my average intelligence); Let me put a simplistic explanation here - 

The only difference is the angular frictional torque acting on these 2 bodies AGAINST the direction of motion. Torque is force (frictional) multiplied by radius - So the hollow cylinder has more radius ( distance from periphery to the center or the outer raidus) - while the solid has less radius - because it is calculated by Integration Formula over outer and inner radius. Therefore resultant Radius of Solid cylinder is always LESSER than the Hollow cylinder... so the frictional torque acting against motion in the solid cylinder is less and so the velocity with which it rolls down is MORE...

I interpreted this phenomenon in this way: Many a times we do something wrong - and think no one notices - and so this would not have any impact in our life... but in reality the laws of nature - has a way to CALCULATE these subtle variations just like the calculation provided above. 

We can't cheat or out-smart the master plan! 

Somehow I have a hunch, just like the solid cylinder, even a good and solid character rolls down faster down the slope towards happiness and prosperity. For the hollow character - the movement towards progress and prosperity is very slow. 

One might assign all good fortune acquired by an individual to Lady Luck alone because it's difficult to perceive the underlying principles which are so logical and accurate. 


View older posts »