
This makes a copy of the file foo and names it foo.2 $ cp *.jpg ~/Documents/photos Syntax : cp Source_file Target_fileĬp Source_file(s) Target_Folder Use cp (copy) to copy files or directories. Finally she used cd with no argument to jump back to the home directory.


She cd’ed to the directory motorcycles and saw that each bike had its own directory. Kathy began in her home directory, then went to her photos subdirectory she found what was in this directory (two sub-directories) using ls. $ /Users/kathy/Documents/photos/motorcycles Use cd (change directory) to change directories use pwd to determine your current (working) directory.
