Hide the Exported ENV Variables From the History

Written by epranka | Published 2020/02/04
Tech Story Tags: linux | bash | tips | ubuntu | programming | coding | staging-environments | local-dev-environment

TLDR When working with the Linux server, sometimes you export some environment variables. The problem is if anyone accesses the server bash and enters the history command it will see the secrets. This method is not only for environment variables, but it can also hide any bash command, even if you leave the space before any Bash command, it will be ignored in history. The method is also used to hide any Bash commands, even though it can be used to work with Linux history control. For example, the Mysql password will now be ignored.via the TL;DR App

no story

Written by epranka | Software engineer
Published by HackerNoon on 2020/02/04