How can I copy several binary files into one file on a Linux system?

后端 未结 2 685
难免孤独
难免孤独 2021-02-04 23:24

I need to copy the content of a folder which contains binary files to one binary file in another directory.

In Windows I can just use:

copy file1 + file         


        
2条回答
  •  深忆病人
    2021-02-05 00:09

    Unix has no distinction between text and binary files, which is why you can just cat them together:

    cat file1 file2 > target_file
    

提交回复
热议问题