Copy File

cp (copy)

cp file1 file2 is the command to make a copy of a file in the working directory and name the copied file as file2

% cp /files/hello.txt .

The above command means copy the file science.txt to the current directory, keeping the name the same. Don't forget the dot . at the end. Remember, in UNIX, the dot means the current directory.