+ Post New Thread
Results 1 to 7 of 7
Windows Thread, Windows equivalent of .bash_history? (decent command history) in Technical; Under *nixes, there's a file called .bash_history in your homedir, this contains all the commands you've entered at all terminals ...
  1. #1


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,637
    Thank Post
    275
    Thanked 777 Times in 604 Posts
    Rep Power
    223

    Windows equivalent of .bash_history? (decent command history)

    Under *nixes, there's a file called .bash_history in your homedir, this contains all the commands you've entered at all terminals / command prompts until it reaches a predefined limit (it gets truncated beyond X lines, but that's user-configurable). This history is searchable, so if you've typed in a long and involved command a week ago, you can search and rerun it with a couple of keystrokes.

    This functionality is rather handy.

    I'm aware that on Windows you can search for commands entered in the current command-prompt, but that history is lost when that prompt is closed.

    Has anyone found a tool/add-on/replacement that provides this functionality? I had a play with powershell in the hope it had been included, but couldn't find it.

  2. #2

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    There is on, Ive used it before. I cant remember it off hand, gimme 2 mins Ill see if I can find it.

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Code:
    DOSKEY /history

  4. #4

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    doskey doesnt keep the history between cmd sessions and reboots though does it?

  5. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    No it doesn't. But nothing else does either. You'd have to rip out and replace your command line interpreter with something like Take Command LE if you wanted that level of functionality.

    Take Command Product Information

  6. #6

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    There was something I used. Im just struggling to find it again. It was a 3rd party addon that wrote commands to a small file.

  7. #7

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,212 Times in 761 Posts
    Rep Power
    394
    I'd be very interested to know this too. In the meantime, since you've used bash before, you could always install Cygwin and... use bash.

SHARE:
+ Post New Thread

Similar Threads

  1. Windows Server ASR from Command Line
    By dcwhitworth in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 9th January 2009, 02:49 PM
  2. Windows 2003 date command and day name
    By webman in forum Windows
    Replies: 1
    Last Post: 19th November 2008, 01:12 PM
  3. Replies: 5
    Last Post: 7th September 2007, 11:22 AM
  4. Windows equivalent to applescript?
    By woody in forum Windows
    Replies: 5
    Last Post: 9th November 2006, 11:20 AM
  5. Linux SuperUser command, but for Windows
    By MrLudwig in forum Windows
    Replies: 25
    Last Post: 18th May 2006, 04:16 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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