我有大约 500 个 650MB 的文件,命名为bigfile.000
to bigfile.199
,我需要计算所有文件的 MD5 校验和。我使用的命令是:
cat bigfile.* | md5sum
Run Code Online (Sandbox Code Playgroud)
我有时间,我知道这需要几个小时才能完成,但我仍然想检查进度。有什么办法吗?就像在两者之间插入一些东西并进行对性能影响不大的字数统计?
我认为我的 Ubuntu 机器坏了,黑客试图用我的电脑发送垃圾邮件(通过端口 25)。
部分/var/log/auth.log
提取如下(我将实际用户更改为myuser
,将一些外部IP地址更改为1.2.3.x
):
Feb 20 06:07:12 ubuntu systemd-logind[954]: New session 77 of user myuser.
Feb 20 06:08:22 ubuntu sshd[21251]: error: connect_to 1.2.3.4 port 25: failed.
Feb 20 06:08:22 ubuntu sshd[21251]: error: connect_to 1.2.3.5 port 25: failed.
Feb 20 06:08:22 ubuntu sshd[21251]: error: connect_to 1.2.3.5 port 25: failed.
Feb 20 06:08:22 ubuntu sshd[21251]: error: connect_to 1.2.3.6 port 25: failed.
...(thousands of similar lines follows)...
Run Code Online (Sandbox Code Playgroud)
由于错误消息是由 生成的sshd
,我认为黑客是通过以myuser
. 其各自的记录/etc/passwd
如下: …