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/installer is an executable itself, and can self-extract its content simply upon running. This tutorial describes who to create an SFX archive/installer on Linux.