command to reduce size of file/directory???

Hello,
I want to compress any given file or directory. I used
1)gzip
2)zip

But when I do "ls -l". I found that the zipped file is in fact greater in size than the original file.
Can you please tell me the commands which will show me the difference in its size.

This can happen if you are trying to compressa file which is all ready compressed. jpg files, exe files can similar results
Try to understand how compression works and you can figure out why

text file gives awesome result, I have compressed files by 97%.

hello sharadpisal,
do you mean to say that "gzip" had reduced the size of text file.
well, I did try it on a txt file.But still I got the .gz file to be a little greater in size than the real text file.
Can you please tell me the command you used to compress......