November 1998
Intermediate to advanced
578 pages
28h 15m
English
cp
cp [old ] [new ]
This makes a copy of a file where
old is a pathname to the original file and
new is the name you want to give the copy
of the file. (This is similar to the “save as” function
in an application.) The following sample code makes a copy of the
file art.html and names the copy
art2.html.
% cp art.html art2.htmlcp[file] [directory]
This puts a copy of the original file into an existing directory. The
following sample code makes a copy of art.html
and puts it in Richard’s work directory:
% cp art.html /user/richard/work
Read now
Unlock full access