尝试将文件从 Documents 目录移动到 /etc/bind Linux Ubuntu

Trying to move a file from Documents directory into /etc/bind Linux Ubuntu

我想 move/copy Documents 目录中的一个文件到 /etc/bind 我试过:

sudo mv ~/Documents/Config_Files/db.example.lan /path/to/etc/bind/

我也试过:

sudo mv ~/Documents/Config_Files/db.example.lan /path/to/~//etc/bind/

但也出现错误:“没有这样的文件或目录”

我可能是傻了,但我仔细检查了拼写大写,一切都正确,但仍然不会作为目录出现。

我不能给你太多指导,但是,如你所见,我们使用 'sudo mv',这意味着我们告诉 root 移动它,然后你键入“~”,这意味着主目录...

所以如果你输入:

sudo mv ~/Documents

这意味着

sudo mv /root/Documents

而不是

sudo mv /home/<xyz>/Documents

请尝试提供正确的路径,如果可行请告诉我。! 示例:

sudo mv /home/<username>/Documents/Config_Files/db.example.lan /etc/bind/