linux 中 md5sum -c 命令

 

001\

复制代码
[root@pc1 test01]# ls
[root@pc1 test01]# seq 3 > a.txt    ## 测试文件
[root@pc1 test01]# ls
a.txt
[root@pc1 test01]# cat a.txt
1
2
3
[root@pc1 test01]# md5sum a.txt > a.txt.md5      ## 生成md5码
[root@pc1 test01]# ls
a.txt  a.txt.md5
[root@pc1 test01]# cat a.txt.md5
c0710d6b4f15dfa88f600b0e6b624077  a.txt
[root@pc1 test01]# md5sum -c a.txt.md5          ## 对md5码进行check
a.txt: OK
复制代码

.

 

posted @   小鲨鱼2018  阅读(256)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2022-10-17 centos7中如何关闭、启动防火墙
2020-10-17 linux系统中find命令
点击右上角即可分享
微信分享提示