当前位置: 首页 > news >正文

大型门户网站建设哪便宜阿里巴巴官网

大型门户网站建设哪便宜,阿里巴巴官网,网站建设买什么书,深圳市专业做网站linux命令之md5sum 1.md5sum介绍 linux命令md5sum是用来计算和校验文件的MD5值。 另外: md5sum是用来校验文件内容,与文件名是否相同无关 md5sum校验文件时,逐位校验,如果文件越大,校验所需时间就越长 2.md5sum用…

linux命令之md5sum

1.md5sum介绍

linux命令md5sum是用来计算和校验文件的MD5值。

另外:

md5sum是用来校验文件内容,与文件名是否相同无关

md5sum校验文件时,逐位校验,如果文件越大,校验所需时间就越长

2.md5sum用法

md5sum [参数] filename

md5sum参数
参数说明
-b以二进制模式读入文件内容
-t以文本模式读入文件内容
-c从指定文件中读取 MD5 校验和,并进行校验
--status不生成[争取/错误]提示信息,通过命令返回值来判断

3.实例

3.1.查看md5sum帮助信息

命令:

md5sum --help

[root@rhel77 ~]# md5sum --help
Usage: md5sum [OPTION]... [FILE]...
Print or check MD5 (128-bit) checksums.
With no FILE, or when FILE is -, read standard input.-b, --binary         read in binary mode-c, --check          read MD5 sums from the FILEs and check them--tag            create a BSD-style checksum-t, --text           read in text mode (default)Note: There is no difference between binary and text mode option on GNU system.The following four options are useful only when verifying checksums:--quiet          don't print OK for each successfully verified file--status         don't output anything, status code shows success--strict         exit non-zero for improperly formatted checksum lines-w, --warn           warn about improperly formatted checksum lines--help     display this help and exit--version  output version information and exitThe sums are computed as described in RFC 1321.  When checking, the input
should be a former output of this program.  The default mode is to print
a line with checksum, a character indicating input mode ('*' for binary,
space for text), and name for each FILE.GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
For complete documentation, run: info coreutils 'md5sum invocation'
[root@rhel77 ~]# 

3.2.检查文件md5值

命令:

md5sum -t ztj.txt

OR

md5sum -b ztj.txt

root@rhel77 ~]# md5sum -t ztj.txt
cfc12d1432a7b067566080122b1c4f85  ztj.txt
[root@rhel77 ~]# md5sum -b ztj.txt
cfc12d1432a7b067566080122b1c4f85 *ztj.txt
[root@rhel77 ~]# 

3.3.检查文件md5值,与文件无关

命令:

\cp ztj.txt ztj.txt.bak

md5sum ztj.txt

md5sum ztj.txt.bak 

root@rhel77 ~]# \cp ztj.txt ztj.txt.bak
[root@rhel77 ~]# md5sum ztj.txt
cfc12d1432a7b067566080122b1c4f85  ztj.txt
[root@rhel77 ~]# md5sum ztj.txt.bak 
cfc12d1432a7b067566080122b1c4f85  ztj.txt.bak
[root@rhel77 ~]# 

3.4.从指定文件中读取MD5校验和,并进行校验

命令:

md5sum ztj.txt >> md5sum.txt

md5sum -c md5sum.txt

[root@rhel77 ~]# md5sum ztj.txt >> md5sum.txt
[root@rhel77 ~]# 
[root@rhel77 ~]# md5sum -c md5sum.txt
ztj.txt: OK
[root@rhel77 ~]# 

3.5.从指定文件中读取MD5校验和,并不显示校验信息,以命令返回值来判断

备注:

如果校验一致返回0,不一致返回1

命令:

md5sum -c --status md5sum.txt

echo $?

[root@rhel77 ~]# md5sum -c --status md5sum.txt
[root@rhel77 ~]# echo $?
0
[root@rhel77 ~]# 

OR

命令:

echo 111 >>ztj.txt

md5sum -c --status md5sum.txt

echo $?

[root@rhel77 ~]# echo 111 >>ztj.txt
[root@rhel77 ~]# 
[root@rhel77 ~]# md5sum -c --status md5sum.txt
[root@rhel77 ~]# echo $?
1
[root@rhel77 ~]# 
http://www.dinnco.com/news/25498.html

相关文章:

  • 在github做网站如何做个人网站
  • app需要网站有哪些全球搜怎么样
  • 做网站推广方法b站推广是什么意思
  • 上海公司告苹果网站搜索引擎优化方法
  • 网站建设 成都百度快速查询
  • 做网站和做平台的区别百度指数的基本功能
  • wordpress 跳转插件引擎优化seo是什么
  • 增城网站建设网站自动推广软件
  • 巩义公司做网站百度关键词排名推广工具
  • wordpress设置首页标题描述论坛seo招聘
  • 免费php网站源码爱站网长尾关键词挖掘
  • 做a三级视频在线观看网站百度精准引流推广
  • 做外贸的网站看啥书南宁seo排名首页
  • 常州网站建设策划seo网站优化方案
  • 中山网站建设哪家好各大引擎搜索入口
  • 芜湖建设路小学网站抖音搜索seo软件
  • 广州市公需课在哪个网站可以做网络营销管理名词解释
  • 潍坊网站建设8年滕州seo
  • 网站建设特色上海外包seo
  • 县文化馆网站建设方案站长工具seo综合查询分析
  • 专做美妆的视频网站百度邮箱登录入口
  • 广西网站建设推广报价seo百度关键字优化
  • 咸阳做网站电话推广优化师
  • 深圳深度网站建设济南seo怎么优化
  • 江门h5模板建站seo的研究对象
  • wordpress 安装不上seo搜索优化培训
  • 丰田车营销网站建设的纲要计划书百度怎么推广自己的店铺
  • 在线聊天wordpressseo好seo
  • 做相册什么网站好深圳网站推广公司
  • 郑州专业的网站建设公司排名新闻今天最新消息