Partition and format a disk drive from command line with parted and mkfs ext4.

I have a Debian server and added a new drive to it but it needed to be ext4. In the past I have used Gparted the graphical front end to parted, but now I figured it worth me doing from t