LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 08-21-2004, 05:26 AM   #1
raid517
Member
 
Registered: Feb 2002
Posts: 393

Rep: Reputation: 30
How on Earth to create compressed files in Linux?


Hi up until now I have only ever used the right click menu option in KDE to make and extract compressed archives. However since upgrading to KDE 3.3 all of my right click options to create and extract compressed files using Ark have been deleted. Now if I right click in a file I am presented with only a very few options - none of which are to create a compressed file.

So I decided to try searching and try to learn how to accomplish the task using the CL. However after reading the instructions found here and attempting to create a compressed file using these instructions, eg:

Code:
tar -czvf flints.tgz barney.txt fred.txt betty.txt
(of course subtituting these file names for my own file names) I am confronted by nothing. There is no compressed archive produced at all by using these commands.

Really what I would like to do is compress a folder, but the instrcutions here for this also do not work:

Code:
tar -czvf my-file/
The only thing that happens is I get insulted on the CL and called 'Cowardly' for attempting to create an empty archive. Erm, what?

How do I compress files and folders in Linux and how can I get my righ click (shell?) extensions back in this new version of KDE?

Life seems a lot more stressful without them.

Best regards,

GJ
 
Old 08-21-2004, 05:38 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
The below command looks like it should work, as long as the files barney.txt fred.txt betty.txt actually exist.
tar -czvf flints.tgz barney.txt fred.txt betty.txt

This command will fail:
tar -czvf my-file/
You need to provide a name for the file like this:
tar -czvf my-file.tar.gz my-file/

I don't know about the missing "right-click" options.
 
Old 08-21-2004, 06:01 AM   #3
Boris_SDC
LQ Newbie
 
Registered: May 2004
Location: London
Distribution: Debian
Posts: 8

Rep: Reputation: 0
Re: How on Earth to create compressed files in Linux?

Quote:
Originally posted by raid517
The only thing that happens is I get insulted on the CL and called 'Cowardly' for attempting to create an empty archive. Erm, what?
The message "tar: Cowardly refusing to create an empty archive" is implying that the program (not the user) is a coward for not creating the empty archive (if it helps, read "tar [is] cowardly refusing...")

Don't be so quick to take offence
 
Old 08-21-2004, 02:02 PM   #4
raid517
Member
 
Registered: Feb 2002
Posts: 393

Original Poster
Rep: Reputation: 30
OK thanks, but I sure miss all the right click stuff. ;(

GJ
 
Old 06-03-2009, 03:07 PM   #5
fuzorose
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Hi,
Try this

Code:
tar -czvf - flints.tgz barney.txt fred.txt betty.txt

Last edited by fuzorose; 06-03-2009 at 03:12 PM.
 
  


Reply


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
*.ace compressed files - how to open/extract? zivs Linux - Newbie 3 02-14-2005 04:29 PM
How do I download and unzip compressed files? Whatshisface Linux - Newbie 4 03-21-2004 01:33 PM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 10:05 PM
create .ico-files in linux ziggamon Linux - Software 2 08-21-2003 02:13 PM
gzip compressed files jamaso Linux - Newbie 4 01-13-2002 04:59 PM


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

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