Moving around directories
We will now examine how to move files around using these commands. Before starting, make sure you are in the \CLI directory!
Examine these commands
cp rubbish.txt rubbish1.txt
cp rubbish.txt Backup
What was the difference in how the command was interpreted?
We can delete files in a directory which is not our working directory, using relative paths.
rm Backup/rubbish1.txt
cp ../rubbish.txt .
ll
What happened and why?
In many cases, (.) and (..) are very handy, however they do require you to know what your working directory is. One longer but safer option is to use absolute path names. Try using absolute pathnames to copy the file rubbish.txt to a backup directory