Display a specific header from a PE file

readpe

readpe --header {{dos|coff|optional}} {{path/to/executable}}

click the source code to copy install readpe on any operating system with command-not-found.com