Skip to main content

4.11) Moving Around From The Documents Directory


So if you are in the documents directory and you want to copy the file from the home directory into where you are then you can use two symbols to help you do this. The symbol for the home directory is ‘~’ and the symbol for the directory that you are in (at any time) is ‘.’, so to copy a file to where you are is done by:

cp ~/data1 .

Don’t forget the space and then the dot. The second term is the home directory (~) then ‘/’ to separate this from the name of the file you want (data1) and the destination directory is ‘.’.