You are not logged in.

#1 2009-01-12 03:00:56

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Does Gnome-Terminal remeber often used commands somehow?

This isn't an error!

I've been starting my wireless connection manually since I installed Arch, as I haven't been able to get it to autostart at boot. So I've been starting by running sudo wpa_supplicant blahblahblah then sudo dhcpcd wlan0. Anyway, I hadn't rebooted in a few days, and as such I haven't run either of these commands recently. Oddly enough, those two commands were the first to that appeared in my bash history. So I ask you:
Is this some sort of feature, or is my computer eerily predicting my needs?

Offline

#2 2009-01-12 04:06:54

baeksu
Member
From: Suwon, Korea
Registered: 2007-09-03
Posts: 15

Re: Does Gnome-Terminal remeber often used commands somehow?

When you log out, your command history in bash is saved in ~/.bash_history. So that's where the commands are retrieved from.

This works regardless of which terminal you used, as long as you run bash. Of course, if you run multiple instances of bash, the last one you log out from will overwrite all previous shells.


Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.

Offline

#3 2009-01-12 04:35:59

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Does Gnome-Terminal remeber often used commands somehow?

baeksu wrote:

When you log out, your command history in bash is saved in ~/.bash_history. So that's where the commands are retrieved from.

This works regardless of which terminal you used, as long as you run bash. Of course, if you run multiple instances of bash, the last one you log out from will overwrite all previous shells.

I knew that apart from running multiple instances. My point was that I hadn't run either of those commands for a long time, and had run many other things in that time. I found it strange that those commands were first in my bash history, even though I hadn't used them.

Offline

Board footer

Powered by FluxBB