Comment on
Exactly, but that wasn’t the question.
What are you talking about? The does exactly what I said it does.
It only does nothing for you because you used it incorrectly (in the wrong folder without the required argument),
The question is:
what happens when you give the command in the command line rm -rf ?
rm -rf * or here rm -rf test are different commands.
rm -rf *
rm -rf test
They are literally not different commands, as “test” is an required argument which out the command won’t work.
No, the argument is not required, the command is valid. It’s intentional and a neat feature that rm -rf alone without a specified file does nothing.
rm -rf
See e.g.: unix.stackexchange.com/a/553741
remon@ani.social 1 day ago
What are you talking about? The does exactly what I said it does.
It only does nothing for you because you used it incorrectly (in the wrong folder without the required argument),
Successful_Try543@feddit.org 1 day ago
The question is:
rm -rf *or hererm -rf testare different commands.remon@ani.social 1 day ago
They are literally not different commands, as “test” is an required argument which out the command won’t work.
Successful_Try543@feddit.org 1 day ago
No, the argument is not required, the command is valid. It’s intentional and a neat feature that
rm -rfalone without a specified file does nothing.See e.g.: unix.stackexchange.com/a/553741