LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-17-2014, 02:49 AM   #1
azheruddin
Member
 
Registered: Dec 2011
Posts: 83
Blog Entries: 1

Rep: Reputation: Disabled
File Compression


Hello All,

I have one file around 20 MB which I need to compress with the same name with same extension as the original one..
say

filename Size
jkdhf_dmsbf_20130324.xml 20MB
jkdhf_dmsbf_20130324.xml 5MB

If use Zip/tar then the extension is getting change which should not be because the Destination expection same filename with the XML extension.
 
Old 04-17-2014, 03:21 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

you can use mv to change the name of the file to whatever you want. Eg
Code:
zip jkdhf_dmsbf_20130324.xml
mv jkdhf_dmsbf_20130324.xml.zip jkdhf_dmsbf_20130324.xml
There is nothing special about a file extension: it is merely a naming convention.

Evo2.
 
  


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
image file compression Tukatz Linux - Desktop 7 04-15-2014 07:50 PM
Slax with SquashFS-4 new compression algorithm and layered compression ratios? lincaptainhenryjbrown Linux - Software 2 06-19-2009 06:29 PM
Best compression of .mov file metallica1973 Linux - Software 3 03-30-2009 10:25 PM
File Compression sidra Red Hat 2 05-24-2007 02:45 PM
multiple file compression mandrake_linux Linux - General 0 04-12-2001 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:56 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration