我完成了树的创建,只需要如何将sample_dir1(它是主目录的子目录)移动到sample_dir使用相对路径名的帮助。查看下面的树会使问题更容易理解:如何将目录移动到Linux的子目录中
$
ULI101 Assignment 2.3: Practice Specifying Path Names Page 3/15
--------------------------------------------------------------------------------
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
sample_dir1
是当前的(家)目录的子目录。移动到 sample_dir
使用相对路径:
你的问题不清楚。例如,你为什么用'C'标签标记这个?你在C编写解决方案吗?还是你在shell中使用Linux命令?对于如何解决问题有特定的要求吗?请把你的问题看作是不了解你所做的事情背景的人,并考虑对这样的人是否有意义。 – kaylum
请注意,“尽快”就像在背上画一个downvote目标。不要这样做 - 读者会在闲暇时回答。 – halfer