[英]How to move all files of a folder to another folder in ssh console?
I have tree structure like in the same level我有同级别的树结构
public_html public_html
connection联系
& inside the public_html I have & 在 public_html 我有
so I want to move all the files & folder of folder public_html/conn to connection folder which is in the level of public_html,so which exact command of ssh can give me the result?所以我想将文件夹public_html/conn的所有文件和文件夹移动到public_html级别的连接文件夹,那么ssh的哪个确切命令可以给我结果?
If you want the folder conn
to be inside connection
:如果您希望文件夹conn
位于connection
内部:
mv -i public_html/conn/ connection
Alternatively, if you want the files inside conn
, but not the conn
folder itself, to be inside connection
:或者,如果您希望conn
的文件而不是conn
文件夹本身在connection
内部:
mv -i public_html/conn/* connection
mv -i public_html/conn/.* connection
Would definitely suggest doing man mv
beforehand to avoid making a mistake.肯定会建议事先做man mv
以避免犯错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.