4.3 Windows Files Part 2
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
Already have an account? Sign In »
all right. Hello and welcome to commend line basics. This video we're going over. We knew his file commands to I'm Christopher Heller. And let's begin.
So we're learning objectives for this video. We're gonna do a refresher on the copy and the move commands. Learned the Robocop command and learn the ex copy command as well.
Pre assessment. What is an advantage to use robo coffee instead of copy,
a rouble copy can copy only change finals. Be rubble. Copy can copy on local system on Lee
C Copy offers logging
or D copy. Can mirror remote folder structures.
Answers. A robo copy can copy on lee changed files. And these are files that have that archive bit set where they have changed since the last back of the last copy of the file. This is a very useful way to significantly reduce the amount of files that are being copied with ease, command
and help reduce any kind of network through Put that may be saved for other purposes.
Robocop. He can copy on remote file shares. This is one of the very useful portions of it,
and copy does not offer logging the Windows Copy Command by itself is very,
very basic. Whereas the Robo Copy Command is robust. That is Theo Robo, part of Robo Copy. And it will offer logging so you can see exactly which files were copied.
And copy cannot mirror remote, full day structures. That is another useful function of the robo Copy Command, not the copy command.
Right. So quick refresher on the copy and the move copy creates another copy of the file. Another duplicate of the original file. So two of the same file exist. This is very useful way. If you wanna have backups of a specific file or if you need to send somebody a copy of the file as well for them to use
where when we have the move command, it removes the original file from the system when you move it.
So it places a copy of the original file in the destination folder first.
And then once it verifies that the new copy of the file has been copied correctly, it will remove the old file. That way, you're not wasting any disk space if you're trying to move files or reorganize them on your system,
so move is very useful. If we need to be able to either remove stuff from our system or reorganize what we're doing at at the file system level.
All right? So, ex copy. The ex copy command is used to copy files and directory trees, and it's a little more strong than the copy command. It does operate faster than the basic Windows Copy Command. And this is due to an increased buffer size so it can hold a little more work a little quicker
and is really, really good at copying directories
so it can help. Copy that directory tree structure when you are utilizing the ex copy command
so we'll hop into the prompt really quick. And I will give you a quick
overview of the ex Copy Command is going to do X copy, forward slash question mark.
And this brings up all of the help for the ex copy command. As we can see one copy files and directory trees so we could choose a whole bunch of different switches depending on you know, what our needs are. We can choose depending on some different type of date. Before I was changed after this specific date that we can use that
you can also copy files that have the archive. Attributes said.
These are the types of files that changed since the last backup.
So there's all sorts of different useful uses of the ex. Copy commit.
Now we have the Robo Copy Command. I'm very partial to the Rebel Copy Command just because it supports so many different uses and utilities at the Windows Command line.
So it does support logging, mirroring and purging. And what the purging is is it will take any. It'll compare the two folders structures from, you know, your system and a remote system.
And it will say, Hey, if these files don't exist on this system, but they do exist in this remote directory this remote share, I want you to delete any files that do not exist in this remote share. So it will copy
almost exactly the similar to the mirroring aspect of robo coffee
and hope of remove any files that no longer exists at that remote share.
So you can also be used to select very specific files, just like the ex copy command. We can look for finals that only had the archive attributes set.
That way, we save a lot of bandwidth when we are you copying over the network, and it offers a significant amount of functionality over the basic copy command.
So if we hump into our command line, let's do Robocop e
slash question work.
And as we could see, we already have a whole lot of options. Very useful.
This will take you a long time to read through, but it is Ah, very useful if you need to do some very specific copying and, uh, no backup information as well.
So we can either copy subdirectories, but not ones that are empty or broken company ones that do have empty ones
we can live for exactly. Which type of files to copy, depending on different attributes or got a C. L's
the purge weaken delete destination files and directories that no longer exist in the source. So very useful. And, uh, it was good to keep him on. And if you're using the robo copy command, help pack up user data. It's It's very robust.
All right. Post assessment Which command should be used to create a lung of all copy items? Is it a coffee? Be ex copy. See Robocop e wor d F C
answer is C robo copy. As we've learned, we can create a log of every file that was copied over the network or to a different share using the Rebel Copy Command. It's a very useful way to be able to validate that cop files were copied properly, so
it's a very useful in the end and to help maintain the integrity of your system.
All right, so in this video we learned a refresher on the move and the copy commands and how those files are treated. We also learned about the rubble Copy Command, and we learned about the ex copy command, and I hope to see you in the next video.
4.4 Windows System Part 1
4.5 Windows System Part 2
4.6 Windows System Part 3
4.7 Windows Networking Part 1
4.8 Windows Networking Part 2