I'm currently getting into Linux and want to write a Bash script which sets up a new machine just the way I want it to be.
In order to do that I want to install different things on it, etc.
What I'm trying to achieve here is to have a setting at the top of the Bash script which will make APT accept all [y/n] questions asked during the execution of the script.
A question example I want to automatically accept:
After this operation, 1092 kB of additional disk space will be used. Do you want to continue? [Y/n]
I just started creating the file, so here is what I have so far:
#!/bin/bash
# Constants
# Set APT to accept all [y/n] questions
>> some setting here <<
# Update and upgrade APT
apt update;
apt full-upgrade;
# Install terminator
apt install terminator