Originally Posted by shaana2khan
I have tried the way to suggest me and it works for me, but its not showing any user login detail...
I don't know what it is you are trying to say or what your are asking. If this is related to your first post: parsing .bash* file(s) doesn't give any output to screen, it sets variables (example: PATH, PS1) and/or runs/parses other environment related commands (example: dircolors).
Please check the below given question and answer, i quite confuse...
) Which files are called for user profile by default when a user gets login
Ans $HOME/.bash_profile, $HOME/.bash_bashrc
Have a look at the bash man page, especially the INVOCATION section.
Hint: A normal user login is an interactive login shell.