title: How to make apt assume yes and force yes for all installations in a bash script
body: <p>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.</p>
  <p>In order to do that I want to install differnt things on it etc.</p>
  <p>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</p>
  <p>Question example I want to automatically accept:</p>
  <p><code> After this operation, 1092 kB of additional disk space will be used. Do you want to continue? [Y/n]</code></p>
  <p>I just started creating the file so here is what i have so far:</p>
  <pre><code>#!/bin/bash
  
  # Constants
  
  # Set apt to accept all [y/n] questions
  &gt;&gt; some setting here &lt;&lt;
  
  # Update and upgrade apt
  apt update;
  apt full-upgrade;
  
  # Install terminator
  apt install terminator
  </code></pre>