Assessment: Files and Directories

Oct 2, 2014 • Dureid El-Moghraby
  1. Given that the home directory structure for the user Nikola is shown in the figure, and the output of the command :
    $ pwd
    is
    /users/nikola/experiment
    which of the command below will successfully copy the *contents* of the folder “results”,( i.e. fig1.eps, fig2.eps ..) to the contents of the folder “figures” :

a) cp -r results/ /writing/figures
b) cp -r /results ../writing/figures
c) cp -r results/ ../writing/figures
d) cp -r results ../writing/figures

  1. Looking the home directory structure given in the figure, to move the contents of folder “results” to the folder “figures” using absolute paths, you use the command:
    mv ____ __

Directory Structure<figcaption class="wp-caption-text">Directory Structure</figcaption></figure>