WEBVTT 0:00:09.500000 --> 0:00:15.220000 Okay, so let's talk a little about file identifications and their structures. 0:00:15.220000 --> 0:00:22.240000 So usually the simplest way to determine a file's type is by just looking 0:00:22.240000 --> 0:00:23.600000 at its extension, right? 0:00:23.600000 --> 0:00:29.000000 That's where you see if it's a word file, it's a DOCX, if it's an Adobe 0:00:29.000000 --> 0:00:35.480000 document, it's a PDF, if it's even a word file, if it's even an Outlook 0:00:35.480000 --> 0:00:36.760000 mailbox file, right? 0:00:36.760000 --> 0:00:40.980000 It's usually going to be a PST file, right? 0:00:40.980000 --> 0:00:45.500000 So a lot of times that extension is going to associate the file type to 0:00:45.500000 --> 0:00:50.300000 the program that uses it, especially in Windows. 0:00:50.300000 --> 0:00:54.180000 But what if there's an extension mismatch? 0:00:54.180000 --> 0:00:59.420000 What happens to a file when the file extension is changed to something 0:00:59.420000 --> 0:01:06.940000 incompatible? The default application will try to open it, but it will 0:01:06.940000 --> 0:01:11.600000 fail to be able to open it and it will give you some type of error. 0:01:11.600000 --> 0:01:13.000000 You can give this a try, right? 0:01:13.000000 --> 0:01:18.160000 You can change a PDF file to a DOCX file that's word to Adobe, and what 0:01:18.160000 --> 0:01:19.980000 you will give is an error when you try to open it. 0:01:19.980000 --> 0:01:23.440000 If you change it back, you can open it again. 0:01:23.440000 --> 0:01:27.780000 The Windows operating system doesn't check this for you. 0:01:27.780000 --> 0:01:33.200000 So it isn't until the application tries to read the unsupported file, 0:01:33.200000 --> 0:01:34.960000 but there's going to be a problem. 0:01:34.960000 --> 0:01:38.960000 And that's because with Windows, the extensions are used to determine 0:01:38.960000 --> 0:01:43.820000 what applications should be used to open a file, but changing the extension 0:01:43.820000 --> 0:01:45.800000 doesn't change the file extension. 0:01:45.800000 --> 0:01:52.520000 On the flip side of that, though, Linux will use a file signature to determine 0:01:52.520000 --> 0:01:54.420000 what type of program should be used. 0:01:54.420000 --> 0:01:57.440000 So just think that what we're talking about in this specifically points 0:01:57.440000 --> 0:02:03.120000 to Windows. So let's talk about file signature because we've mentioned 0:02:03.120000 --> 0:02:06.660000 that a few times, right? 0:02:06.660000 --> 0:02:08.980000 Files have headers. 0:02:08.980000 --> 0:02:12.720000 Headers exist at the beginning of the file, and then they also have footers, 0:02:12.720000 --> 0:02:15.820000 and footers will exist at the end of the file. 0:02:15.820000 --> 0:02:20.780000 The header could contain something like the name of the author, the data 0:02:20.780000 --> 0:02:25.980000 creation, size, or other data that helps performing error detection and 0:02:25.980000 --> 0:02:28.260000 correction before opening the file. 0:02:28.260000 --> 0:02:32.740000 Not all file types have the same signatures, but the signature verification 0:02:32.740000 --> 0:02:41.300000 is a good way to identify when an extension is correct. 0:02:41.300000 --> 0:02:44.080000 And what this provides us is some consistency. 0:02:44.080000 --> 0:02:47.380000 It's worth noting that file structures remain the same across operating 0:02:47.380000 --> 0:02:51.920000 systems. A PDF created on a Windows computer will look the same as a PDF 0:02:51.920000 --> 0:02:55.720000 created on a Mac, and this allows our files to be shared across operating