Custom Search : Technical Guides Sybase Oracle UNIX Javascript

Technical Guides

Of Interest

Business Intelligence and Analytics

Oracle Training

UNIX » Commands » Basics »

Moving and Copying Files


See scripting examples for moving and renaming collections of files.

# rename file to backup copy
mv myfile myfile.bak

# copy file to backup copy
cp myfile myfile.bak

# move file to tmp directory
mv myfile /tmp

# copy file from tmp dir to current directory
cp /tmp/myfile .

# copy a directory, recursive .. and preserve file dates

cp -Rp /app/datafiles /aux/backup2006

UNIX : Related Topics

UNIX : Commands : File Permissions
UNIX : Commands : Using Tar
UNIX : Commands : Find files, current directory only
UNIX : Commands : Sort a file, with a specific key
UNIX : Commands : User Accounts
UNIX : Commands : Listing Files
UNIX : Commands : Deleting Files
UNIX : Commands : Disk Usage
UNIX : Commands : Running a process, spawning a process
UNIX : Commands : Killing a UNIX process
UNIX : Commands : Redirecting Output
UNIX : Commands : Misc UNIX Tips
UNIX : Commands : Displaying a File

Sybase Web Site
Sybase iAnywhere Mobile Web Site
Oracle Enterprise Web Site

Get the latest Rocket99 news and tech tips via

Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site

Copyright © 2016 Stoltenbar Inc All Rights Reserved.