Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Copying files between two hard drive
Ref. No. QNX.000005597
Category(ies) Utilities, Filesystem
Issue We want to copy files from a second hard drive to the primary hard drive.  But we also want to keep the owner of the file and the directory structure intact.





Solution Using the '-pR' option to 'cp' will keep the owner of the file and the directory structure.  For example, 'cp -pR'.

For more information on 'cp', type 'use cp' at the command line, or refer to the "QNX OS Utilities - A to Z" manual for complete documentation on 'cp'.