CP(1) General Commands Manual CP(1)NAME
cp - copy
SYNOPSIS
cp file1 file2
cp file ... directory
DESCRIPTION
File1 is copied onto file2. The mode and owner of file2 are preserved if it already existed; the mode of the source file is used other-
wise.
In the second form, one or more files are copied into the directory with their original file-names.
Cp refuses to copy a file onto itself.
SEE ALSO cat(1), pr(1), mv(1)CP(1)
Check Out this Related Man Page
efi_cp(1M)efi_cp(1M)NAME
efi_cp - copy to or from EFI file
SYNOPSIS
devicefile] file1 file2
devicefile] file1 [file2]... dest-directory
devicefile] file_or_dir1 [file_or_dir2]... dest-directory
DESCRIPTION
copies files between HP-UX and EFI file systems.
The EFI file system is based on the FAT file system and used by the Itanium-based system BIOS to locate an HP-UX bootloader. See efi(4).
Without the option, copies from an HP-UX file system to the EFI volume specified by devicefile; in this case, the destination should be
relative to the root of the EFI volume specified by devicefile. Use the option to copy from an EFI file system to an HP-UX file system;
with the option, only a single regular file may be copied at a time.
With two arguments:
o If file2 does not exist, creates it and copies the contents of file1 into file2.
o If file2 exists and is a regular file, deletes the the contents of file2 and copies the contents of file1 into file2.
o If file2 exists and is a directory, creates a copy of file1 in that directory.
With more than two arguments, the final argument must be an existing directory. If any of the other arguments is a directory, you must use
the option, which specifies that the source directory and the subtree rooted there are to be copied to the destination directory.
Options
Options can be used singly or combined in any order before the file names. The space between option and argument is optional.
devicefile is the device special file of the EFI file system to be copied. Without the option, uses the device file specified in the
environment variable if it is defined. The option overrides the environment variable.
Recursively copy the subtree rooted at each source directory to
the destination directory.
Copy file1 from an EFI volume to file2 in HP-UX file system. file1 should be relative to the root of the EFI volume specified by
devicefile, not to an HP-UX file system. With the option, only a single regular file may be copied at a time.
RETURN VALUE
returns exit code 0 if the copy is successful. Otherwise it prints a diagnostic message and returns nonzero.
0 Successful completion.
>0 Error condition occurred.
EXAMPLES
All the following examples copy to or from the EFI file system on device
Copy into directory in the EFI file system on the specified device:
Copy all files in current directory into directory in the EFI file system on the specified device
Copy into directory in the EFI file system on the specified device and rename it
Copy into the EFI boot directory of the EFI file system on the specified device:
Copy into of the EFI file system on the device specified in the environment variable and rename it to
Copy from the EFI file system on the specified device into the current HP-UX directory:
Using a persistent device special file (dsf) copy from the EFI file system on the specified device into the current HP-UX directory (see
intro(7)):
AUTHOR
was developed by HP.
SEE ALSO efi_fsinit(1M), efi_ls(1M), efi_mkdir(1M), efi_rm(1M), efi_rmdir(1M), efi(4), intro(7).
Itanium(R)-based Systems Only efi_cp(1M)
When trying to copy a file in Solaris 8 it doesnt copy file or give a error. This worked 100% until the 29th. I've checked the rights and everything seems fine:
drwxrwxrwx 2 bmuser bmgroup 11776 Jan 3 10:32 spool
This is the file I want to copy:
-rwxrwxrwx 1 bmuser bmgroup ... (26 Replies)
Hello,
I am trying to write a script in Perl which will send some data from a UNIX Box to a windows box. I am planning to create a TCP/IP communication port for the same. How do I go about this? Kindly help.
Regards,
Garric (50 Replies)
Hi,
I have 3 solaris servers. Two servers of differnet network and one gateway.
Server1 --> 192.168.0.1 --> Solaris 9
Server2 --> 10.27.40.2 --> Solaris 10
Server3 --> Iface1 --> 192.168.0.5 --> Solaris 10 --> Gateway
Iface2 --> 10.27.40.5
Now I am able to ssh... (36 Replies)
I have a ksh script that contains the following:
find /dir1/dir2 -type f -name "FILE.*" -newer /dir1/dir2/afterme.txt -exec cp /dir1/dir2/dir3 {} \;
When I run it from the cli, it runs fine. When I run it from the ksh script I get
find: missing argument to `-exec'
I also tried -exec cp... (40 Replies)
Hi
I have server with 48 cpus running SUN os.
I have loaded with enough tasks. But I could see my CPU utilization is very less compared to kernal's cpu utlization.
below is the output of top command
load averages: 23.2, 10.1, 16.6; up 423+16:45:16 ... (25 Replies)
Hi.
I am writing client - server application using TCP sockets.
I need some very basic functionality, namely: how to check if another "participant" of the connection is still present?
I want to handle situations, when client is gone, or server breaks down, etc. (25 Replies)
Hey all,
dmidecode | grep -i CPU
Socket Designation: CPU 0
Version: Intel(R) Xeon(R) CPU E5530 @ 2.40GHz
Socket Designation: CPU 1
Version: Intel(R) Xeon(R) CPU E5530 @ 2.40GHz
cat /proc/cpuinfo | grep -i cpu
cpu family : 6... (24 Replies)
I am getting segmentation fault in memcpy.I have given sufficient memory but i dont know why it is occurring
char *finalptr = ( char *)malloc(1048576* sizeof(char));
finaloffset=0;have=685516;
memcpy(&(finalptr)+finaloffset,out,have);
finaloffset=685516;have=359910;... (23 Replies)
Hi guys,
First of all thanks for reading this and the already provided information! I was reading about a post that was created a couple of years back:
86686-ls-l-all-files-created-between-two-times.html (i am not allowed to copy urls :( )
My question is somehow similar.
I have a... (26 Replies)
i want to kill a tcp connection by killing its pid
with netstat -an i got the tcp ip connection on port 5914
but when i type ps -a or ps-e there is not such process running on port 5914
is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
I recently installed AT&T UNIX SysV, on an old Pentium computer. I now find that I am unable to transfer files to and from the computer. I previously posted about problems mounting a floppy drive, but that is just bringing up more problems about the filesystem format.
JGT brought to my attention... (27 Replies)
Here is a chance for Linux users to easily compare Linux CPU info and some meaningless BOGOMIPS. Everyone who is running Linux is welcome to:
cat /proc/cpuinfo
and post the results.
Here is the results for www.unix.com:
processor : 0
vendor_id : AuthenticAMD
cpu family... (182 Replies)
Hey,
Now that I'm caught-up on a number of forum tasks, I can turn my attention to the next-generation UserCP (and learn VueJS) for the site.
Today I created this (not yet functional) demo using Vue;
https://www.unix.com/cp/index.php
What do you think? (36 Replies)
Yesterday someone asked me to install TeamViewer and share my Mac screen with them while on a conference call.
I shut down my Mac before sleeping and woke up to some major problem with my 12-core CPU in hyperdrive, and the system activity monitor showed my Mac kernel_task was at 1,200% and the... (30 Replies)