All language subtitles for 021 Archiving files and directories-en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
ia Interlingua
ga Irish
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

1

In this section we're going to be looking at archiving and compassion.

2

The difference between archiving and compression.

3

So the objectives here are to understand the difference between these two.

4

And to learn how to archive compress and decompress files and folders.

5

Let me start by explaining the difference between the two terms archiving and compression I think started

6

a while back in the early days of Unix.

7

System administrators used to back up files and folders and put them on tapes.

8

These tapes will be stored away just in case the backup was needed at any point in time.

9

Say for example there was a system lost some files get lost or corrupted.

10

They would bring back the tape and would restore the files and folders that are needed.

11

Obviously that applies to a lot more than just files and folders.

12

So we're talking about databases for example.

13

But let's not complicate things too much so archiving in essence was only about taking a back up of

14

the files and folders that we were interested in.

15

However what would happen is that these files and folders would be copied to that tape and they would

16

still be the same file size and the same for their size as they were originally on the system.

17

So let's say for example I'm backing up my documents and My Documents are 20 megs in size.

18

For example if I back them up on a tape or I archive them on the tape they would still be the exact

19

same size 20 megs compression.

20

However as the name implies would compress the flaws in a way that they would take up less space.

21

So if I compress my documents they might end up for example being 15 makes instead of 20.

22

And that way they will take less space on my archive tapes and that would end up saving me money because

23

I wouldn't have to be buying more tapes.

24

I would be saving space on tapes and thus I'd be saving money.

25

And this is why it's very often that you're going to be seeing these technologies or these two commands

26

being used in conjunction.

27

It's rare that you see archiving being used without compression.

28

So that was the original purpose of archiving and compression.

29

However on top of that an ethical hacking.

30

We use it for slightly different purposes as well.

31

Here's the post exploitation tip for the section after the compromise a host.

32

It's very often that you will be needing to upload and download files if you remember the section on

33

package management.

34

I told you that Nessus is not installed by default on kalee.

35

As a matter of fact it's not installed by default on almost all Linux systems.

36

So let's say for example you come across a Linux system that you managed to break into your compromise

37

and you want to use it as a stepping stone C can scan another network using Nazis or unmap but unfortunately

38

these tools on are found on that system where you need to do in that case is get that tool and uploaded

39

on the compromised system.

40

Assuming for example that that system doesn't have internet connectivity which could be the case.

41

And some of corporate environments we discuss that's been argued before and I told you earlier and the

42

package management section that they were hearing back then about how we upload and download files that's

43

going to be for a different chapter in the course now we get to that.

44

So you will come across interviews where you would have to upload or download files or folders or tools

45

a compromise system and other scenario for example as you compromisers system but you don't have root

46

access you compromises as a regular user.

47

You will need to upload a privilege escalation exploit that will be an exploit that if you run will

48

give you root access.

49

You might also as an ethical hacker or as a penetration doesn't have to upload or download profiles.

50

So that would be as an ideal for example that you would be assigned to target and as a proof you need

51

to break into that target and create textfiles saying that you were there.

52

So the scenarios are endless really.

53

But what's really sure and certain is that you will definitely be in situations where you will have

54

to upload or download faster systems that are not connected to the internet so you cannot just browse

55

to anyone that you want and download files on that system.

56

You're going to have to do that using your colonics.

57

Usually the first option we go to if it's available as the SS H is pretty convenient it allows you to

58

log in remotely.

59

You can use it to upload files download files and do pretty much anything that you want.

60

The second option if S-sh is not available as a DTP So here I'm talking about turning your Linux box

61

into a web server.

62

Now there are many other ways that we discuss in advanced courses.

63

So for example if it's a Windows system you can take advantage of a script and polish if it's other

64

of systems how he can take advantage of TFT or FTB and so on.

65

Needless to say after I talked about oh that uploading one file at a time or downloading one file at

66

time is going to be a big hassle.

67

And this is what archiving and compression comes in handy.

68

So let's look at the archiving tool and the next archiving tool is called Tott which is short actually

69

for tape archive to create an archive.

70

You use tie see 48 to append an archive.

71

In other words to add files or for others to you archive that's already been created.

72

Use the option.

73

So tired or to list the contents of an archive without extracting it.

74

You just want to see what's in it.

75

You use tot T taught X is to extract the archive.

76

V is for verbose.

77

It gives you information on the progress on what's going on top.

78

F is used to specify the name of the file that you want.

79

If we want to compress our archive we use one of two tools usually either a zip or zip to Jesus is the

80

classic compression and Linux BS that too has more powerful compression but it takes a little bit more

81

time to compress.

82

Now frankly speaking the difference is negligible.

83

You wouldn't really notice any difference if you're working on small files.

84

You might notice a small difference if you walk in on far as of massive size.

85

But for our purpose the difference really is negligible.

86

So as you experiment more with Linux you will come across websites where you can download tools to play

87

around with and it's very often that you're going to find these tools compressed and archived and Jees

88

that format always a format.

89

Here are some examples that we're going to be using practically in a moment to create an archive.

90

You use the Taurasi like we said C is for create V is for verbose and F is for the filename.

91

So in this example I'm doing taht c v f the archive name whatever I choose to name it.

