Listing, copying, and removing directories - Exercise Result
Your UNIX session should look similar to the one shown in the following two figures. In the first figure, the script command reports that it is recording your commands in the file.
Next, the ls -a command shows the hidden files in the current directory. The next command produces a recursive listing of the images directory. Finally, the images directory is copied and the cp
command requires the -r option in this case.
Recording commands in file
In the following figure, you go to the project directory. By listing the contents, you can verify that the images directory was copied.
Next, the rm -r command removes what you previously copied, then you verify this by using the ls command.
Recursive listing of directory
Advanced Unix Concepts Search
If you have any questions or encountered any problems you can use the Search bar at the top of the page.