LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 15
Editing stored Terminal commands


Hi,
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.

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

Rep: Reputation: 269Reputation: 269Reputation: 269
/home/<user>/.bash_history
 
Old 01-13-2004, 07:55 AM   #3
Hertattack
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,

Marcel
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:01 AM.

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