Find the answer to your Linux question:
Results 1 to 2 of 2
I working my way through the book "Linux + Guide to Linux Certification" and was shown the command " Code: compress -v samplefile samplefile2 ". When I try to duplicate ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2010
    Posts
    122

    the compress utlity


    I working my way through the book "Linux + Guide to Linux Certification" and was shown the command "
    Code:
    compress -v samplefile samplefile2
    ". When I try to duplicate this command in my termianl this is what I am getting.

    [root@FedoraDesktop ZipTest]# ls -l
    total 38812
    -rwxrwxrwx. 1 garrett garrett 39739613 Jan 13 19:56 SampleFile.mp3
    [root@FedoraDesktop ZipTest]# compress -v SampleFile.mp3
    SampleFile.mp3: No compression -- SampleFile.mp3 unchanged
    [root@FedoraDesktop ZipTest]#
    Any ideas? Thanks.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    Simple. mp3 files are already compressed, and the algorithms that the compress command uses cannot improve upon that. If you were to use bzip2 instead, you might get a little compression of the data, but not much I think. Try using a text file next time. You will find that works better.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •