如何在GPG命令中使用密码
我是Linux的新手,我正在尝试执行以下操作:
我有一个文件夹,我希望首先压缩焦油,然后用GPG对其进行加密,所有这些都是运行命令时(没有机器的互动GUI )。我现在在互联网上发现的只是GUIS出现并屁股要输入密码,
tar -cvf archive.tar <directory>
gpg -c archive.tar <target-directory>
我一直在阅读GPG命令的选项,但我不明白如何找到相当于7za的内容:
7za a -p <my-password>
这就是我只想插入的内容密码作为命令的一部分。
你有指针吗? 谢谢
I am new to linux and I am trying to do the following:
I have a folder, that I want first to compress in a tar then to encrypt it with gpg and all of this is while running a command (no interactive GUI with the machine). All I find now in the internet are GUIs that show up and ass you to type the password
tar -cvf archive.tar <directory>
gpg -c archive.tar <target-directory>
I keep reading the options of the gpg command but i don't understand how to find the equivalent of 7za :
7za a -p <my-password>
this is what I want only to insert the password as part of the command.
Do you have any pointers?
thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论