The following guide describes how to package and unpack files and directories on a Linux server
ZIP - packaging files and directories
zip -r nazwa_archiwum.zip catalog1 catalog2 ... plik1 plik2 ...
After the command and the "zip -r" parameter we specify the archive name, followed by a space after the names of directories and files that will be packed, for example,:
zip -r dokumenty.zip dokumenty cv.jpg
ZIP - unpacking files and directories
unzip nazwa_archiwum.zip
After the unzip command, we give the name of the archive in which the packed files are located, for example,:
unzip dokumenty.zip
TAR - packaging files and directories
tar -cvf archive_name.tar directory1 directory2 ... plik1 plik2 ...
After the command with the "tar -cvf" parameters, we specify the archive name, followed by a space after the names of directories and files that will be packed, for example,:
tar -cvf dokumenty.tar dokumenty cv.jpg
TAR - unpacking files and directories
tar -xvf archive_name.tar
After the command with the "tar -xvf" parameters, we specify the archive name. If we want to specify the place to which the files are to be extracted, we give the "-C" parameter and the target path after the archive name, for example,:
tar -xvf documents.tar -C / home / rafal / documents
TAR.GZ - packing files and directories with compression
To package files with compression you just need, that the tar command from the examples above will add the "z" parameter. Our command will then look like this:
tar -zcvf archive_name.tar.gz directory1 directory2 ... plik1 plik2 ...
tar -zcvf dokumenty.tar.gz dokumenty cv.jpg
TAR.GZ - unpacking compressing files and directories
The command has the following form:
tar -zxvf archive_name.tar.gz
If we want to add a path to the command to which the files are to be unpacked, just add the -C parameter and the target path, for example,:
tar -zxvf archive_name.tar.gz -C / home / rafal / documents
The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń…
Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji…
Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w…
You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania…
Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.…
The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy…