ZIP command in Linux with examples – FAQs By using `zip` command itself. Example: We are creating a zip file named = `gfg.zip` containing the files `first.txt` and `second.txt`: ... By using `unzip` command. Example: we are extracting file name = `gfg.zip`: unzip gfg.zip. By using `-x` option in zip command. Example: Jul 12, 2024