casper27
|
2009-12-14
, 18:21
|
|
Posts: 844 |
Thanked: 521 times |
Joined on Jan 2009
@ UK southampton
|
#1
|
The Following User Says Thank You to casper27 For This Useful Post: | ||
|
2009-12-14
, 18:24
|
|
Posts: 670 |
Thanked: 359 times |
Joined on May 2007
|
#2
|
The Following 2 Users Say Thank You to fnordianslip For This Useful Post: | ||
|
2009-12-14
, 18:27
|
|
Posts: 844 |
Thanked: 521 times |
Joined on Jan 2009
@ UK southampton
|
#3
|
|
2009-12-14
, 18:34
|
Posts: 2,014 |
Thanked: 1,581 times |
Joined on Sep 2009
|
#4
|
As the title says Xterm does not seem to save all previous executed commands. Usually in terminal you can press the up arrow and scroll through previous command to save typing it all again. Xterm seems vert hit and miss saving some and missing quite alot. Anyone else have this or have found a work around?
The Following User Says Thank You to Bratag For This Useful Post: | ||
|
2009-12-14
, 18:36
|
Posts: 150 |
Thanked: 93 times |
Joined on Oct 2009
@ Pennsylvania, US
|
#5
|
The Following 7 Users Say Thank You to rewt For This Useful Post: | ||
|
2009-12-14
, 18:44
|
|
Posts: 844 |
Thanked: 521 times |
Joined on Jan 2009
@ UK southampton
|
#6
|
It's possible that your .ash_history has the incorrect permissions/ownership. This will probably only occur if the first time you open xterm you sudo gainroot - since no .ash_history exists, when you exit root's shell it is created owner=root, group=root preventing non-root command history from being written to the file.
Use 'ls -l /home/user/.ash_history' to verify. If the file is owned by root (3rd column), that is your problem.
sudo gainroot
chown user.users /home/user/.ash_history
OR
sudo gainroot
chmod a+w /home/user/.ash_history
Either will fix the permissions to allow non-root command history to be retained.
|
2009-12-14
, 18:44
|
Posts: 55 |
Thanked: 72 times |
Joined on Nov 2009
|
#7
|
The Following 11 Users Say Thank You to josh For This Useful Post: | ||
|
2009-12-14
, 18:51
|
|
Posts: 670 |
Thanked: 359 times |
Joined on May 2007
|
#8
|
The Following User Says Thank You to fnordianslip For This Useful Post: | ||
|
2009-12-14
, 19:59
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#9
|
Now I know it is because I usually use the "X" icon to close my terminals. I will use "exit" from now on.
echo "trap exit SIGHUP SIGINT SIGTERM" >> /home/user/.profile
The Following 7 Users Say Thank You to lma For This Useful Post: | ||
|
2009-12-14
, 21:11
|
Posts: 55 |
Thanked: 72 times |
Joined on Nov 2009
|
#10
|
Note also the easier workaround buried at the end of bug 5317 comment 7:
(though I think catching just SIGHUP should be enough for the osso-xterm case).Code:echo "trap exit SIGHUP SIGINT SIGTERM" >> /home/user/.profile
echo 'trap exit SIGHUP' >> .profile