hide random home http://www.fmi.uni-passau.de/archive/doc/unix/unixhelp/Unixhelp/examples_cp5.html (Einblicke ins Internet, 10/1995)

Examples of using the cp command

Examples of using the cp command

1. To copy a file from another user's home directory:

   cp ~helper/file1 file2

This copies file1 from the home directory of user helper to file2 in your current working directory.

2. To copy a file from a subdirectory in the user's home directory:

   cp ~helper/book/part2/file1 file2

This copies file1 from the subdirectory book/part2/ in the home directory of user helper to file2 in your current working directory.