zero length file entry
Hi,
I am reading a text, it says: Quote:
|
Zero length means that ls found nothing to list.
------------------ Steve Stites |
It's a name with a zero length file (not) attached. It's ok, linux is cool with that. If you don't want the name, you can usually delete it.
An example of where it is used is downloads. A zero length file is written my_download.mp4 the file is actually downloaded to my_download.mp4.part and moved to the proper filename when it's complete. |
Quote:
|
The file will have zero length initially. Until ls has generated enough buffered output to cause a write (the buffer will typically be 4KB), the file will still have zero length. I suspect that ls generates all the output and sorts it before writing anything, so the file will show as zero length.
|
Quote:
Second, the data that will be put in the file is still in memory - it is all buffered in the application. Now, if the directory has a LOT of files, (and this file is near the end of the list) you will see a non-zero length - but it still will not be complete until the last buffer is written. |
All times are GMT -5. The time now is 04:34 AM. |