1 00:00:01,560 --> 00:00:06,630 Now we have one archive file, but the file is bigger than the sum of the original files. 2 00:00:06,990 --> 00:00:11,610 So what you want to compress those files for ease of transport. 3 00:00:13,030 --> 00:00:19,060 So Linux has several comments capable of creating compressed files, so we will look at this here. 4 00:00:19,420 --> 00:00:24,030 GZIP, which uses the extension to, uh, here. 5 00:00:24,490 --> 00:00:24,870 Excellent. 6 00:00:25,090 --> 00:00:30,250 Now Jesus here to zip is a user's extension. 7 00:00:30,280 --> 00:00:34,480 Tosh, GZ or tag is in here like that. 8 00:00:35,050 --> 00:00:41,350 Um, so we have these two here, these two, uh, here. 9 00:00:41,980 --> 00:00:47,110 Uh, which uses extension tosh these to here. 10 00:00:47,320 --> 00:00:54,310 Actually, this is not separate and we have compress, uh, compress here. 11 00:00:54,520 --> 00:00:58,570 And this is that he uses the Taj Z here like that. 12 00:00:59,080 --> 00:01:05,980 So the these all are capable of compressing our files, but they use different compression algorithms 13 00:01:05,980 --> 00:01:08,080 and have different compression ratios. 14 00:01:08,620 --> 00:01:13,960 So therefore we will look at each one and what it's capable of in general. 15 00:01:14,000 --> 00:01:17,380 You know, compress is the fastest, compress is the fastest. 16 00:01:17,560 --> 00:01:25,090 But the result those files are larger, larger, so easy tool is the tool here is a obvious, but the 17 00:01:25,090 --> 00:01:31,690 resultant files are the Somalis and GZ files somewhere in between. 18 00:01:31,940 --> 00:01:38,260 Fast the compress and peace to the main reason you as budding kicker. 19 00:01:38,470 --> 00:01:42,130 You should know all three Maytals methods is not. 20 00:01:42,130 --> 00:01:47,110 When accessing other tools, you will run into various types of compression. 21 00:01:47,490 --> 00:01:50,620 Therefore, this section shows you how to deal with them. 22 00:01:50,890 --> 00:01:58,840 Main methods of compression so they accomplish compression with GCP, and I will show you. 23 00:01:59,380 --> 00:02:00,130 So let's right. 24 00:02:00,370 --> 00:02:03,820 Uh, g zip Jeannie, you zip here first. 25 00:02:03,940 --> 00:02:10,930 Um, and as is the most commonly used compression utility in Linux, so it's popular in Linux, so you 26 00:02:10,930 --> 00:02:11,650 can compress. 27 00:02:12,010 --> 00:02:18,490 Um, I'll take this project, uh, tar file by entering, uh, def here, for example. 28 00:02:20,490 --> 00:02:25,560 Let's delete our town files here, and let's complete new products in. 29 00:02:27,340 --> 00:02:31,630 ASAP here, tick beans and. 30 00:02:32,610 --> 00:02:34,650 Uh, one tour operator here. 31 00:02:37,800 --> 00:02:40,800 So by entering here and let's enter. 32 00:02:42,470 --> 00:02:43,430 And that helps. 33 00:02:44,150 --> 00:02:46,510 And as you can see here, which is it. 34 00:02:46,850 --> 00:02:48,020 And so. 35 00:02:56,970 --> 00:02:58,170 As you can see here. 36 00:02:59,090 --> 00:03:00,380 And it's open here. 37 00:03:01,830 --> 00:03:04,290 So we have seen huge file here. 38 00:03:05,360 --> 00:03:06,620 And we have. 39 00:03:14,650 --> 00:03:16,960 Actually, let's return our. 40 00:03:19,010 --> 00:03:26,840 Take spins project from Trashier, because we I will do some example here. 41 00:03:27,260 --> 00:03:32,930 So let's anticipate as well here and uh, to commence. 42 00:03:34,810 --> 00:03:37,450 And take this one here and take this. 43 00:03:37,780 --> 00:03:40,510 The latest tech business here, so we can. 44 00:03:42,480 --> 00:03:48,930 We can compress these, uh, these compressed file to bust this action that compress it's just carried 45 00:03:48,930 --> 00:03:55,590 and the file is not reduced here, so we can reduce this file here, for example, unless unless you 46 00:03:55,590 --> 00:03:57,330 consider it, let's copy it here. 47 00:03:57,750 --> 00:04:00,780 See Page Take Bins Project here. 48 00:04:01,530 --> 00:04:03,750 Take Bins Project. 49 00:04:04,750 --> 00:04:06,520 And tech being. 50 00:04:07,990 --> 00:04:14,700 Take things for the clear three year war wrecked year in. 51 00:04:15,990 --> 00:04:17,890 Or just like that copy. 52 00:04:18,790 --> 00:04:20,920 But Typekit else. 53 00:04:21,610 --> 00:04:23,020 So we created a copy of it. 54 00:04:24,130 --> 00:04:31,520 So let's give our take advanced project, which means project clear and take this project. 55 00:04:32,170 --> 00:04:39,010 So as you can see here, take this project tarrier touches us, so we copy that. 56 00:04:39,040 --> 00:04:41,170 So now Alice in here. 57 00:04:41,740 --> 00:04:42,010 So. 58 00:04:43,310 --> 00:04:47,420 As you can see, here are file size is reduced to. 59 00:04:49,210 --> 00:04:56,800 My significant amount, so let's say that we used, uh, before, uh, of it, we used to build card 60 00:04:56,800 --> 00:04:58,240 operator years. 61 00:04:59,440 --> 00:05:01,990 Let me show you here. 62 00:05:02,770 --> 00:05:10,390 So, uh, this tells Lennox that the coal mines filled apply to any file that begins with thick pins, 63 00:05:10,840 --> 00:05:17,590 uh, within file extension, you will use similar notation, uh, for the following samples when you 64 00:05:17,590 --> 00:05:21,760 read too long listing on the directory we can use take bins. 65 00:05:21,760 --> 00:05:24,300 Tar has been replaced by here. 66 00:05:24,430 --> 00:05:27,850 Uh, take this project tar to, uh, take this project. 67 00:05:27,870 --> 00:05:30,520 Tar GZ here we carried around a file. 68 00:05:30,550 --> 00:05:32,380 Uh, like that's just a copy here. 69 00:05:32,680 --> 00:05:40,360 So as you can see, this pint sized is sized is, um, use significant amount almost less calculated, 70 00:05:40,900 --> 00:05:46,570 uh, three nine nine three six zero and write to. 71 00:05:49,920 --> 00:05:53,730 As you can see here, the file size is up. 72 00:05:56,550 --> 00:06:01,470 Sized, um, actually one hundred seven to eight times. 73 00:06:03,760 --> 00:06:04,690 Uh, so. 74 00:06:06,760 --> 00:06:17,230 We can then then compress that world by using the Guns Zapier command concept short for a gene you unzip 75 00:06:17,230 --> 00:06:17,860 comment. 76 00:06:18,320 --> 00:06:19,880 Hear hear. 77 00:06:20,020 --> 00:06:21,670 Gene Ann's opinion. 78 00:06:22,450 --> 00:06:23,270 So J. 79 00:06:23,350 --> 00:06:25,300 Ansip, take things. 80 00:06:25,720 --> 00:06:33,100 Uh, Project Project Parcheesi here and let's do it and here. 81 00:06:33,610 --> 00:06:35,080 So we unzipped here. 82 00:06:35,080 --> 00:06:39,550 As you can see, there is a Node.js extension of it here and our file size. 83 00:06:39,550 --> 00:06:41,530 It's turned the same here. 84 00:06:42,130 --> 00:06:49,240 So once uncompressed it on compress, the file is no longer saved the entire GS6 extension. 85 00:06:50,140 --> 00:06:55,510 But with the town extension, is that so awesome to see that it's returned to its original size? 86 00:06:56,210 --> 00:06:57,160 Uh, here. 87 00:07:00,270 --> 00:07:06,870 And try doing a long list to confirm this, it's for, um, not nothing than the Jesus panels to be 88 00:07:06,870 --> 00:07:08,160 used except zip file. 89 00:07:08,160 --> 00:07:08,550 See it. 90 00:07:09,570 --> 00:07:10,590 Uh, so. 91 00:07:11,720 --> 00:07:18,210 We have become compressed, as I said earlier, if to and here and there, often all the. 92 00:07:18,850 --> 00:07:25,120 Use compression utilities and Lennox is busy too, which works similarly to Jersey but has better compression 93 00:07:25,120 --> 00:07:29,950 ratios, meaning that the resulting file will even be smaller than that here. 94 00:07:30,550 --> 00:07:33,040 Actually, we closed that Coakley tonight, right? 95 00:07:34,340 --> 00:07:38,540 Oh, yes, because that calculator and a calculator here. 96 00:07:38,960 --> 00:07:49,430 So now we will zipped these files again here, so be easy to, uh, take Bill's project that heart here 97 00:07:50,120 --> 00:07:52,310 and the list and click here. 98 00:07:52,320 --> 00:07:57,050 As you can see here, it's almost four hundred eighty eight bytes here. 99 00:07:57,590 --> 00:08:03,170 So now that's calculated 10 nine nine three six zero. 100 00:08:04,820 --> 00:08:09,140 And divide by four eight eight. 101 00:08:09,140 --> 00:08:15,110 Here, as you can see, there is almost eight hundred, um, eighteen times. 102 00:08:16,790 --> 00:08:26,420 Um, our file is smaller than our general file, so but in a previous case, it was one hundred more 103 00:08:26,420 --> 00:08:30,290 than one hundred, uh, seventeen here, seventeen here. 104 00:08:30,680 --> 00:08:33,590 So uh, when you uh. 105 00:08:34,960 --> 00:08:42,520 To a long listing, and you can see the bishop has compress the file just, uh, down to of Solomon 106 00:08:42,520 --> 00:08:47,380 by sea announcement that the file extension is no to be easy to hear. 107 00:08:47,830 --> 00:08:57,310 So to uncompressed the compressed file used in, uh, b unzip tool and take this project to be easy 108 00:08:57,310 --> 00:08:57,910 to hear. 109 00:08:58,300 --> 00:08:59,950 And this s here. 110 00:08:59,980 --> 00:09:03,640 And as you can see it on file sizes here. 111 00:09:04,810 --> 00:09:05,170 So. 112 00:09:06,520 --> 00:09:10,810 We can use the compress and this will I want to show you lastly here. 113 00:09:11,680 --> 00:09:12,760 Uh, so. 114 00:09:16,430 --> 00:09:22,160 The compress, um, the final, you can use the compressed air to compress the file here. 115 00:09:22,610 --> 00:09:28,010 This is probably the least commonly used compression utility, but it's easy to remember to use it. 116 00:09:28,340 --> 00:09:32,370 Simply enter the compress pulled by the file name. 117 00:09:32,390 --> 00:09:41,150 For example, take tech year project that Tanya here and its out here. 118 00:09:41,330 --> 00:09:47,450 And as you can see, it's not much of compression here, as I said earlier in line nine three six zero. 119 00:09:48,380 --> 00:09:53,110 They might be, uh, twelve four hundred and twenty years. 120 00:09:53,720 --> 00:09:57,630 And as you can see here, it's smaller than just, uh, thirty one times here. 121 00:09:58,100 --> 00:10:03,050 So not the not that the compression utility reduced size of file. 122 00:10:03,080 --> 00:10:04,880 Um, here. 123 00:10:04,880 --> 00:10:10,940 Uh, also that the file extension now is part z here with the uppercase zero. 124 00:10:11,660 --> 00:10:19,880 So to decompress the same file, just compress, you know, just use uncompressed here and compress 125 00:10:19,880 --> 00:10:25,130 here and then your file name, thick pins project that's here. 126 00:10:25,910 --> 00:10:28,880 And oh, as well. 127 00:10:34,390 --> 00:10:34,650 Yeah. 128 00:10:35,710 --> 00:10:42,580 So you can also use the genes, if you knew what was a command with files that have been compressed, 129 00:10:42,700 --> 00:10:45,790 uh, with compress commentate. 130 00:10:46,090 --> 00:10:54,070 Just keep in mind so we can create a bit by bit or physical copies of the storage devices as well here, 131 00:10:54,610 --> 00:11:01,270 uh, just within the world of information security and hacking while archiving common sense, uh, above 132 00:11:01,270 --> 00:11:11,200 the list in its usefulness so that the the command makes a bit by bit copy of a file, a file system 133 00:11:11,200 --> 00:11:14,350 would have an entire entire hard drive here. 134 00:11:14,800 --> 00:11:17,650 So this means that anyone deleted files are copied. 135 00:11:17,860 --> 00:11:24,490 Yes, it's important to know that your deleted files may be recovered or recoverable near making for 136 00:11:24,490 --> 00:11:26,710 easy discovery and recovery. 137 00:11:27,280 --> 00:11:31,960 So deleted files will not be copied with the most logical copying utilities such as them. 138 00:11:32,740 --> 00:11:42,160 Copy here and um, one once a hacker has owned a target system that they deem common with all of them, 139 00:11:42,490 --> 00:11:47,230 uh, to copy the entire hard drive or a storage device to their system. 140 00:11:47,920 --> 00:11:55,030 So in addition, those people whose job is to catch hackers, namely forensic investigators, will likely 141 00:11:55,030 --> 00:12:01,240 use it is common to make a physical copy of the hard drive with related files and other artifacts that 142 00:12:01,240 --> 00:12:04,840 might be useful for finding evidence against a hacker. 143 00:12:05,500 --> 00:12:11,170 It's critical to note that the DDR command shall not be used for typical day to day copying of files 144 00:12:11,170 --> 00:12:13,900 and storage devices because it's very small here. 145 00:12:14,320 --> 00:12:18,130 Other commands to, uh, do the job faster and more efficiently. 146 00:12:18,640 --> 00:12:25,150 So it is through the excellent when you copy it, when you need a copy of a storage device without filesystem 147 00:12:25,150 --> 00:12:29,800 or other logical structures, such as in a forensic investigation here. 148 00:12:30,130 --> 00:12:35,590 So they give is the input file here in the input file. 149 00:12:36,280 --> 00:12:40,090 Uh, here and off is the output file. 150 00:12:41,080 --> 00:12:48,190 So if you wanted to make the physical copy of your flash drive, assuming your flash drive is, uh, 151 00:12:48,220 --> 00:12:56,170 8TB here and then input file is going a bit dev SDB, this is your flashback flash drive and output 152 00:12:56,170 --> 00:13:00,160 file is your the file, which you want to copy bit by bit. 153 00:13:00,160 --> 00:13:09,980 Your flash drive here is in this case, for example, it will then form here Carly and our flash copy 154 00:13:10,820 --> 00:13:13,050 copy security secrets here. 155 00:13:14,470 --> 00:13:16,140 And let's, uh, here. 156 00:13:16,240 --> 00:13:18,930 So let's, uh, break down this comment. 157 00:13:18,960 --> 00:13:22,240 You so tidy your physical copy command. 158 00:13:22,870 --> 00:13:31,390 So if this is your input file and with they, Steber is representing your flash drive in the category 159 00:13:31,870 --> 00:13:34,600 directory and off here. 160 00:13:34,840 --> 00:13:36,580 The desired design. 161 00:13:36,580 --> 00:13:37,990 That's your output file. 162 00:13:38,350 --> 00:13:40,090 And uh, here. 163 00:13:40,120 --> 00:13:42,020 Uh, roll it home call. 164 00:13:42,030 --> 00:13:46,270 The secret here is the name of, uh, the file you want. 165 00:13:46,270 --> 00:13:54,670 Copy to the bicycle copy to form a complete explanation of the Linux system design, uh, design item 166 00:13:54,670 --> 00:13:55,780 or authorize. 167 00:13:56,110 --> 00:13:58,810 It will be discussed in the later lectures you. 168 00:14:02,630 --> 00:14:09,590 So Linux has a number of commands to enable you to combine and compress your files for easier transfer. 169 00:14:10,560 --> 00:14:17,160 So therefore, campaigning for a star is the command of choice, and you have at least three utilities 170 00:14:17,160 --> 00:14:18,360 for compressing files. 171 00:14:18,540 --> 00:14:27,300 These are GZIP peasy to and compress, so are with different compression ratios so that the command 172 00:14:27,300 --> 00:14:29,260 goes above and beyond. 173 00:14:29,550 --> 00:14:36,500 It enables you to make a physical copy of storage devices without a logical structure, such as a file 174 00:14:36,510 --> 00:14:40,860 system, allowing you to recover such artifacts as deleted files.