---
title: "CentOS 中用 Split 命令分割文件的方法"
author: "bosschen"
date: "2022-02-28T15:45:42Z"
tags: []
categories: ["Web前端"]
slug: "centos-split"
draft: false
lastmod: "2022-02-28T15:45:51Z"
id: 2524480
url: "https://bosschen.iteye.com/blog/2524480"
---

split -a 2 -d -b 5m file.log  filename

 

意思：

-a : 指定后缀长度

-b : 每个文件多少字节

-d : 使用数字后缀而不是字母

-l : 指定每个文件的行数