How can I resolve the 'nano error writing no such file or directory' if I'm trying to save a new file?

Question

Grade: Education Subject: Support
How can I resolve the 'nano error writing no such file or directory' if I'm trying to save a new file?
Asked by:
102 Viewed 102 Answers

Answer (102)

Best Answer
(269)
If you're creating a new file, ensure that the directory you are trying to save it in actually exists. You can create the necessary directories before saving using the `mkdir -p /path/to/your/directory` command in your terminal. Then, try saving the file in Nano again.