Top "Cp" questions

cp is a UNIX command used to copy a file

How to avoid 'are the same file' warning message when using cp in Linux?

I'm trying to copy certain files from one directory to another. Using this command find "$HOME" -name '*.txt' -type …

linux bash copy cp
how to copy between folders and parent folder without complete path

This is a basic question but I am struggling to find a decent solution. This is hindering my script from …

linux copy parent local cp
Moving a folder from Desktop to the server?

I have a folder in my Desktop. I want to copy it to my server in Terminal. I tried this …

terminal cp
How to make cp command quiet when no file is found in Bash?

I searched map cp, but can find no quiet option, so that cp does not report "No such file or …

bash cp
Why is my Bash script adding <feff> to the beginning of files?

I've written a script that cleans up .csv files, removing some bad commas and bad quotes (bad, means they break …

linux bash sed cp
How to copy files and give them permission of destination directory

I am copying files from source to location. The source is not owned by me and the permission for files …

linux deployment permissions cp
git copy file, as opposed to `git mv`

I realize that git works by diff'ing the contents of files. I have some files that I want to copy. …

git cp git-mv
Linux command cp producing omitted directory

I want to place 1 file called "test1.html" in 100 different directories of website. Directory structure is like the following /home/…

linux centos5 cp
cp dir recursivly excluding 2 subdirs

I have 1 directory with 9 subdirectories and 10 files. Subdirectory have next level subdirectories and files. /home/directory/ /home/directory/subdirectory1 /home/…

linux bash unix cp
All possible exit codes for cp

Looking at the man pages for cp, I only found that the command exits with 0 when copy succeeds with no …

linux unix exit-code cp