Hide the Exported ENV Variables From the Historyby@epranka
482 reads

Hide the Exported ENV Variables From the History

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

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.

Company Mentioned

Mention Thumbnail
featured image - Hide the Exported ENV Variables From the History
Edvinas Pranka HackerNoon profile picture

@epranka

Edvinas Pranka


Receive Stories from @epranka

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!