Resizing partitions via a command line doesn't have to be complicated.