serieshilt.blogg.se

Jdiskreport which file to delete
Jdiskreport which file to delete




jdiskreport which file to delete

, will appear last, as it's the root node in the tree. You can choose to either show the file size or the number of files. Each perspective includes a pie chart, a bar chart, and a details table. Thus, present the directories with the most files last in the output. JDiskReport provides different perspectives about your disk drives: absolute and relative sizes, size distribution, distribution of modification dates, and distribution of types. Sort the list of directories, sorting the second field (fields split by a colon) numerically.For each directory found in (1), print its path (relative to where you are now), along with the number of files found within it, determined in (2).For each directory found in (1), find how many files are within that directory (and again, any sub-directories), by listing the files then doing a count of the number of lines outputted.Get a list of all directories (and any sub-directories) within the current directory.type d | while read dir do echo "$dir" : $(find "$dir" -type f | wc -l) done | sort -k2 -t ':' -n Printf "%d %s\n" $nfiles "$dir" | tee /dev/stderr # print the number of files here, to both stdout and stderr # accumulate the number of files found under the subdirectoryĭone < <(find "$dir" -mindepth 1 -maxdepth 1 -type d -print) # save the output in the positional parameters # invoke the recursive function for each one # loop over the subdirectories of this directory First things first, JDiskReport is a very easy-to-use utility software, and it comes with a very simple user interface that you will fall in love with. Nfiles=$(find "$dir" -mindepth 1 -maxdepth 1 -type f -print | wc -l) As you might have got from the name, JDiskReport is a java-based program that you can use to effectively analyze the storage space on your hard drive or SSD, if you are using Linux. # count the number of files in this directory only # call the recursive function, throw away stdout and send stderr to stdoutĬountFiles_rec "$1" 2>&1 >/dev/null | sort -nr From Shell: list directories ordered by file count (see article for explanations) :Ī one-liner (for the home-directory) : find ~ -type d -exec sh -c "fc=\$(find '\"" \ | sort -nr






Jdiskreport which file to delete