gpg
允许您解密数据并将其保存到与原始文件具有相同文件名的文件中--use-embedded-filename
。如何在不引发如下所示警告的情况下执行此操作?
$ gpg --encrypt --recipient user filename.txt
$ mv filename.txt.gpg snafu.gpg
$ cat snafu.gpg | gpg --use-embedded-filename
gpg: WARNING: no command supplied. Trying to guess what you mean ...
$ ls
filename.txt
答案1
您可以要求gpg
保持安静--quiet
:
gpg --quiet --use-embedded-filename snafu.gpg