I'm working in a command line-only environment, so I'm used to redirecting output to text files. In this instance, I need to set a password for GRUB2, but trying to use redirection with the corresponding utility makes it stop printing to the screen, so I am not presented with a way to enter my desired password. How do I solve this?
Pipe the output to
tee
, which prints its input tostdout
and optionally also to multiple files:grub-mkpasswd-pbkdf2
writes the prompt and the encrypted password to stdout, so even if the prompt isn't visible, you can still type your password in, press Enter, type it again, and press Enter again: