paint-brush
Hide the Exported ENV Variables From the Historyby@epranka
516 reads
516 reads

Hide the Exported ENV Variables From the History

by Edvinas Pranka1mFebruary 4th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Edvinas Pranka

Edvinas Pranka

@epranka

Software engineer

About @epranka
LEARN MORE ABOUT @EPRANKA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Edvinas Pranka HackerNoon profile picture
Edvinas Pranka@epranka
Software engineer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite