I am compressing 3 text files around 80 bytes each by a python code. I start with the following size of the folder:  And when I compress it, it's the following size:  It appears to be bigger than the original folder. Isn't it supposed to be compressed? The 3 files are some basic NotePad text files.  Why is the compressed folder bigger?
123597
I have a text file that is 19 bytes in size and having compressed the file using zip and 7zip, it appears to be larger. I had a read of the question on  as well as  but considering the file is not already compressed I would have expected further compression. Attached is a screenshot.    EDIT0  I took the example further by creating a file that contained random data as follows dd if=/dev/urandom of=sample.log bs=1G count=1 and attempted to compress the file using both zip and 7zip however there were no compression gains. Why is that?
116431
What sets the size of the tmpfs? (On my machine it resides in /dev/shm) I can see its entry in /etc/fstab, but no notation of its size. When checking with df -h, it seems to be half the size of the physical memory installed in the system. Is this the default behavior?  Also, what happens if it gets full? Does it expand dynamically forcing other running programs into swap? Does tmpfs itself moves into swap partition?   Finally, what takes priority into the memory tmpfs or applications? i.e., if I have tmpfs sufficiently full (like 40% of the physical memory) and I have programs that requires 70% of the physical memory, which one gets the priority?
83370
Let's say I have a file that's 4'x12' and represents a space on an actual wall. I want to open certain files (of different sizes) and drag each file into the large file in order to arrange the images correctly on the computer before physically hanging the framed finals.  When I drag a new image into the larger file, the new image's size and the size of its copy don't match. That is, Say I drag an 8x10 into the large file, well on the large file (trying to control size with guides and rulers) the new image is some other size, but not the right one.   What am I doing wrong? How do I make sure that when I click and drag the new image that it will be properly represented?
116899
On my Amazing 2GB EeePC Surf, I have no more space left!  This is quite normal, and it happens every now and then. Just delete a few large, unneeded files and everything should be good, right?  So I go and find a 2MB file in /tmp, and rm -rf it. Check free space again, and -- still nothing?!  I had to remove about 30MB of files before it registered some free space.  Now, my question is, what's up with this strange behaviour?
14007
How can I quickly create a large file on a Linux () system?   will do the job, but reading from /dev/zero and writing to the drive can take a long time when you need a file several hundreds of GBs in size for testing... If you need to do that repeatedly, the time really adds up.  I don't care about the contents of the file, I just want it to be created quickly. How can this be done?  Using a sparse file won't work for this. I need the file to be allocated disk space.
92334
When I do ls -l I get this:  calico@A000505:~/Documentos$ ls -l total 2020 -rwxr-xr-x 1 calico calico    8559 2010-11-16 11:12 a.out -rwxrw-rw- 1 smt    smt    2050138 2010-10-14 10:40 Java2.pdf -rwxrw-rw- 1 ocv    ocv        234 2010-11-16 11:11 test.c   But what does the "total 2020" mean? I only have 3 files so it's not the number of files or directories, and I guess it's not the size either. So what is it?
37891
I have a large number of zip files that were compressed using the zip command. I would like to recompress them with the -9 flag to improve the compression ratio. Does anyone know if that can be done without manually decompressing and then compressing.  PS. I need to keep them as zip files since they are served to windows users( and as such have white spaces in their names)
93860
On Windows 7, I have a directory containing the following four files:   xxx.txt xxx.txt2 xxx2.txt xxx2.txt2   With the file have more than 3 character as a file extension, the behavior of the wildcard * seems odd:  dir *.txt  10/13/2014  04:14 PM                 6 xxx.txt 10/13/2014  04:17 PM                 6 xxx2.txt 10/13/2014  04:17 PM                 6 xxx2.txt2 10/13/2014  04:14 PM                 6 xxx.txt2            4 File(s)             24 bytes            0 Dir(s)   6,660,980,736 bytes free   I would expect to see only the two files with txt extension and not the ones with txt2 (like it would on a Linux machine). Does MS-DOS ignore the truncate the file extension to 3 characters or does it add automatically another wildcard at the end? If I want to delete only the files with txt extension and not the one with txt2, which command should I use? Thanks
32083
To save some disk space I figured it might be a good idea to compress the VMware vSphere Client I have installed because I almost never use it.  I was surprised to find that it had the exact opposite effect on free disk space. I tracked it down further and found that it is related to compressing the Help folder. The loss of disk space is not reflected in the folder size.  I repeated the compress/decompress cylce three times to make sure another program did not coincidentally take up the disk space. It might be notable that the folder contains a large number of small files (≈ 30k).  Why is that so and can I somehow find other folders that I should decompress to save disk space?    Without compression:     With compression:
3127
When I sum up the sizes of my files, I get one figure. If I run du, I get another figure. If I run du on all the files on my partition, it doesn't match what df claims is used. Why are there so many different figures for the total size of my files? Can't computers add?  Speaking of adding: when I add the “Used” and “Available” columns of df, I don't get the total figure. And that total figure is smaller than the size of my partition. And if I add up my partition sizes I don't get my disk size! What gives?
84769
I have a folder with 36,348 files gz files. I want to unzip all of them.  Running:   gunzip ./*   results in   -bash: /usr/bin/gunzip: Argument list too long   What's the easiest way to get around this?
80514
Here's my problem  I'm trying to do a cleanup of my hard drive, and I'm constantly seeing this scenario:  (1) Aggregate folder size: I check the folder size viewing properties right clicking the folder  (2) Individual folder/file sizes: I check the individual file/folder sizes belonging to that folder viewing properties on the individual file/folder sizes, and then adding them up (with hidden and system files shown).   These two figures are always different, sometimes by a large margin.   For instance, my C drive now, by method (1), shows a consumed space of 42.4 GB.   However, by method (2), by inspecting the respective files/folders, the total consumed space adds up only to 33.1 GB. This is a 28% discrepancy (over the smaller file size) and I have no idea where the rest of the space is going.   My hard drive is constantly in danger of being full (it's bootcamp on a mac with 50 GB of partitioned space), and there's not much I've got installed in terms of software, nor do I have large media files like movies, downloads, temp files, application temp files, torrents, etc.   Most of it's just consumed by the files in C:/Windows, but last I checked, I don't know enough to know which files to delete, and I've heard that you really can't do anything about the space boggling winsxs and system32.   Can you guys recommend a starting point to free up disk space?  Thanks!!  Baggio.
66862
Once I have all the files I require in a particular folder, I would like my python script to zip the folder contents.   Is this possible?   And how could I go about doing it?
45440
Under my current directory, I have two sub-directories:  dir_1/    - file1.png    - file2.png    ...    - fileN.png  dir_2/    - fileA.txt    - ...    - fileZ.txt   When I tar compress the two directories by :  tar -cvzf result.tar.gz dir_1/ dir_2/    I got result.tar.gz but it maintains the directory structure. I mean when I extract the result.tar.gz, I got dir_1 &amp; dir_2 again.  How can I tar compress so that the directory structure is not remained, which means when I extract the tar.gz file, I only get files   result/    file1.png     ...     fileN.png     fileA.txt    ...    fileZ.txt
33546
I'm trying to move some data over and to start with I'd like to make sure that the size is ok. I run into a problem however, if I check the folder with   du -sh  myfolder/ 780M    myfolder/   but   du -sh * .. 71M     myfolder ..   I thought it might be something to do with hidden files but this particular folder does not have any inside.  Am I missing something?
30705
Which sequence of commands will tell me which files are the largest starting from a particular directory, including all sub directories? I want to know where all the space went.  Preferably just with regular unix'y commands.  If possible, try to keep it compatible with Sun OS 5.10 (perhaps in addition to regular Linux answers, not as a replacement, to keep it as general as possible.)
61651
I have 2 big csv files, file1.csv which looks like this  1,2,3,4 1,4,5,6 1,7,8,9 1,11,13,17   file2.csv which looks like this  1,2,3,4 1,7,8,9 2,4,9,10 13,14,17,18   These are just random numbers that I made up, basically the two numbers where identical, and sorted. I want to compare file1.csv and file2.csv and then copy the rows that are present in file1.csv but not in file2.csv to file3.csv. the delimiter is comma obviously  I tried   comm -2 -3 file.csv file2.csv &gt; file3.csv   and I tried  diff -u file.csv file2.csv &gt;&gt; file3.csv   Both didn't work because file3 was bigger than file1 and file2. I tried different diff and comm commands, sometimes it's bigger than file2 and about the same size as file file1, I know that file3 has to be significantly  less in size than file1 and  file2. And of course I looked at file3, not the results I wanted  At this point, I know it could be done with diff or comm but I do not know the command to use.