Top "Cp" questions

cp is a UNIX command used to copy a file

Mac Shell script get home directory

I need to get the home directory in my shell script so my coworkers can run it. What my shell …

macos bash cp home-directory
UNIX How to copy entire directory (subdirectories and files) from one location to another and retain permissions

I just copied an entire directory structure from one location on my server to another: cp -r /home/abc/public_…

chmod cp chown chgrp
Copy a file using a makefile at runtime

I used to compile my programs with batch scripts on windows but I recently discovered makefiles which are much more …

makefile copy cp
Using variable with cp in bash

The file returned will have spaces in the file name so I run the file name through sed to append …

linux bash variables cp
How do I move/copy a symlink to a different folder as a symlink under Solaris?

It is an odd behaviour seen only on Solaris that when I try to copy a symbolic link with the "…

solaris symlink cp
how to output success or failure of cp command to file

I'm going to be running a shell script containing a CP command using a scheduled cron job. I would like …

output cp logfile
cp: command not found

I am trying to copy one file to other directory and getting error message while interrupt is called. The Script : #!/…

linux bash signals cp bash-trap
In Linux, how to copy all the files not starting with a given string?

I tried with the following command: cp src_folder/[!String]* dest_folder However, this command will copy all the files …

regex linux unix cp
How to copy files found with grep

I am running this command to find all my files that contain (with help of regex)"someStrings" in a tree …

bash grep pipe cp
In linux shell, How to cp/rm files by time?

In linux shell, When I run ls -al -t that show the time of files. How to cp/rm files …

linux shell time cp rm