Article 4WPCE [SOLVED] Check if it is Graphic Terminal And it's not the Login Shell

[SOLVED] Check if it is Graphic Terminal And it's not the Login Shell

by
Nick-us
from LinuxQuestions.org on (#4WPCE)
Problem
I have ~./bashrc commands that can't be executed by Login Shell

So I need an IF to check if the user is in a non-login shell or Graphical Terminal and not in the first Terminal where we log in, which I call Login Shell or Pure Shell or Original Shell, because I don't know his name.

I hope you understand my question!
I want to use an IF to know if it's Login Shell OR non-login shell

Every help is welcome!latest?d=yIl2AUoC8zA latest?i=JlQSrGpLQ0A:hj5Jl0YFXYE:F7zBnMy latest?i=JlQSrGpLQ0A:hj5Jl0YFXYE:V_sGLiP latest?d=qj6IDK7rITs latest?i=JlQSrGpLQ0A:hj5Jl0YFXYE:gIN9vFwJlQSrGpLQ0A
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments