How to count number of files in a directory that are over a certain file sizeHow do I count all the files...
QGIS Welcome page: What is 'pin to list' for?
What would be the ideal melee weapon made of "Phase Metal"?
How can one write good dialogue in a story without sounding wooden?
A DVR algebra with weird automorphisms
Robbers: The Hidden OEIS Substring
Optimising Table wrapping over a Select
Does Google Maps take into account hills/inclines for route times?
Why does Hellboy file down his horns?
affect vs effect
Is it rude to tell recruiters I would only change jobs for a better salary?
The monorail explodes before I can get on it
Keep milk (or milk alternative) for a day without a fridge
As a DM, how to avoid unconscious metagaming when dealing with a high AC character?
Why does resistance reduce when a conductive fabric is stretched?
Email about missed connecting flight compensation 5 months after flight, is there a point?
Filtering fine silt/mud from water (not necessarily bacteria etc.)
How the name "craqueuhhe" is read
Extract an attribute value from XML
Cubic programming and beyond?
Can I intentionally omit previous work experience or pretend it doesn't exist when applying for jobs?
During copyediting, journal disagrees about spelling of paper's main topic
How can I deal with a player trying to insert real-world mythology into my homebrew setting?
Are randomly-generated passwords starting with "a" less secure?
Why did my rum cake turn black?
How to count number of files in a directory that are over a certain file size
How do I count all the files recursively through directoriesFind files greater than X value, sort by size, show in ls formatWhat's the most resource efficient way to count how many files are in a directory?Count files in a directory by extensionget file size and line count at the same timeFind Directory if Number of files is over XFind files that match a certain size and modification time?How to count subprocesses that reached certain stateReferencing multiple files that are not a certain file type in a directoryRecursively count number of files in folders in tar fileHow to get the number of records in a directory that has .tsv extensionHow to count the number of bytes in a file, grouping the same bytes?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Is there a way to count how many files in a specific directory are over some file size? Say, 100 MB?
linux shell-script shell terminal command
New contributor
add a comment |
Is there a way to count how many files in a specific directory are over some file size? Say, 100 MB?
linux shell-script shell terminal command
New contributor
Possible duplicate of Find files greater than X value, sort by size, show in ls format
– muru
1 hour ago
Combined with unix.stackexchange.com/questions/4105/…
– muru
1 hour ago
add a comment |
Is there a way to count how many files in a specific directory are over some file size? Say, 100 MB?
linux shell-script shell terminal command
New contributor
Is there a way to count how many files in a specific directory are over some file size? Say, 100 MB?
linux shell-script shell terminal command
linux shell-script shell terminal command
New contributor
New contributor
New contributor
asked 3 hours ago
Travis TinerTravis Tiner
1
1
New contributor
New contributor
Possible duplicate of Find files greater than X value, sort by size, show in ls format
– muru
1 hour ago
Combined with unix.stackexchange.com/questions/4105/…
– muru
1 hour ago
add a comment |
Possible duplicate of Find files greater than X value, sort by size, show in ls format
– muru
1 hour ago
Combined with unix.stackexchange.com/questions/4105/…
– muru
1 hour ago
Possible duplicate of Find files greater than X value, sort by size, show in ls format
– muru
1 hour ago
Possible duplicate of Find files greater than X value, sort by size, show in ls format
– muru
1 hour ago
Combined with unix.stackexchange.com/questions/4105/…
– muru
1 hour ago
Combined with unix.stackexchange.com/questions/4105/…
– muru
1 hour ago
add a comment |
1 Answer
1
active
oldest
votes
Perhaps
find path/to/directory/ -type f -size +100M -printf 1 | wc -c
Or, if you want to limit the search to the top level directory only (without descending into subdirectories)
find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529923%2fhow-to-count-number-of-files-in-a-directory-that-are-over-a-certain-file-size%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Perhaps
find path/to/directory/ -type f -size +100M -printf 1 | wc -c
Or, if you want to limit the search to the top level directory only (without descending into subdirectories)
find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c
add a comment |
Perhaps
find path/to/directory/ -type f -size +100M -printf 1 | wc -c
Or, if you want to limit the search to the top level directory only (without descending into subdirectories)
find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c
add a comment |
Perhaps
find path/to/directory/ -type f -size +100M -printf 1 | wc -c
Or, if you want to limit the search to the top level directory only (without descending into subdirectories)
find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c
Perhaps
find path/to/directory/ -type f -size +100M -printf 1 | wc -c
Or, if you want to limit the search to the top level directory only (without descending into subdirectories)
find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c
answered 3 hours ago
steeldriversteeldriver
40.8k4 gold badges56 silver badges93 bronze badges
40.8k4 gold badges56 silver badges93 bronze badges
add a comment |
add a comment |
Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.
Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.
Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.
Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529923%2fhow-to-count-number-of-files-in-a-directory-that-are-over-a-certain-file-size%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of Find files greater than X value, sort by size, show in ls format
– muru
1 hour ago
Combined with unix.stackexchange.com/questions/4105/…
– muru
1 hour ago