(20,191,227 has been resolved) over 4G download files from the Linux server and batch operation of the same type of file

  • sz Download

    sz command to download files from the server to the local, than 4Git can not be downloaded.

    Can be first split into a plurality of files is less than the target 4Gfile, and then downloaded to the local decompression together.

    1. Split a large file into several small files
      cat data.tar | split -b 2G - data.tar.
      

      data.tarLarge file

      data.tar.For the file name prefix after the spin-off of small files, small files called data.tar.aa, data.tar.ab...

    2. Download multiple small files
      sz data.tar.a*
      
    3. Decompression with multiple small files

      Extract the files to the same folder, you get a wholedata

  • Batch delete the same file type

    " Linux bulk delete the same file type "

  • Batch move (same type) files

    Direct bulk delete might accidentally deleting critical files.

    mv dir/*.{doc,pdf} dir2/
    

    The dirunder doc/ pdftransfer all the files to the two types of dir2folders.

    After then delete dir2the folder, much safer this way.

  • References

  1. How to download files from more than 4G on a Linux server?
Published 753 original articles · won praise 1021 · Views 540,000 +

Guess you like

Origin blog.csdn.net/The_Time_Runner/article/details/103736790