You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
514 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

sum
===
计算文件的校验码和显示块数
## 补充说明
**sum命令** 用于计算并显示指定文件的校验和与文件所占用的磁盘块数。
### 语法
```
sum(选项)(参数)
```
```
-r使用BSD的校验和算法块大小为1k
-s使用system V的校验和算法块大小为512字节。
```
### 参数
文件列表:需要计算和与磁盘块数的文件列表。
### 实例
计算文件校验码:
```
[root@localhost ~]# sum insert.sql
00827 12
```