How to compress and extract the tar.gz files

You can compress a file or a folder with tar command. Its good to know that, file.tar.gz is the same with file.tgz.


File compression using tar command:

 tar -cvzf <name of tarball>.tgz /your file or folder directory


For instance to compress a file or folder you should type:

Tar -cvzf folder.tgz /home/user/folder


Tar -cvzf file.tgz /home/user/folder/file.txt


You can use tar cvzf instead tar -cvzf as well.


File Decompressing using tar:

To decompress or extract them, use the following command.


tar -xvzf file.tgz


tar -xvzf file.tar.gz


There is no priority using the flags.

 -z: Compress archive using gzip program

-c: Create archive (compress)

-v: Verbose i.e display progress while creating archive

-f: Archive File name

-x :extract


How to identify your Linux Kernel Version

In many cases it is necessary to know what Linux kernel we are using. Some of the tools or packages work on specific kernel version.

Locating your Linux Kernel Version:

Open up a terminal and type one of the following commands listed in bold text.

uname -a  (prints all information)

uname -r  (prints the kernel release)

uname -v  (prints the kernel version)

uname -o  (prints the operating system)


VMnet0 error after updating the Windows 8 to windows 8.1

I have updated my windows from windows 8.0 to windows 8.1. Right after that, I figured out that none of the VMware workstation 9, return the following error:

“The network bridge on device VMnet0 is not running. The virtual machine will not be able to communicate with the host or with other machines on your network.

Failed to connect virtual device Ethernet0.”


Firstly I recommend you to check your network adaptors, in windows 8.1; the Network Bridge Connection protocol has been unchecked. Please check that, and then restart your VMware workstation. Although before I check that, I upgraded my VMware Workstation to version 10, and after I got the same error, I fix it from the VMware network adaptors.

To do so just go to control panel –> Network and sharing center –>change adaptor setting and then chose “VMware Network Adapter VMnet1 and VMnet8” and in their properties, check the Network Bridge Protocol.




If it didn’t work, I highly recommend to reinstall Network Bridge Protocol, it should solve the problem,other wise just reinstall the VMware Workstation. I hope it works on your system as it worked on mine.