This will be for windows OS.
You will need some drivers installed.
Maybe just plugging your device into windows will download the right drivers. Probably not.
Other options for getting drivers are Samsung Kies software,its an 88MB download.
I think hemidall also has drivers. Heimdall
This should be the one you want: heimdall-suite-1.3.2-win32.zip
Unzip it and go to drivers folder, double click zadig.exe and choose samsung, and install the driver.
When you have think you have saome working drivers installed. Unzip the platform-tools folder I linked to previously.
Then, on your tab 2, go into settings, developer options and make sure USB debugging is selected. Then connect device to your computer.
Open up a command prompt, and change directory to the platform tools folder.
example: C:>cd C:/yourname/desktop/platform-tools
it should show C:>\yourname\desktop\platform-tools
then type adb
it scroll through a ton of text, that's good, now try adb devices. If it shows a serial number, you are all set.
you can then run the commands above.
But let us know how you make out with " adb devices".
If you get that far, I'll step you through the rest.