The raspi-config tool
This can be run from the command line or from a terminal window if using the GUI. Older versions of Raspbian would boot to the command line and the raspi-config tool would run on first boot after installation. Newer versions boot to the GUI and do not run raspi-config.