[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5137
  • Last Modified:

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

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

I typed my password and it kept it.
0
Ryman1
Asked:
Ryman1
2 Solutions
 
jml948Commented:
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
 
omarfaridCommented:
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

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now