Unix C++
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Command error

5 posters

Go down

Command error Empty Command error

Post by Nazneennazim Thu Mar 04, 2010 11:10 am

Compress command does not work. Is there an alternative?
Following is the error displayed
-bash: compress :command not found

Nazneennazim

Posts : 10
Points : 16
Join date : 2010-03-01

Back to top Go down

Command error Empty Re: Command error

Post by Christopher Thu Mar 04, 2010 11:34 am

use gzip command.

syntax

Code:
$ gzip <filename>
Christopher
Christopher
Admin

Posts : 240
Points : 429
Join date : 2010-02-26
Age : 35

https://unixcpp.forumotion.com

Back to top Go down

Command error Empty Re: Command error

Post by Christopher Thu Mar 04, 2010 11:36 am

to uncompress the file, use

Code:
$ gzip -d <gzfilename>
Christopher
Christopher
Admin

Posts : 240
Points : 429
Join date : 2010-02-26
Age : 35

https://unixcpp.forumotion.com

Back to top Go down

Command error Empty Re: Command error

Post by urvershi Thu Mar 04, 2010 11:37 am

'gzip' command can be used for compressing the file.
Syntax:
gzip filename

for more options visit
http://linux.about.com/od/commands/l/blcmdl1_gzip.htm

urvershi

Posts : 21
Points : 70
Join date : 2010-02-26

Back to top Go down

Command error Empty Re: Command error

Post by Nazneennazim Thu Mar 04, 2010 11:39 am

Have used the gzip command. Was just curious to know why compress command does not work.

quota-v does not work either.

Nazneennazim

Posts : 10
Points : 16
Join date : 2010-03-01

Back to top Go down

Command error Empty Re: Command error

Post by Christopher Thu Mar 04, 2010 11:46 am

"compress" command is a part of ncompress package. Some linux installations don't have this package by default.
Christopher
Christopher
Admin

Posts : 240
Points : 429
Join date : 2010-02-26
Age : 35

https://unixcpp.forumotion.com

Back to top Go down

Command error Empty Re: Command error

Post by Nazneennazim Thu Mar 04, 2010 1:38 pm

thanks

Nazneennazim

Posts : 10
Points : 16
Join date : 2010-03-01

Back to top Go down

Command error Empty Re: Command error

Post by DineshThangaraju Thu Mar 04, 2010 2:17 pm

To Uncompress a file.gz , we can also use

$ gunzip <filename>

DineshThangaraju

Posts : 18
Points : 19
Join date : 2010-02-26
Age : 35
Location : India

Back to top Go down

Command error Empty size after using compress command

Post by aarthi Fri Mar 05, 2010 6:59 pm

After compressing a file how to determine its size??
if we use commands like du -k filename it gives size in blocks...
when a file has compressed will the change in size be negligible???
when i compare them in blocks,size is same even after compression

aarthi

Posts : 12
Points : 22
Join date : 2010-02-26

Back to top Go down

Command error Empty Re: Command error

Post by Christopher Fri Mar 05, 2010 7:09 pm

try to zip a huge text file. for text files, compression ll be done upto 50%
Christopher
Christopher
Admin

Posts : 240
Points : 429
Join date : 2010-02-26
Age : 35

https://unixcpp.forumotion.com

Back to top Go down

Command error Empty Re: Command error

Post by aarthi Fri Mar 05, 2010 7:15 pm

Is thr any cmd to find size of the file in bytes????

aarthi

Posts : 12
Points : 22
Join date : 2010-02-26

Back to top Go down

Command error Empty Re: Command error

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum