nedeľa 13. februára 2022

tar to differnt directory

tar -C




 [root@localhost ~]# tar xzfv Minecraft.tar.gz

-bash: tar: command not found


solution dnf install tar


1) tar to the same directory:


-extract:


[root@localhost ~]# tar xzfv Minecraft.tar.gz

minecraft-launcher/

minecraft-launcher/minecraft-launcher


2) tar extract to different directory


tar -C


[root@localhost ~]# tar xzfv Minecraft.tar.gz -C /mnt

minecraft-launcher/

minecraft-launcher/minecraft-launcher

[root@localhost ~]# ls /mnt

lvprac  minecraft-launcher


Žiadne komentáre:

Zverejnenie komentára