LinuxQuestions.org
Help answer threads with 0 replies.
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-10-2010, 09:40 PM   #1
NFox
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
History Events


Hello guys Glad to join you. Good stuff are running here! To get into the point could anyone help me on deleting some of the history events running on red hat? let's say from 998 cmd to 1000 only? Thanks in adv
 
Old 05-11-2010, 09:44 AM   #2
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
found this in the man page of history
Quote:
HIST_ENTRY * remove_history (int which)
Remove history entry at offset which from the history. The removed
element is returned so you can free the line, data, and containing
structure.
I am not sure how exactly can you use it....

Last edited by bsat; 05-11-2010 at 09:48 AM.
 
Old 05-11-2010, 10:15 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Hi and welcome to LinuxQuestions!
Code:
history -d 998
you can remove one entry, then better to check numbers again since history is updated accordingly to the deleted entry and to the last command issued. Maybe you have simply to issue the same command above three times.
 
1 members found this post helpful.
Old 05-14-2010, 02:22 AM   #4
NFox
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hello guys and thanks very much for that There is a serious reason to move forward through your help in general.
 
  


Reply


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
history clearance for a particular history number in linux sangupari Linux - Software 3 03-03-2010 03:08 AM
tcsh: can you save the history from multiple shells to one history file? BrianK General 2 04-23-2009 05:19 AM
Keyboard events interrupting mouse events. miner49er Linux - Hardware 3 11-04-2008 04:16 AM
Hang on triggering udev events- is there a buildup of events? sonichedgehog Slackware 20 07-11-2008 02:49 AM
Download history and copy history? inverted.gravity Linux - Newbie 1 02-21-2006 12:31 PM

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

All times are GMT -5. The time now is 11:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration