Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Terminal won't remember last command

  1. #11
    Join Date
    Aug 2008
    Location
    South East Montana
    Beans
    6,153

    Re: Terminal won't remember last command

    Quote Originally Posted by PaulW2U View Post
    Ctrl-D is good, it eliminates the "exit" entries when scrolling though the command history.
    Sure does. Used to have a bunch of them. This is much better.
    Dell 480 XPS 3G ram Quad Core 2.40GHz, Radeon HD 2400 PRO, Audigy1, 3x320G HDD, 320G External, Debian Testing for use, Debian Squeeze for secure use, Debian Sid for FUN

  2. #12
    Join Date
    Apr 2008
    Location
    London
    Beans
    1,873
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Terminal won't remember last command

    Quote Originally Posted by Enigmapond View Post
    I've actually never had that problem but as rburkartjo stated, just type in "history" and that will bring up the last 500 commands typed in. Just enter "!" and the number of the command you are looking for.

    Cheers!
    Thanks. I've learned that Ctrl+R is also a good way to find commands from history.

    Quote Originally Posted by mc4man
    It's not a really a bug, the new bash will only allow writing to ~/.bash_history when the terminal is exited (Ctrl+d or exit command
    OK, so it's been deliberately changed. I find it a little irritating to have to change my habits. Now I will exit the terminal with Ctrl+D.

    .

  3. #13
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,937
    Distro
    Ubuntu Development Release

    Re: Terminal won't remember last command

    Looks like the terminal is remembering the last command now.

    I've been closing the terminal using the 'X' (close) button, in the titlebar, and it's been working fine (as of beta 1).
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  4. #14
    Join Date
    Nov 2010
    Location
    NM
    Beans
    1,121
    Distro
    Lubuntu Development Release

    Re: Terminal won't remember last command

    All methods work here for me, but I have a persistent sudo time out so I guess that might have a bearing as well.
    Boot Info Script
    Ubuntu User number is # 32763
    Linux User number is # 527179

  5. #15
    Join Date
    Jun 2007
    Beans
    13,891

    Re: Terminal won't remember last command

    bash released a patch (008 ) the other day that returned history write when using the close button
    Was included in last bash update

  6. #16
    Join Date
    Dec 2007
    Location
    green bay, wi
    Beans
    2,203
    Distro
    Lubuntu 14.04 Trusty Tahr

    Lightbulb Re: Terminal won't remember last command

    seal tks for the info on ctrl-r much faster than entering history then scrolling and using ! to open a previous used command

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •