Delete multiple hidden files [SOLVED]
Is there a way to delete multiple hidden files in a directory. I only want to delete the hidden files, not the normal files.
I can list them, and delete them one at a time, but when there are 20 files I need to delete, then it's a waste of time. Thank you in advance. |
Assuming the files all start with a leading '.', and that you want to remove all dotted files from the current directory and you aren't concerned with any subdirectories or other fancy stuff, it should be as s a simple as using a * wildcard. Just run
Code:
rm -i .* |
Sweet, that's exactly what I wanted. Thank you, you've just saved me many hours of typing :)
|
No problem. The bash command line is very powerful and flexible. For a good primer on shell commands and scripting I highly recommend LinuxCommand.org.
|
All times are GMT -5. The time now is 04:19 AM. |