Today, I saw this question being closed as off-topic:
Can't delete file in /usr/bin on mac
The argument being that rm -rf
qualifies as "general computing hardware and software" rather than "software tools commonly used by programmers".
In the comments, it was described as "general-purpose file-system manipulation".
In essence,
OP wrote a program, thought it made sense to store it in /usr/bin
, then needed help to get back on the right track.
Other programmers may benefit from this question and its answer. Isn't that what SO is all about?
EDIT
In response to the argument that the question fails to satisfy the requirement (as quoted from the help center) "unique to software development":
Please note that the question involves a very specific folder. This folder is typically not accessed by common users; hence the restrictions on that folder. OP accessed the folder specifically because OP wanted to deploy software, developed by OP. To me, that's enough for the question to be "unique to software development."
The fact that the issue of deleting a file may be trivial to most of us, is irrelevant to the discussion. What may be trivial to you, can be helpful to others. Other developers, who stepped in the same pitfall of copying their own scripts into /usr/bin
.
Now does rm -rf sound like something the average non-programmer would use on a regular basis?
- if you're primarily using a linux or unix os, and you want to be efficient, then you would certainly use the console for many tasks including for removing files.