How to diff and merge files or directories on Linux

There are many cases where you want to compare and/or merge two files or directories. For example, you may want to compare two distinct backup snapshots; merge two different versions of a document; diff two configuration files for troubleshooting, etc. While version control systems can handle this kind of situations easily, it is probably an […]
Continue reading…

 

What is a good HEX editor on Linux?

A hex editor is different from a regular text editor in that the former displays the raw binary content of a given file, without applying any text encoding or typesetting. A hex editor can be useful in various cases, e.g., repairing disk image and partition, reverse-engineering binary code, patching emulator ROM files, analyzing malware, etc. […]
Continue reading…

 

How to create a self-extracting archive or installer in Linux

While a typical archive file relies on a separate program (e.g., tar, gunzip) to extract content from the archive file, a self-extracting (SFX) archive is an executable itself, and can self-extract its content simply upon running. A self-extracting installer does the same thing, but it also copies the extracted content to appropriate directories. In this […]
Continue reading…