By Mohit BATRA =
Each time you open a terminal a new session gets started and a unique session Id is assigned to it
if We need to find the session id associated with each terminal then it can be possible by = ps
command , and
By = tty
command we can find the terminal type or number and to get the session I'd associated with it we need to open the terminal two more time and check its terminal number with = tty then run
ps -exo sess,tty | grep pts/1
Here pts/1 is my terminal number which I have get by running the command = tty on the terminal and this is different in your case just note your and paste after grep and you will get the session id of that session
Good luck.