Command cp -r my_scripts/ my_scripts_copy/ not working

Hi, I’ve entered this cd ~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts and then cp -r my_scripts/ my_scripts_copy/. However, I keep getting the following message:
cp: cannot stat “my_scripts” : No such file or directory.

I am not sure what I am doing incorrect. Thank you for your help.

@celenemeraz it looks like there is a step missing. Before executing ‘cp my_scripts/ my_scripts_copy/’, there should have been a step saying to navigate to ‘~/catkin_ws/src/linux_course_files/move_bb8_pkg’.

This can be done either with:
cd ~/catkin_ws/src/linux_course_files/move_bb8_pkg

or, assuming you were in ‘~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts’, with
cd …

The latter method suggested is a shortcut used by linux saying ‘navigate to the current directory’s parent directory’.


Thank you very much Daniel! This works!