Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    You may find this helpful: how to glob every hidden file except current and parent directory Commented Jan 18, 2024 at 13:55
  • 2
    What is your question? Commented Jan 18, 2024 at 14:19
  • If you add the result of running ls -A in the directory holding the file you want to delete, what is the name of the file? Running your rm -rf .* will have deleted ALL files and directories starting with a dot (.). If that was in your home directory you'll have now lost all your configuration files. Time to restore from your backup - if you had one Commented Jan 18, 2024 at 14:27
  • Why not just use the filename? Commented Jan 18, 2024 at 14:44
  • 1
    rm -rf .* does not remove "a hidden file" but all of them in your current working directory. And hidden directories, if any, recursively. Are you sure you want this? It's a pretty dangerous command that I don't recommend to ever execute. Remove only the exact files and directories you want to. Also maybe consider using an interactive file manager, such as mc in terminals, or a graphical one. Commented Jan 18, 2024 at 20:02