su - apt install sudo usermod -aG sudo <username> exit
ls -l foo.sh
If apt is not found so Linux is CentOS which is RedHat-based RedHat installs use yum not apt-get