Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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
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.
ls -Ain the directory holding the file you want to delete, what is the name of the file? Running yourrm -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 onerm -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 asmcin terminals, or a graphical one.