parted - a partition manipulation program
parted [options] [device [command [options...]...]]
Options you will use
-s, --script- Never prompt (for scripts).
--script- Never prompt (for scripts).
mklabel- Create a new partition table (gpt, msdos). Erases the old one.
mkpart- Make a partition: mkpart NAME FSTYPE START END.
Try parted in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.