Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-27-2006, 01:00 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
Extracting .tgz and CLI-GUI Mismatch

I'm just a few days new to linux, and just came from Windows. I've been trying to make Half-Life 2 run on Ubuntu 5.10 with wine, and a certain problem has me stuck when trying to register a .dll with winecfg.

I need to extract a .tgz file, which contains the necessary .dll, into a certain directory. I have no problem finding the directory in the CLI, but when I uncompress the .tgz, it gives me a .tar file instead of the .dll and other contents. When I extract the file in the graphic interface, I get the necessary file, but I can't find the necessary directory (/root/.wine/drive_c/Program Files/mozcontrol).

Basically, why aren't the directories in the CLI and the GUI the same? Also, how do I properly extract a .tgz file in the CLI?
Old 03-27-2006, 01:22 AM   #2
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Rep: Reputation: 30
I believe to extract you use this

tar xzvf then the filename. Others will respond promptly, but this is just an idea of how to approach this problem.

Good luck!
Old 03-27-2006, 08:49 AM   #3
Senior Member
Registered: Nov 2005
Distribution: Arch
Posts: 3,106

Rep: Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299
Assuming you have the right file and not a Slackware package (tgz is short for tar.gz and also the extension for Slackware packages, kind of annoying) once you gzunzip it you get the tar file which is an archive containing the files. You use tar -xvf filename.tar Or as $Linuxnoob said you can use tar -xzvf filename.tgz to extract it directly. (The v is optional it just shows the files as it extracts them, see man tar for more details)

Originally Posted by great_magician
Basically, why aren't the directories in the CLI and the GUI the same? Also, how do I properly extract a .tgz file in the CLI?
I believe this is because the folder starts with a dot. In Linux a filename starting with a dot is a hidden file, it only shows up when you use ls with the -a option. Probably to see it on the GUI you have to find the option to show hidden files.

Also I see by the directory you posted that you are running as root. This is considered a Bad Thing security-wise, it also makes it easier to mess up your system. Consider making a user account for normal use with adduser username
Old 03-28-2006, 01:18 AM   #4
LQ Newbie
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, guys. You got me through the problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
boot CLI vs GUI weazy Linux - Software 2 08-04-2006 09:15 PM
CLI and GUI Question desmondlewissmith Linux - Software 1 01-20-2006 03:46 PM
Bash script - how to tell if in GUI or CLI? dive Programming 2 11-19-2005 02:12 AM
changing gui from cli twistedrhymes Linux - Newbie 3 06-14-2005 02:44 AM
can only change network with GUI, not CLI learnfast Linux - Newbie 2 05-03-2005 06:30 AM

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration