最終更新 1743904759

Безопасно задать в консоли пароль в переменную, не оставляя следов в .bash_history

LittleGreenCat's Avatar LittleGreenCat revised this gist 1743904759. Go to revision

1 file changed, 9 insertions

history.md(file created)

@@ -0,0 +1,9 @@
1 + ```
2 + export PASSWORD=My$uperP@$$M0rd;history -d $(history 1)
3 + ```
4 +
5 + Вариант / подсказка: если допустим интерактивный ввод, а не автоматизация в скрипте от Maxim Kavpush - https://t.mr/Zortran
6 +
7 + ```
8 + read -s PASS && export PASS
9 + ```
Newer Older