Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My environment is Ubuntu 14.04, the latest one anyway, perhaps 16.04 I don't know. It is a problem that has plagued me for years. I need to download and copy a C directory with GNU license, etc that contains perhaps a hundred code files. The directory is in a tarball file .tgz or .zip. I download it all right, it ends up in Downloads directory in my laptop and I can open it up by clicking on the thumbnail and I see all the files but I cannot get into it through the terminal. If I try cd directoryName.tgz or directoryName.zip it says it is not a directory. I can rename the directory leaving the files extension out but it does not help. I really cannot move it anywhere, can copy individual files only which is a chore and I simply at a loss what to do. Please help. Thanks, - A.
My environment is Ubuntu 14.04, the latest one anyway, perhaps 16.04 I don't know. It is a problem that has plagued me for years. I need to download and copy a C directory with GNU license, etc that contains perhaps a hundred code files. The directory is in a tarball file .tgz or .zip. I download it all right, it ends up in Downloads directory in my laptop and I can open it up by clicking on the thumbnail and I see all the files but I cannot get into it through the terminal. If I try cd directoryName.tgz or directoryName.zip it says it is not a directory. I can rename the directory leaving the files extension out but it does not help. I really cannot move it anywhere, can copy individual files only which is a chore and I simply at a loss what to do. Please help. Thanks, - A.
P.S. The same thing is Win-10.
Seriously??? YEARS on this?
A .tgz or .zip file is A FILE...not a directory. Until you UNzip it, you can't do anything with it. The file manager will let you view the contents, but only VIEW...to modify/change, you have to extract. And if you're in the file manager, why can't you select multiple files???
Did you try running "unzip <name of zip file>", or "tar xvfz <name of .tgz/tar.gz file>", and see what it does???? Very first hit in Google for "how to unzip a file in linux" is: http://askubuntu.com/questions/86849...m-the-terminal
As stated the file browser creates a virtual directory when you click on the tar/zip file where you can view the directories/files inside and extract one or everything as desired. This allows you to view the contents without actually extracting them which can be very convenient. If you want to use the termnal to access the contents then you have to really extract them either by the browser or tar/unzip command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.