10 Nov 2009 @ 9:33 AM 

You know how you’ve been getting a new system up and running, and then you break something and just can’t remember how you got it working the first time?

Well, Linux has a solution for that. Commands you use on the bash shell is stored in history.

To view your history, just type

history

If you want to search for something specific you did, you can use grep. Eg:

history | grep -i some_command

To save your history to a file use :

history -w ~/history.txt

then feel free to open with your favourite text editor.

Bash keeps it’s own history in a file. You can view that file by opening ~./bash_history

Now to change your bash history length, just open up your .bashrc by doing so:

gedit ~/.bashrc

Once open, at the top add

export HISTFILESIZE=3000

Posted By: Zayin
Last Edit: 15 Nov 2009 @ 11:43 AM

EmailPermalinkComments (0)
Tags
Tags: ,
Categories: shell
 09 Nov 2009 @ 7:29 PM 

The aim of this blog is to provide technical information about open source web development technologies.

In my day to day workings I often struggle for ages trying to get something implemented, and would like to use this blog to help other web developers avoid the problems and pitfalls I have come across.

Posted By: Zayin
Last Edit: 10 Nov 2009 @ 09:21 AM

EmailPermalinkComments (0)
Tags
Tags: ,
Categories: Intro

 Last 50 Posts
 Back
Change Theme...
  • Users » 1
  • Posts/Pages » 38
  • Comments » 61
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Links



    No Child Pages.

Portfolio



    No Child Pages.