Share your knowledge at the LQ Wiki.
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 04-17-2014, 02:49 AM   #1
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..

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
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

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



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 > Forums > Linux Forums > Linux - Newbie

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

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