HowTo Copy a Folder

参考: http://www.cyberciti.biz/faq/copy-folder-linux-command-line/
In this example copy /home/vivek/letters folder and all its files to /usb/backup directory:

cp -avr /home/vivek/letters /usb/backup

-a : Preserve the specified attributes such as directory an file mode, ownership, timestamps, if possible additional attributes: context, links, xattr, all.
-v : Explain what is being done.
-r : Copy directories recursively.

Copy a folder called /tmp/conf to /tmp/backup:
$ cp -avr /tmp/conf/ /tmp/backup

时间: 2024-11-10 13:29:18

HowTo Copy a Folder的相关文章

[转]FluentData

本文来自:http://fluentdata.codeplex.com/wikipage?title=Fluency&referringTitle=Home Documentation  Fluency This contribution is an attempt to speedup the development of domain layer in bottom to top model with FluentData. This means you already have the D

How to set up a basic working Appium test environment

Appium is a test framework targeting devices; although it is very handy and powerful, it is not so straightforward and easy to install. Furthermore, the documentation (IMHO) does not provide a good tutorial to get things working as fast as possible.

[翻译] PPDragDropBadgeView

PPDragDropBadgeView https://github.com/smallmuou/PPDragDropBadgeView PPDragDropBadgeView is a badge view which able to drag and drop. Just like QQ 5.0 badge view. PPDragDropBadgeView是一个badge视图,可以进行拖拽,像QQ5.0中的badge视图. Support iOS 5.0+ ARC 支持 iOS5.0+ 以

WordCount Analysis

1.Create a new java project, then copy examples folder from /home/hadoop/hadoop-1.0.4/src; Create a new folder named src, then Paste to the project to this folder. Error: Could not find or load main class right-click src folder, --> build Path --> U

在vs中使用bits/stdc++.h的方法-转自CF

solution to include bits/stdc++.h in visual c++ By Tensor, 2 years ago, , This is just a method i used to make me able to include bits/stdc++.h in visual c++. for those had minGW installed on PC : C:\MinGW\mingw32\lib\gcc\mingw32\4.8.1\include\c++\mi

[No000098]SVN学习笔记5-分支,合并,属性,补丁,锁,分支图

行结束符和空白选项 在项目的生命周期中,有时可能会将行结束符由 CRLF 改为 LF,或者修改一段代码的缩进.不幸的是这样将会使大量的代码行被标记为已修改,尽管代码本身并没有被修改.这里列出的选项将会在比较差异 和应用补丁时帮助你应对这些修改.你将会在合并和追溯对话框中看到这些设置,它们同样也出现在TortoiseMerge 的设置中. 忽略行结束符 排除仅行结束符的差异. 比较空白 将所有缩进和行内空白差异视为增加/删除的行. 忽略空白修改 排除那些完全是针对空白数量或类型的修改,例如,修改缩

IIS 8.0 Using ASP.NET 3.5 and ASP.NET 4.5微软官方安装指导

from:https://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45 Step by Step Instructions Prerequisites: · IIS is installed on Windows Server 2012. To learn more about installing IIS 8, see Installing IIS 8 on Windo

[翻译] UPCardsCarousel

UPCardsCarousel UPCardsCarousel is a carousel with a cards based UI for iOS. UPCardsCarousel是一个旋转木马效果的UI控件. UPCardsCarousel Requirements UPCardsCarousel uses ARC and requires iOS 7.0+. 需要ARC,iSO7.0以上. Works for iPhone. 只针对iPhone开发. Installation Cocoa

学习搭建Hadoop+HBase+ZooKeeper分布式集群环境

一.环境配置 由于集群至少需要三台服务器,我就拿上次做的MongoDB Master, Slave, Arbiter环境来做Hadoop集群.服务器还是ibmcloud 免费提供的.其中Arbiter在这里做的也是slave的角色. Hostname IP  Server Type Master 192.168.0.28 Centos6.2 Slave 192.168.0.29 Ubuntu14.04 Arbiter 192.168.0.30 Ubuntu14.04 配置三台机器的Master