On Sat, Jul 27, 2024 at 11:04 PM mick.crane <mick.cr...@gmail.com> wrote:
> If I've "su'd" I type "exit".
> To close the terminal I click that X in the virtual terminal's top right
> hand corner.

Depending on settings, that may or may not save that invocation's
history.  You'll likely want to test to verify that it does what you
want.  But, as Greg pointed out, C-d or "exit" will generally ensure
the right thing happens.  If you weren't aware, C-d is the traditional
terminal setting for end-of-file (EOF).  It is a system level setting
to indicates no further input is coming into this terminal, which
causes the shell to exit.

mrc

Reply via email to