HACKER Q&A
📣 stvkoch

How would you improve this CLI tool for finding terminal commands?


How would you improve this CLI tool for finding terminal commands?


  👤 Someone Accepted Answer ✓
FTA:

  $ cf find large files older than 30 days

    > find . -size +100M -mtime +30 -type f
      find / -size +100M -type f
      find . -mtime +30 -type f -delete

    [arrows: navigate] [enter: select] [q: cancel]
So, when asked for commands to find files, this tool may suggest a command that deletes files (and, potentially, massive number of them)?

If so, I would improve the tool by deleting it from my system. This looks way too risky for my taste.

In general, if I don’t know what each of these three options do, how would I choose between them?