CoderSathi
  • Tutorial
    • Java Tutorial
    • Swing Tutorial
    • JDBC Tutorial
    • Java String Tutorial
    • Servlet and JSP Tutorial
  • Mongo DB
  • AWS
  • DevOps
  • Linux
  • Git
Home > How to > Delete history from Linux terminal

Delete history from Linux terminal

Learn the concepts, implementation details, and practical steps with a clean developer-focused walkthrough.

Yuba Raj Kalathoki
By Yuba Raj Kalathoki
Last updated: July 1, 2026 ยท 1 min read ยท 0 Comments
Share: in X
systemctl command not found

In this short post, we will see a command to delete history from Linux terminal.

To delete a single history you can use the following command:

history -d <history-number>

Example

history -d 5

The above command will delete the history number 5.

Related Posts:

  • java.lang.Short Class in Java
  • java.lang.Number Class
  • Short Circuit Logical Operator in Java
  • How to Delete Last Commit Git: A Step-by-Step Guide
  • MySQL Commands for Developers
  • Primitive data types in Java
Tags:devopslinuxubuntu
Was this article helpful?
โ† Previous ArticleJava Beans Persistence
Next Article โ†’BeanInfo Interface

Leave a Comment Cancel reply

You must be logged in to post a comment.

Recent Posts

  • How to implement Passwordless Authentication in Spring Boot: A Step-by-Step Guide
  • How to Use AWS CloudFront Signed URLs in Spring Boot?
  • How to Fix SSH Agent Forwarding on macOS: The Ultimate Guide for Developers
  • How to Read AWS Secrets Manager in Spring Boot (Step-by-Step)
  • How to Fix “Public Key Retrieval is not allowed” MySQL JDBC Error
CoderSathi

Your go-to resource for Java, Spring Boot, Microservices, AWS, and modern development tutorials.

Linkedin

Quick Links

  • About
  • Contact

Popular Topics

  • Java
  • Spring Boot
  • AWS
  • DevOps
  • MongoDB
  • Linux
  • Git
  • How to
ยฉ 2026 CoderSathi. All rights reserved. Privacy Policy ยท Sitemap