"FTP" Large file packaging and split upload

Source: Internet
Author: User
Tags ftp file virtual environment
Experimental environment

Virtual Environment: Exsi6.0
System: REDHAT7
Tar Related: 2nd Chapter A beginner must master the Linux commands.
Split Related: Splitting large files using the split command under a Linux system
FTP Related:

One, packaging compressed files
# -c 创建压缩文件;-x解压;-z Gzip格式;-v 显示过程(后台脚本模式不要用);-f 目标文件名(f后要接XXX.tar.gz文件名)tar -czvf test.tar.gz /backup #把目录backup打包并压缩tar -xzvf test.tar.gz -C /home/redhat #把test.tar.gz解压到/home/redhat目录
Second, large file data segmentation
split -b 2m test.pdf test_part_ #按照2m的大小分割test.pdfcat test_part_* > test.pdf #组装分割出的文件md5sum test.pdf #查看文件分割前后md5是否发生变化
Upload files to FTP file server

"FTP" Large file packaging and split upload

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.