How Do I Create This File? ?? on Ubuntu 16.04 Server

How do i create this file ? In Ubuntu server 16.04 ~/.kodi/userdata/advancedsettings.xml

When I type sudo nano ~/.kodi/userdata/advancedsettings.xml my terminal opens up nano once i type in my desired input and try to save it gives me the following error. [ Error Writing /home/user/.kodi/userdata/advancedsettings.xml:No such file or Directory ]

What am I doing wrong ??? I have also tried cat and touch to see if that would work. I'm not sure what I'm doing wrong Please Help!

1 Answer

You need to create the directories first.

Assuming you have installed kodi, you may have a directory .kodi in your home directory. Do a cd to that directory, then see if there is already a directory called userdata. I think there is no such directory, which causes the write operation in nano to fail. Create that directory with mkdir userdata. (There is no need to use sudo, indeed it is bad practice, to write files in your own home directory using sudo.) Then cd into the userdata directory and do nano advancedsettings.xml.

That should help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest