O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Copying, Moving, or Renaming Files

In many instances you will need to rework a file’s name or location, and you may have special concerns for each action. UNIX has a number of commands and options for these procedures; the following sections detail the available commands and options.

Copying a File Within the Current Directory

Use the cp command to copy a file, which means to create a second identical file with a different name.

Signs your UNIX is too Old

Is -i an illegal option to cp or mv on your UNIX system? Are you restricted to only 14 characters in a filename? Is the Korn or Bash shell not available on your system? If you answered yes to any of these questions, you should consider upgrading to a more modern version of UNIX.

This is one ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required