小编ibl*_*lue的帖子

两个管道到一个命令

我对以下语法有点困惑。虽然它有效,但它不明白为什么它有效。似乎有两个管道连接到 diff 命令。但不是只有一个STDIN吗?

例子:

diff <(echo "foobar") <(echo "barbaz")
diff <(cat foo.txt) <(cat bar.txt)
Run Code Online (Sandbox Code Playgroud)

shell bash

10
推荐指数
1
解决办法
1963
查看次数

GPG 密钥对生成:加号和减号是什么意思?

我刚刚生成了一个新的 GPG 密钥对,gpg 显示了一些随机的加号、减号、大于、小于和抑扬符符号。我一直想知道他们是什么意思。你能给我解释一下吗?

iblue@nerdpol:~$ gpg --gen-key
[... snip ...]

We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
.........+++............<+++++>.+++++...............>..+++++..<
...+++++............>+++++<.+++++.....................<+++++..>
.................................................+++++^^^^
Run Code Online (Sandbox Code Playgroud)

gpg

8
推荐指数
1
解决办法
794
查看次数

标签 统计

bash ×1

gpg ×1

shell ×1