如何在 Linux 系统上将多个二进制文件复制到一个文件中? [英] How can I copy several binary files into one file on a Linux system?

查看:13
本文介绍了如何在 Linux 系统上将多个二进制文件复制到一个文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将包含二进制文件的文件夹的内容复制到另一个目录中的一个二进制文件中.

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

在 Windows 中我可以使用:

In Windows I can just use:

copy file1 + file2 targetfile /B 

我在 Linux 上找不到类似的东西(我看到了一种使用 cat 的方法,但我不确定这是否真的适用于二进制文件).

I couldn't find something similar for Linux (I saw an approach with cat, but I'm unsure if this really works for binary files).

推荐答案

Unix没有区分文本文件和二进制文件,这就是为什么你可以cat它们一起:

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

cat file1 file2 > target_file

这篇关于如何在 Linux 系统上将多个二进制文件复制到一个文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