I have this problem as part of a school assignment:
NOTE: In case it's hard to read in the image above, here's the directory tree:
$ tree
.
`-- sample_dir1
`-- sample_dir
|-- admin
|-- cambridge
| |-- cafeteria
| |-- library
| `-- security
| |-- annex
| |-- building
| `-- parking
|-- faculty
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
|-- oxford
| |-- outline.doc
| |-- programming
| | `-- report.pdf
| `-- security
`-- stenton
|-- gen_ed
`-- lib_arts
|-- english.txt
`-- match.doc
15 directories, 11 files
I tried doing the command:
$ cp ../cambridge/security/parking ./parking2
...but it isn't working. The question in the image above states that the current directory is stenton
, and that we need to make a copy of the file named parking
(from the security
directory), and to name the new file parking2
, and place it in the current directory, stenton
, using relative pathnames.
What am I doing wrong? My cp
command seems to be correct.