Re: transfering the "history" of a normal user to the su-shell possible

From: Carlos J. G. Duarte (cjgd_at_clix.pt)
Date: 02/28/04


Date: Sat, 28 Feb 2004 00:31:38 +0000

john wrote:
> Hi,
>
> is there a way to transfer the history of a "normal user shell"
> to the "su shell" ?
>

Depends on the shell of course. You can try to point some variable that
holds the history file to the history file of the previous user.

For instance, in tcsh
$ su
# set histfile = ~user/.history

-- 
carlos ** http://cgd.sdf-eu.org


Relevant Pages

  • Re: transfering the "history" of a normal user to the su-shell possible
    ... > holds the history file to the history file of the previous user. ... Does that mean, the command would be: ... (if I am working as user john and would like to transfer ...
    (comp.unix.shell)
  • Re: Switching from tcsh to bash as an interactive shell
    ... > the history you haven't yet dumped into the history file into the ... command, or saving on closing the shell ...". ... > then close the second shell, only the commands from the second shell ...
    (comp.os.linux.misc)
  • Re: Switching from tcsh to bash as an interactive shell
    ... > the history you haven't yet dumped into the history file into the ... command, or saving on closing the shell ...". ... > then close the second shell, only the commands from the second shell ...
    (comp.unix.shell)
  • Re: Switching from tcsh to bash as an interactive shell
    ... A "checkpoint" is a point at which you do something significant. ... the history you haven't yet dumped into the history file into the ... Only so many commands fit into a finite sized history file. ... one shell, then 5 in other, then close the first shell, then close the ...
    (comp.os.linux.misc)
  • Re: Switching from tcsh to bash as an interactive shell
    ... A "checkpoint" is a point at which you do something significant. ... the history you haven't yet dumped into the history file into the ... Only so many commands fit into a finite sized history file. ... one shell, then 5 in other, then close the first shell, then close the ...
    (comp.unix.shell)