The answer given by @Student is correct.
However, let me add in this answer, the Scriptural verses which says that an elder brother is equivalent to the father when the later dies.It will also answer the following question raised by @SwiftPushkar:
You have mentioned this "If father dies, elder brother is considered
to be equivalent to or taking the position of father." Which Hinduism
scripture states this law?
Source-Manu Smriti, Chapter 9.
Context-Deciding the shares of parental property after death of the father .
9.108. As a father (supports) his sons, so let the eldest support his younger brothers, and let them also in accordance with the law behave
towards their eldest brother as sons (behave towards their father).
9.110. If the eldest brother behaves as an eldest brother (ought to do), he (must be treated) like a mother and like a father; but if he
behaves in a manner unworthy of an eldest brother, he should yet be
honoured like a kinsman.
Another verse(from Manu smriti) which says(indirectly) that an elder brother is like(equivalent to) a father to the younger brother is this:
9.57. The wife of an elder brother is for his younger (brother) the wife of a Guru; but the wife of the younger is declared (to be) the
daughter-in-law of the elder.