erase startup-config
wr or copy running-config startup config
On NVRAM.
show startup-config
On NVRAM.
NVRAM
NVRAM
The IOS command to copy the running configuration to NVRAM is copy running-config startup-config. This command saves the current configuration in RAM (running config) to the non-volatile memory (NVRAM), ensuring that the configuration is preserved after a reboot. You can also use the shorthand version, wr or write memory, to achieve the same result.
Data stored in nvram is erased
The router command used to copy the running configuration to NVRAM is copy running-config startup-config. This command saves the current active configuration so that it will be retained after a reboot. You can also use the shorthand version wr (short for "write memory") to achieve the same result.
NVRAM is that router component in which start up configuration file is stored.
NVRAM Stores startup-config. The IOS (Internetwork Operating System) is stored in the flash. Both flash and NVRAM are non volatile storages but there is a major difference.
To save the running configuration on a router, you typically use the command copy running-config startup-config in the privileged EXEC mode. This command copies the current configuration stored in RAM (running-config) to NVRAM (startup-config), ensuring that the configuration is retained after a reboot. Alternatively, you can use the shorthand command write memory. Always confirm the save by checking the startup configuration with the show startup-config command.