I'd like to know the distribution of file sizes under a certain directory.
Please note: distribution of file sizes, not size of a directory. That means I want to know there are 25 files of 60 bytes, 50 files of 12587 bytes, 2 files of 57kbytes, and so on.
Bonus points if the data could be gathered via command line (eg. on a remote system) in a format easily useable to produce graphs.
JDiskReport enables you to understand how much space the files and directories consume on your disk drives, and it helps you find obsolete files and folders. The tool analyses your disk drives and collects several statistics which you can view as overview charts and details tables.
Here’s how to install jdiskreport in Ubuntu Linux using PPA.
I'm trying to create a graph of the distribution of file sizes on my ext4 system. I'm trying to write a script to scrape this information from my computer somehow. I don't care where the files are stored in the directory structure, only how much space each takes up.
I'm working on a Android project where I need to build my layouts based on a JSON layout file. This same file is also being used on an iOS app.
I am running the following command on an ubuntu system:
dd if=/dev/random of=rand bs=1K count=2
However, every time I run it, I end up with a file of a different size. Why is this? How can I generate a file of a given size filled with random data?
Are there any tools in Linux for graphically visualizing the distribution of file sizes under a given path?
I am looking for something along the lines of WinDirStat, but on Linux, e.g. see snapshot below:
Also, are there any similar tools that would show such distribution on a terminal?
I am using Lubuntu 12.04 with default ext4 file system, and PCManFM file manager.
I understand that a file's size on disk is usually larger than the file's actual size, because of disk sectors.
But I am consistantly finding that the size on disk is 10X as large as the actual file size. That seems a little excessive.
In Windows one used (int handle) and chsize(handle,newsize) to either truncate or extend the size of a file.
Now in Ubuntu / Unix one uses (FILE* fp) for most IO. What is the equivalent FILE* function for chsize ?
Hi there, am new to linux and shell script,am trying to write a shell script to find the size of a particular log file and if the log size grows, script should mail the changes to the administrator or a any user so script should monitor the log file continuously in a time interval, how can i do that?