Posts: 2,211
Threads: 200
Joined: Jan 2024
Reputation:
17
02-16-2024, 12:24 PM
(This post was last modified: 02-17-2024, 08:17 AM by monsieur.)
find . -type f -name '*.mp3' -exec du -ch {} + |tail -1
Posts: 26
Threads: 2
Joined: Feb 2024
Reputation:
2
hmm, interesting. I've been using a du command to calculate the space usage (without knowing anything beyond that). Is this not the same tool?
du -s directory_name gives you the size of the directory.
du -sh directory_name would give it in human-readable units.
Posts: 2,211
Threads: 200
Joined: Jan 2024
Reputation:
17
Yeah it is
I don't really know much about it, but this command lets me calculate space of all .mp3 files stored on my SDD
Posts: 2,211
Threads: 200
Joined: Jan 2024
Reputation:
17
<nsprra> < chatter> fun story, I know a Ukrainian who fled when the war started because they're right by the warzone ❚ they went to france
<nsprra> < chatter> almost immediately moved back to Ukraine, right back to the warzone ❚ apparently France was too black for them
Posts: 2,211
Threads: 200
Joined: Jan 2024
Reputation:
17
<nsprra> hm
<nsprra> get your life sorted lads!
<nsprra> find . -type f -size +600M -exec ls -sh "{}" \; |sort -h