As others said, configure your browser to store as few cookies as you can tolerate (because some actually useful stuff will break without them) and forget about these banners.
Although I do enjoy the ones that have actual usable toggles for "legitimate interests" - how nice of them, giving me an option to disable even cookies they can legally store with just a notice, and definitely not just hiding non-essential cookies into a vaguely defined category.
So I always go through the list and disable them one by one. It does nothing but waste my time, but I do it out of spite. Oh, and when I feel like really wasting my time, I send a bug report to whatever support email I can find on the site, about how the cookie banner accidentally let me disable essential cookies and should probably be fixed.
Terminal emulators don't (or at least shouldn't) do any such thing. sudo itself is responsible for letting you do privilege escalation without password for some time after successfully passing once - whenever you run it and successfully authenticate, it saves your user id, current time and a session identifier (each open shell gets a unique identifier) into a file. Then, when you attempt to do anything, it will check this file to see if you've if you've authenticated within the last few minutes in this terminal, and only ask for a password if you haven't.
For more info, see
man sudoers_timestamp