I have been trying to move a file from one directory (on the Ubuntu 18.04 for windows terminal) to other directory and it dissapeared, to do it I ran the following command and entered the sudo password correctly, however when I moved to the new_directory nothing was there.
sudo mv new_file.txt /new_directory
Just to clarify this happens anytime with any file or directory I try to use (even if a create a new file and directory the output will be always the same - nothing there). However I have Anaconda installed on Ubuntu and using the Jupyter Navigator I can create and move files between folders, that means that the problem happens only when I use the ubuntu terminal.
Before arriving to this point I have been trying to move the files just using the mv command but permission was denied
mv new_file.txt /new_directory
mv: cannot move 'new_file.txt' to '/new_directory': Permission denied
I also changed file and directory permissions just in case but it didn´t work
chmod 777 new_file.txt chmod 777 new_directory
I have had a look to similar issues here but I think they do not fit my problem (I don´t think the file is in a hidden directory or in a directory with a similar name as I have been doing trials on purpose creating several files & directories with different names). On the other hand I don´t know why I cannot execute the mv command without giving sudo permissions as this never happened to me before.
Thanks in advance, any help will be appreciated.