Solved

in linux, how do I remove one line from my history?

Posted on 2008-06-12
2
5,123 Views
Last Modified: 2013-12-16
in linux, how do I remove one line from my history?

I typed my password and it kept it.
0
Comment
Question by:Ryman1
2 Comments
 
LVL 2

Accepted Solution

by:
jml948 earned 30 total points
ID: 21774633
do the following:

history

then see what # is next to the line u want to erase

then do history -d #

then type history to verify its gone
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 20 total points
ID: 21776196
if you use bash, then in your home dir there is a file with the name .bash_history you can edit this file with vi and delete the line you don't want
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
A short article about problems I had with the new location API and permissions in Marshmallow
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question