Hello so I'm completely new to Ubuntu and I wanted to copy folders to my network drive. I understand how to copy files normally but I can't seem to copy over files to my network drive.
sudo cp /home/adam/file.txt smb://nas/main/
It says no such directory exists. I can navigate to the location through the file explorer.
Solution provided by RoVo works. I mounted the network drive permanently by editing the /etc/fstab file and adding the line to the end.
I can now transfer files with:
sudo cp /home/adam/file.txt /media/networkdrive