Download specific file extension via wget

Sometimes, there may be files with more than one extension in a directory or folder. For example, .jpg, .png, .gif, .mp3, .mp4 etc. You want to download only gif files specifically from that source, but don’t know how to do this? Don’t be afraid, you’re right.

wget is small software with a GNU license (i.e. free), by default on Linux and macOS operating systems.