Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-13-2004, 07:08 AM   #1
Registered: Jun 2003
Location: Bangalore, India
Distribution: RedHat 9, Sun solaris 10, Windows 2000
Posts: 46

Rep: Reputation: 15
Editing stored Terminal commands

I have very small query being a newbie in linux world. I have Redhat 9 with Gnome.

I can switch to terminal (shell) using Ctrl_Alt+(F1-F4). or using terminal in Gnome. I can type any command over there which can bring me result or not. I can nevigate my old command, even after restarting system using arrow keys. It means, my all these commands are being stored in some File.

I just want path to that file and the controller of that file so that i can control the number of commands.

Shahnaz ali.
Old 01-13-2004, 07:55 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Old 01-13-2004, 07:55 AM   #3
LQ Newbie
Registered: Jan 2004
Location: Netherlands
Distribution: Gentoo 1.4
Posts: 26

Rep: Reputation: 15
You are probably using bash as a shell so "man bash" should help you to get to know a lot about the shell, but here are some pointers:

In your home dir there is a hidden file named: .bash_history that file contains your command history.

Setting the enviroment variable HISTFILESIZE=<size> should truncate the file if it gets too big.

Again, this information is found in the bash manpage. You might also want to take a look at /etc/profile, /etc/bashrc, ~/.bashrc, ~/.bash_profile

I hope this will help you,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Terminal commands Ermen Linux - Newbie 1 11-23-2004 10:13 AM
commands stored into variables? benne Programming 2 11-15-2004 07:20 PM
Editing properties of your terminal/shell ? fredgt Linux - Software 3 10-03-2004 10:30 AM
Terminal commands newtothegame Linux - Newbie 2 09-16-2003 04:52 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration