Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Tommi @ FOSDEM 🤯
@tommi@pan.rent  ·  activity timestamp 4 days ago

💾 The File Count Challenge 🔎

Have you ever wondered how many PDFs, images, videos, or particular kind of files you have on your device? It is the time to find out.

I am hereby proud to officially launch a Fedi-wide file count challenge, in exclusive partnership with the 2025-27 class of @xpub 👾

💁 How to participate

  1. Go to your main device (not mobile)
  2. Open the terminal
  3. Run find . | grep '.pdf$' -c (on Windows: gci -r | where Name -match '\.pdf$')
  4. Repeat the previous command, replacing “pdf” with any file format you are interested in sharing. We suggest: jpg, mp3, and png. 🔆 Bonus: html, js, ttf, odt, svg
  5. Take a screenshot of the output
  6. Share the screenshot on the Fediverse, using the #fileCountChallenge hashtag (please, copy-paste the actual text from the terminal in the image description/alt text)
  7. Add your (user)name and results to the scoreboard
  8. 🆒 Bonus: share the story explaining why you have so many/little files for one format.

🏆 Awards

There is a secret prize for the three people who have the most PDFs, JPEGs, and HTMLs. More info to follow.

Boost, share, fork… Do whatever you want, but please have fun while doing it.

I willl keep writing updates. Yaaaaaaay ⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️

#fileCountChallenge #fileCount #XPUB #challenge #terminal #Linux #cmd #CLI #find #grep #filesystem #file #files

find | grep '.pdf$' -c
2676

find | grep '.html$' -c
7292

find | grep '.md$' -c
8093

find | grep '.mp4$' -c
1386

find | grep '.jpg$' -c
20561

find | grep '.jxl$' -c
35

find | grep '.ttf$' -c
427
find | grep '.pdf$' -c 2676 find | grep '.html$' -c 7292 find | grep '.md$' -c 8093 find | grep '.mp4$' -c 1386 find | grep '.jpg$' -c 20561 find | grep '.jxl$' -c 35 find | grep '.ttf$' -c 427
find | grep '.pdf$' -c 2676 find | grep '.html$' -c 7292 find | grep '.md$' -c 8093 find | grep '.mp4$' -c 1386 find | grep '.jpg$' -c 20561 find | grep '.jxl$' -c 35 find | grep '.ttf$' -c 427
find | grep '.ttf$' -c
427

find | grep '.odt$' -c
637

find | grep '.svg$' -c
3737

find | grep '.mp3$' -c
150

find | grep '.js$' -c
38819

find | grep '.png$' -c
19199
find | grep '.ttf$' -c 427 find | grep '.odt$' -c 637 find | grep '.svg$' -c 3737 find | grep '.mp3$' -c 150 find | grep '.js$' -c 38819 find | grep '.png$' -c 19199
find | grep '.ttf$' -c 427 find | grep '.odt$' -c 637 find | grep '.svg$' -c 3737 find | grep '.mp3$' -c 150 find | grep '.js$' -c 38819 find | grep '.png$' -c 19199
  • Copy link
  • Flag this post
  • Block
sirodoht
@sirodoht@pan.rent replied  ·  activity timestamp 3 days ago

@tommi each command takes too long so I stopped at three 😅

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this comment
  • Block
Tommi @ FOSDEM 🤯
@tommi@pan.rent replied  ·  activity timestamp 3 days ago

@sirodoht You and your low-performance Mac… 🫠

  • Copy link
  • Flag this comment
  • Block
sirodoht
@sirodoht@pan.rent replied  ·  activity timestamp 3 days ago

@tommi hahaha exactly right

  • Copy link
  • Flag this comment
  • Block
Tommi @ FOSDEM 🤯
@tommi@pan.rent replied  ·  activity timestamp 4 days ago

Wow I just discovered that @liw asked something similar already!

https://toot.liw.fi/@liw/113000259103343157

  • Copy link
  • Flag this comment
  • Block
tux0r :openbsd:
@tux0r@layer8.space replied  ·  activity timestamp 4 days ago

@tommi @xpub PowerShell equivalent: gci -r | where Name -match '\.pdf$'

  • Copy link
  • Flag this comment
  • Block
Tommi @ FOSDEM 🤯
@tommi@pan.rent replied  ·  activity timestamp 4 days ago

Thanks @tux0r!

  • Copy link
  • Flag this comment
  • Block
nixFREAK
@nixfreak@masto.hackers.town replied  ·  activity timestamp 4 days ago

@tommi @xpub find largest files in directory
du -hs * | sort -rh | head -10

  • Copy link
  • Flag this comment
  • Block
Andy Piper
@andypiper@macaw.social replied  ·  activity timestamp 4 days ago

@tommi @xpub WHAT WILL I GET IF I WIN

  • Copy link
  • Flag this comment
  • Block
Tommi @ FOSDEM 🤯
@tommi@pan.rent replied  ·  activity timestamp 4 days ago

@andypiper @xpub SURPRISEEE

  • Copy link
  • Flag this comment
  • Block
Log in

Bonfire Dinteg Labs

This is a bonfire demo instance for testing purposes. This is not a production site. There are no backups for now. Data, including profiles may be wiped without notice. No service or other guarantees expressed or implied.

Bonfire Dinteg Labs: About · Code of conduct · Privacy ·
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Code of Conduct
Home
Login