Edit File On Cisco Router. To add a line in startup configuration file without adding the same line in running configuration first and without having to copy the complete file…