首页 > 其他 > 详细

[Bash] Move and Copy Files and Folders with Bash

时间:2018-10-12 18:14:00      阅读:126      评论:0      收藏:0      [点我收藏+]

In this lesson we’ll learn how to move and rename files (mv) and copy (cp) them.

 

Move index.html to src folder:

mv index.html src/index.html

 

We can also rename the file:

mv a.js b.js  # rename a.js file to b.js
mv src/ lib  # rename src folder to lib 
mv lib/* src/  # move everything under lib folder to src

 

You can also use ‘copy‘:

cp -R lib/* src/  # copy everything under lib to src folder

 

[Bash] Move and Copy Files and Folders with Bash

原文:https://www.cnblogs.com/Answer1215/p/9779674.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!