I have seen sometimes people launch a xterm from a normal terminal
But I don't understand the intention behind, does xterm inherit all the environment settings from the current terminal?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
xterm inherits (like any other process) the environment variables which are in your shell. But it sets several environment variables. That's documented in the
ENVIRONMENT section of the manual page.
By the way, xterm is considered by most to be a "normal terminal".
As for why someone might do this:
Other people will have other reasons.
They do inherit the exported values, one useful thing to do with
#export needed variables & functions xterm&
is to do a cleanup, this opens a detached process and from the
xterm thus launched do
killall gnome-terminal #you still have the variables and functions exported