Top "Cp" questions

cp is a UNIX command used to copy a file

Should I put trailing slash after source and destination when copy folders

I want to copy: This folder: ajax (/home/thej/public_html/JC/ajax). Into this folder: /home/thej/public_html/…

linux unix cp
Copy only files, not folder structure from a directory in Unix

I found this solution after googling here but I was horrified: too complicated solution. I am pretty sure some cp …

unix cp
cpio VS tar and cp

I just learned that cpio has three modes: copy-out, copy-in and pass-through. I was wondering what are the advantages and …

bash archive tar cp
bash mkdir and cp error on variable path "cannot create directory : No such file or directory"

I'm trying to automate copying the content from a variable path (my camera) into a partially-user-defined path (desktop+date+event). …

bash mkdir cp
cp command to overwrite the destination file which is a symbolic link

Does cp command have any option to overwrite the destination file which is a symbolic link? The problem is as …

linux shell cp
Shell Scripting unwanted '?' character at the end of file name

I get an unwanted '?' at the end of my file name while doing this: emplid=$(grep -a "Student …

bash shell cp
Python Subprocess Error in using "cp"

I was trying to use subprocess calls to perform a copy operation (code below): import subprocess pr1 = subprocess.call(['cp',…

python subprocess cp
Copy every file of entire directory structure into base path of another

I have a directory-tree with a lot of files in it. I'd like to copy all of those files into …

linux bash find directory cp
hdfs copy multiple files to same target directory

I learned that if you want to copy multiple files from one hadoop folder to another hadoop folder you can …

hadoop copy hdfs subdirectory cp
Linux cp with a regexp

I would like to copy some files in a directory, renaming the files but conserving extension. Is this possible with …

regex linux cp