hello youtube and welcome to another
windows tutorial so in this video i'll
show you
how to zip and unzip files
in folders in windows 10 using
just the command line and not
any third party software so
are you ready let's get started
so the usual way to compress and
actually to zip at unzip files in
windows then
is just to right click on in the folder
or file
and you get here to your send to
and compressed files okay so here i'm
using french version but
it doesn't matter here you can see send
to and you choose compressed folder in
order to create
actually a compressed file so
for example i created a zip file for
this image here
it's the easy way to do it just with
your mouse
but here i'll show you how you can do
that using the command
align so in order to do that you have to
invoke the command line
so you can invoke it using just some
short keys in your keyboard so you can
just
hit the windows key plus the r key
in your keyboard and you get here this
window here the run window
and you open the cmg
and you hit ok and you get the command
line as you can see here
okay or you can just
also use another shortcut windows key
and this time not r key but x key
and you get here this menu
or you can also choose for example here
run or execute and
same thing cmg and you will get your
prompt
okay so here i get my command line here
then i have to navigate to my folder
which contains the files i want to
zip so the folder here is on my desktop
so i have to change
directory using command cd
to desktop slash demo
here we go so let's see now the files
on this folder using the command dial
so here you can see i have four
jpeg images so let's see that i want
actually to compress this for
jpeg images which exist
on my folder as you can see here so this
is the demo folder
and those are the four images
so in order to zip them i will use the
command
tar so tar is a very known command
in the unix linux world or operating
systems it's already
actually it comes from there so in order
to compress
or actually to zip not to compress to
zip the files
in this folder i will use this command
tar
minus a for archive minus c
because i want to create actually an
archive
and minus a f for the file
and here i will give the name of the
file that i want to create
so you can call it whatever you want
it's a zip file
so i will call it for example compress
dot zip so this is the
the file zip file that will contains all
the four jpeg images
and here you have to specify the files
that you want
to zip so if you want for example to
save just one file you have to provide
the name of it
zip dot jpeg but here i want
all the files that have an extension
jpeg
so i will just replace the file name by
after x so asterix here means all the
files or all the name of the files
and here that have extension dot jpg
here we go i will hit enter so i have no
error which is a good sign
so let's verify now the content of this
file
using of this folder actually using
the dire command and here you can see
another file has been created called
compressed.zip
so let's open actually this folder here
and here we go now you can see we have
successfully created our compressed zip
file
and normally inside it
it will be all the four images here so i
can verify that using
any third-party software so here i'll be
using winrar
so let's open it here we go as you can
see
i have here all my four
jpeg images so the operation
has been successful because i compressed
all these
files here so now let's do
the inverse of that let's
unzip all this compressed.zip file
in this folder so first of all let me
delete all these files
so i will send them
to the trash okay now i will
unzip this file in order to to get
back the four jpg images so i will do
that
also using the command line okay so this
time i will use the same command
but instead of minus a minus c i don't
want to create
an archive but i want to unzip so i'll
use
minus x this time and here
the file i have to specify it which is
compressed.zip and here i don't need to
provide the files names
because i have only one file in this
directory
so let's execute this command here we go
i have no error which is always a good
sign
so let's see now the content using
command dial
here we go you can see i get back all
four files let's verify that in windows
explorer
as you can see now i have all my
four images that were actually
unzipped from this zip archive
so with this simple star command i
successfully created an archive or zip
file
and also i unzip it all
this for files okay
so just remember to use this command in
your programs if you want to do it
better way of course you can get
actually a help for this command you
just type
tar help
so you can see here little memo of these
commands
so tar or psd manipulate archive files
so the first option must be a mod
specifier
so the minus c it means to create minus
r to add
minus t to less so if you want to list
for example
all the files in archive you can just
use minus t
and minus u to update minus x to extract
because we use it in actually our
last command here
so those are all the commands that you
can use or actually options
that you can use with the stark met
okay
so that was just a brief view
of this command
that exists in windows 10 and which is
unknown but remember this command
only exists in windows 10 and later
so if you are using for example windows
xp or windows 7
you will not get this command tar
okay you have in this those case to rely
on any third party software like
winrar or winzip if you want to compress
or actually to zip or unzip your files
so as always i hope it has been
informative for you
and i want to thank you for viewing
bye