Answer the question
In order to leave comments, you need to log in
Why is rm not working?
# touch 1.txt
# touch .txt
# ls -a
1.txt .txt
# rm *.txt
# ls -a
.txt
Why does .txt stay? * Means both any number of characters and their absence, no?
Answer the question
In order to leave comments, you need to log in
just * does not dereference hidden files (those that start with a dot)
you can see for yourself:# ls -a *.txt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question