On Unix systems, files can be joined together using the cat utility (Windows systems have type or copy /B).
cat file1 file2 file3 > joined-file
This takes the content of the old files and copies it into a single new file. The process takes the time required to read the old files and write the new one. The new file is stored separately to the old files, so the command will fail if there is not enough free disk space left to write the new file.
Is there a quicker way to combine the files, or at least to "trick" programs into thinking that the files are combined, that does not involve moving or copying data on the disk?
One way to do this might be to modify the filesystem TOC so that the files are treated as fragments of a larger file. Is there a "safe" way to do this (i.e. safer than using dd to modify the TOC manually)?
I am interested in any method of joining the files, on any platform, that is quicker and requires less disk space than physically concatenating the files.