When I used WinRAR to extract tgz files, I can right click the file and choose "extract here" and it puts it in a folder by the same name as the archive file's name. For example, H123.tgz would be extracted into a folder named H123. From the command line, how can I do the same thing? I can do WinRAR extract *.tgz and it puts the files in the root. I want to extract more than one file so I don't want to specify the folder name, I just want it to automatically extract it under a folder with the same name as the file. Can this be done?