sudo raspi-configOpens the menu-driven configuration tool for interfaces, localisation, display, performance and updates.
The Raspberry Pi configuration tool, interactive or scriptable: enable interfaces, set locale, expand storage and tune boot options.
sudo apt install raspi-configsudo raspi-configOpens the menu-driven configuration tool for interfaces, localisation, display, performance and updates.
sudo raspi-config nonint do_ssh 0Enables SSH. In nonint mode 0 means enable and 1 means disable.
sudo raspi-config nonint do_i2c 0Enables the I²C interface.
sudo raspi-config nonint do_spi 0Enables SPI.
sudo raspi-config nonint do_serial_hw 0Enables the hardware serial port.
sudo raspi-config nonint do_serial_cons 1Disables the login console on serial so the UART is free for devices.
sudo raspi-config nonint do_hostname <name>Sets the hostname.
Example
sudo raspi-config nonint do_hostname sensor-01sudo raspi-config nonint do_wifi_country <cc>Sets the Wi-Fi regulatory country; Wi-Fi stays blocked until this is set.
Example
sudo raspi-config nonint do_wifi_country GBsudo raspi-config nonint do_change_timezone <tz>Sets the timezone.
Example
sudo raspi-config nonint do_change_timezone Europe/Londonsudo raspi-config nonint do_boot_behaviour B1Boots to a console without auto-login. B2 is console with auto-login, B3 desktop, B4 desktop with auto-login.
sudo raspi-config nonint do_expand_rootfsExpands the root file system to fill the SD card on the next boot.
sudo raspi-config nonint get_sshPrints 0 if SSH is enabled and 1 if not.
sudo raspi-config nonint get_i2cReports whether I²C is enabled.
sudo raspi-config nonint get_hostnamePrints the configured hostname.
cat /boot/firmware/config.txtThe firmware configuration file most raspi-config options write to (/boot/config.txt on older releases).
Queries the Raspberry Pi’s VideoCore firmware: temperature, clock speeds, voltages, throttling state and memory split.
Reading and driving Raspberry Pi GPIO pins from the shell using pinctrl and the libgpiod utilities (gpiodetect, gpioget, gpioset).
Utilities to detect, read and write devices on an I²C bus: i2cdetect, i2cget, i2cset and i2cdump.
Capture stills and video from Raspberry Pi camera modules with rpicam-still, rpicam-vid and friends (formerly libcamera-*).