LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 05-01-2003, 05:55 AM   #1
a_hic
LQ Newbie
 
Registered: May 2002
Distribution: Fedora, Knoppix,
Posts: 17

Rep: Reputation: 0
how to delete old shell commands


hi,
I want that my shell don't save old commands ?, is there a way to delet somme old commend only?
thank's
 
Old 05-01-2003, 06:06 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Take a look at your .history file in your home dir.

cheers

Jamie
 
Old 05-01-2003, 06:07 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
any commands you've run previously are logged in ~/.bash_history on bash. just delete that file to clear them, or set the shell variable HISTSIZE (i think) to be a lower number, or even 0
 
Old 05-01-2003, 06:15 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by acid_kewpie
any commands you've run previously are logged in ~/.bash_history on bash.
Yeah, sorry, I'm in traditional sh mode today for some reason.

Jamie...
 
Old 05-01-2003, 06:16 AM   #5
a_hic
LQ Newbie
 
Registered: May 2002
Distribution: Fedora, Knoppix,
Posts: 17

Original Poster
Rep: Reputation: 0
thank u all
 
  


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
Basic shell commands pppaaarrrkkk Linux - Newbie 7 02-05-2007 07:31 AM
Commands/Shell script ?? paraiso Linux - Newbie 11 04-21-2005 10:58 AM
Fedora Shell Commands tregg Fedora 3 01-12-2005 04:52 AM
Delete Key in Shell gh0ul Linux - Newbie 1 10-07-2003 10:58 AM
shell commands! krishlinux General 1 10-05-2003 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:57 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