From the course: Practical Linux for Network Engineers: Part 1

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Copy, move, and delete, part 1

Copy, move, and delete, part 1

(dramatic orchestral music) - [Instructor] Let's look at copying, moving, and removing files. On a Cisco router, dir as an example, shows us files in flash. I've got this file in flash. The cp command doesn't work, cp is the copy command in Linux, not on Cisco. On Cisco we can use the command copy, and specify, a file in flash, and then we need to specify destination. If we don't specify destination, we get incomplete command. We could also do something like this. Notice, copy source file, shrun.txt, to a destination, such as shrun1.txt. We get confirmation of that, file is copied, dir shows us the new file in flash. Now in Linux, we can do something similar. I'm in the home directory of root, ls shows us those files, currently exist in root. Cp allows us to copy files. If I use that without any arguments, we're told that we need to specify an operant, or argument. So cp --help, gives us help information, and again, I'll pipe this to less. Not supported on this Ubuntu container, so…

Contents