• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How to extract files to different directory using tar in Unix/Linux

    Most of us extract the compressed file in the same directory but what if you get into a situation you need to extract it at some other location?

    You just need to add one extra argument





    # tar -xzvf file.tar.gz -C /destination/path
    For eg
    # pwd
    /home

    # tar -czvf test.tar.gz test/
    So, now our test directory is compressed. let us extract it inside /tmp staying under /home
    [root@test home]# tar -xzvf test.tar.gz -C /tmp/
    # cd /tmp
    # ls -l
    drwx------. 4 test test 4096 Sep 28 12:46 test

    Easy and simple. Let me know your success and failures

    Follow the below links for more tutorials


    Deepak Prasad

    Deepak Prasad is an anonymous techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+

    Do you also have something to share here?

    Become an author and be a part of our GoLinuxHub Team, Click here for more information
    How to extract files to different directory using tar in Unix/Linux How to extract files to different directory using tar in Unix/Linux Reviewed by Deepak Prasad on Sunday, December 29, 2013 Rating: 5

    No comments:

    Powered by Blogger.