I need help extracting .tar.bz2

I'm new to Linux; in fact, I started to use it before six months. So, I want help with extract command. I want to extract .tar.bz2 to a certain folder using a shell. I'm using the command "tar -jxvf filename.tar.bz2" but it's not working for me. Can you help me with the code? Thanks
