User Tools

Site Tools


infrastructure:unix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
infrastructure:unix [2020-06-10 13:20] – mrksinfrastructure:unix [2020-06-11 12:18] (current) – mrks
Line 8: Line 8:
   * Sometimes shell commands must be kept form history, e.g. when setting secrets to environment variables for configuring applications according to the [[https://12factor.net/config|Twelve-Factor-App]].   * Sometimes shell commands must be kept form history, e.g. when setting secrets to environment variables for configuring applications according to the [[https://12factor.net/config|Twelve-Factor-App]].
   * Configure the shell to not record history when starting with a space: ''$ export HISTCONTROL=ignorespace''   * Configure the shell to not record history when starting with a space: ''$ export HISTCONTROL=ignorespace''
-  * Execute the command with a secret with a leading space: ''$  export MY_PASSWORD=the-secret''+  * Execute the command with a secret with a leading space: ''$ ⌴export⌴MY_PASSWORD=the-secret''
   * Verified in Bash. The command will not be recorded in ''~/.bash_history''.   * Verified in Bash. The command will not be recorded in ''~/.bash_history''.
  
infrastructure/unix.1591788029.txt.gz · Last modified: (external edit)