Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The maximum number of lines contained in the history file. When this variable is assigned a value, the history file is truncated, if necessary, by removing the oldest entries, to contain no more than that number of lines. The default value is 500.
The history file is also truncated to this size after writing it when an interactive shell exits.
That is a variable you set at command line or can add to your bash_profile or .bashrc
Last edited by MensaWater; 08-04-2009 at 10:45 AM.
Reason: mistyped HISTFILESIZE as HISTFILE as pointed out by Jay73
to ~/.bashrc ?
Or run 'export HISTFILE=1000' (or 'export HISTFILESIZE=1000') from a terminal, assuming it will change the setting permanently?
And how do Terminal profiles interact with history? Do they all share the same .bash_history file, or is there a separate one for each profile? I'm launching my terminal as follows: gnome-terminal --window-with-profile=c --geometry=170x50.
(I actually had to guess and experiment with '--geometry' because all the gnome-terminal manpage had to say on this option was a paraphrase on "go search....".)
Thanks, and sorry about being so dramatic before.
It's my frustration speaking, not me....
What I posted in my last post works on Ubuntu.
Bash will keep appending commands to ~/.bash_history until it reaches 20K lines, at which point for each new command added the oldest one at that moment will be removed.