Good morning, I would like to ask if it is possible to perform a factory reset via a terminal command to restore everything to factory settings and set them as if they were new. Thank you for the support. Sorry, I was talking about a DGX Spark.
You cannot do a true factory reset in Ubuntu from the console. You will have to reinstall the OS via System Recovery process System Recovery — DGX Spark User Guide
If I set a username and password, do they also get reset with the operating system recovery process?
Yes, you will go through the OOBE process again