LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-16-2010, 01:47 PM   #1
cartti
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
Commands to remove particular few lines in the history file


Is there any commands or scripts to remove only selected line in the history file.Please guide me in this issue
 
Old 06-16-2010, 01:57 PM   #2
myposts
Member
 
Registered: Jun 2010
Posts: 46

Rep: Reputation: 21
Here...

Entries in history are coming from history file in your home directory. Depending on a shell you use they may have different names with "history" word in a name. Do "ls -la" in your home directory and see it. You can open this file with "vi" and edit it as regular text file. Get "Linux for dummies" book or "Learn Linux" dvds by UNIX Academy it all explained there...
 
  


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
How to remove first 2 lines of a file in a script nazs Programming 16 02-19-2007 08:08 AM
How to remove lines from a file doza Linux - General 2 04-27-2005 12:59 PM
remove identical lines in a file benjithegreat98 Linux - General 4 04-24-2004 07:12 AM
How do i remove blank lines from a file? kakho Programming 1 04-15-2004 04:57 AM
[bash] remove lines from a file Drimo Programming 3 03-20-2004 12:16 PM


All times are GMT -5. The time now is 04:33 PM.

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