How to copy directory in Linux with cp command

LinuxIt is very easy for me to forget this command option, and it always take me some time to get it right when I try to copy a directory from one of my website to another website.

And I found out it is always easier when I come into the destination directory and run the cp command.

So to be summarized, I put this command with option here to make me to REMEMBER: how to easily copy a directory from one folder to another folder in Apache/Linux server.

cp -R ~/source-directory-name .

Here ~/source-directory-name is whatever you want to copy from, and please do not forget the period . at the end which is your current directory (A.K.A, your copy-to destination directory).

  • Share/Bookmark
Tags: ,

Related posts

5 Responses to “How to copy directory in Linux with cp command”


Leave a Reply



Get Adobe Flash playerPlugin by wpburn.com wordpress themes