Solved

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

Posted on 2008-06-12
2
5,120 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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now