4.3 Windows Files Part 2

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Difficulty
Beginner
Video Transcription
00:00
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.
00:08
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.
00:18
Pre assessment. What is an advantage to use robo coffee instead of copy,
00:24
a rouble copy can copy only change finals. Be rubble. Copy can copy on local system on Lee
00:31
C Copy offers logging
00:34
or D copy. Can mirror remote folder structures.
00:39
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
00:56
and help reduce any kind of network through Put that may be saved for other purposes.
01:00
Robocop. He can copy on remote file shares. This is one of the very useful portions of it,
01:07
and copy does not offer logging the Windows Copy Command by itself is very,
01:15
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.
01:25
And copy cannot mirror remote, full day structures. That is another useful function of the robo Copy Command, not the copy command.
01:34
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
01:55
where when we have the move command, it removes the original file from the system when you move it.
02:02
So it places a copy of the original file in the destination folder first.
02:08
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,
02:23
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.
02:35
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
02:54
and is really, really good at copying directories
02:58
so it can help. Copy that directory tree structure when you are utilizing the ex copy command
03:05
so we'll hop into the prompt really quick. And I will give you a quick
03:09
overview of the ex Copy Command is going to do X copy, forward slash question mark.
03:16
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
03:35
you can also copy files that have the archive. Attributes said.
03:38
These are the types of files that changed since the last backup.
03:42
So there's all sorts of different useful uses of the ex. Copy commit.
03:49
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.
04:00
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.
04:13
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
04:30
almost exactly the similar to the mirroring aspect of robo coffee
04:33
and hope of remove any files that no longer exists at that remote share.
04:39
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.
04:47
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.
04:59
So if we hump into our command line, let's do Robocop e
05:02
slash question work.
05:05
And as we could see, we already have a whole lot of options. Very useful.
05:12
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.
05:21
So we can either copy subdirectories, but not ones that are empty or broken company ones that do have empty ones
05:28
we can live for exactly. Which type of files to copy, depending on different attributes or got a C. L's
05:36
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.
05:51
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
06:04
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
06:21
it's a very useful in the end and to help maintain the integrity of your system.
06:28
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.
Up Next
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