92

So in this instance calling it archive have taught and the files and directories that I want to archive

93

file one file to deal one and the two.

94

Now if you notice I change the colors of the first letters and this is just for you to be able to easily

95

spot the difference between archiving and compression and the different options that we're using.

96

You might also have noticed that I'm not using the minus here.

97

We've seen that one is being used all the time.

98

For example when using ls I'm using ls minus a L when I'm using or am I'm using odd minus odd F for

99

the options.

100

Torah is one of the very few tools that I don't have to use the minus one I'm using an option.

101

So carrying on to list the contents of an archive.

102

We said it's taught T and Vitthal verbose and F as the filename.

103

So notice that it's pretty much all constant.

104

The only thing changing is the first letter.

105

If I want to bend or add a file or directory it's Todd R..

106

That's the only thing that's changing via's still constant f still canceling the filename is constant

107

and whatever I'm adding at the end let's see how that looks like practically.

108

I've created three different directories and three different files.

109

Some like to start by creating the archive to do that.

110

I want to use that thought see create V for verbose and F for the file name and this case my filename

111

is archived.

112

Todd and whatever I want to archive did one dir to find one and file to because I've used the V option

113

which is for verbose.

114

I get a list of what's been archived.

115

I notice that automatically did one and it's subdirectory and the two and add subdirectory archived.

116

Now let me list the content of the archive just to verify what I have.

117

And for that I use the tired t to list and then the remaining is still the same.

118

The F and the Archive name perfect.

119

Now let's say I want to append my archive.

120

I forgot to add D.S. 3 and 5 3 append to my archive.

121

I use the auto option so taught by V.F. is still the same.

122

Like I have is still the same and whatever I want to add to my archive years 3 and 5 3 I will verify

123

that again using that thought.

124

T the F and the Archive name.

125

And here we go.

126

Now I have all the contents of my directory in the archive.

127

Let me keep it on the screen.

128

I'm going to create a directory called backup and copy my archive file into the backup directory.

129

Now I'm going to navigate to the backup directory and all I have in that directory is just the file

130

or the archive file.

131

And I'm going to show you now how to extract files and folders.

132

First of all let's say I want to extract only one file or only one folder.

133

I don't want to extract the entire archive.

134

I would still use the same command.

135

Tor X for extract.

136

The F which is still the same verbose filename the filename on the top and whatever I want to extract.

137

In this case 5:3 if I do an s or see that file 3 is not extracted.

138

Let me try that again with dier 3

139

if I do as I have the three extracted as well.

140

Excellent.

141

So you don't actually have to extract everything you can pick and choose whatever you want to extract

142

if I want to extract everything I say.

143

Todd x4 extract V.F. and the archive name.

144

And here we go.

145

Extract everything.

146

I'll clear the screen and I'm going to go back to the temp directory.

147

Let me show you what's on my desktop doing unless home desktop.

148

There's nothing that it's empty so let's say I'm now in my time that actually and I want to extract

149

my archive but I want to do that.

150

I wanted to extract that files to be on the desktop.

151

I don't want them to be in the time that actually do that.

152

I can specify the data to do what I want to extract using minus capital C option.

153

So the command is tied.

154

SDF archive name minus capital C and the destination directory.

155

So now everything that I extracted on my desktop.

156

Now let's say I want to archive and compress the files I'm going to start with the GC files to create

157

those.

158

I do.

159

Todd z and z will be always used when we're dealing with the GC files or is that if you are British

160

and the rest is going to be the same.

161

So that's the way to memorize these commands easily.

162

And this is what it looks like.

163

Todd Z.

164

C v f compressed dot dot dot.

165

GZ and the files.

166

I want to archive

167

if I want to use visit to instead of Z.

168

I use J and said exactly the same for the rest of the commands notice though that I do change the extension.

169

And here we go.

170

Now I have two different files compressed and zipped list again it's TV f if I want to list Jeezy files

171

I do Z CVF and if I want a list Baeza to I use J.

172

CVF

173

Let's see how the extraction works.

174

First I'm going to create a directory called Jeezy and I'll copy the compressed file to the directory.

175

Man I'm going to see neither the directory.

176

So if I want to extract.

177

You should know how to do that when out.

178

It's Todd Z for the GZ files and then x4 extract the.

179

And at.

180

And I can specify the file name if I want

181

or I can extract everything if I so choose.

182

I do I'll ask to verify that they go back and let me do the same thing with the busy easy file.

183

So I'm going to create a directory called visit

184

and this case I'm going to copy it to the directory.

185

I'm going to use the minus see option that we saw earlier.

186

So again Todd J.

187

This time because it's a busy busy file x4 extract the f the name of the file minus capital C and the

188

destination directory.

189

I do s to verify it.

190

By the way here's the cool thing that you might have noticed when I'm typing.

191

J.

192

Z F and I type the name on the file and I hit tab for auto completion tab will automatically complete

193

with the correct extension.

194

So if I'm using j.

195

It automatically completes the beezy to file.

196

If I'm using the Z X-Fi it automatically completes the GC file.

197

All right so that was it.

198

To see how we can upload and download these files to the victim machine.

199

You're going to have to wait for part two.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.