Skip to primary content

42

Web notebook about thoughts and discoveries in DevOps, SRE, Software Engineering….

42

Main menu

  • Home
  • About
  • contact
  • Links

Post navigation

← Previous Next →

Linux – prevent command line input appearing in history

Posted on 18 August 2020 by kosmas
Email this to someone
email
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Problem

You would like to type some sensitive information in the command line (password, key), but you don’t want this to appear in the history.

Solution

Add a single space before the start of the command.

This entry was posted in linux and tagged bash, history file, linux, shell by kosmas. Bookmark the permalink.
Proudly powered by WordPress