Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the command to remove unknown file from terminal.

Edit after following answer: Example: I have two files يا مهدي- Times-يا محمد Events.html مهدي Events.html how do i only first file?

share|improve this question
up vote 4 down vote accepted

In this case is really simple. Just use the following command:

rm -i *Times*Events.html

There is no problem if you have more files like '*Times*Events.html' in the same directory; Because of the switch -i (for interactive) you are asked every time if you really want to remove it.

Another way is to switch between Arabic and English languages when you are writing in terminal.

share|improve this answer
What if I have two files يا مهدي- -يا محمد Events.html and مهدي Events.html? I need to remove only the first one? – ItsZaif Aug 7 '13 at 15:27
ِ@ZafrullahSyed I specified clear: There is no problem if you have more files like '*TimesEvents.html' in the same directory; you are asked everytime if you realy want to remove it*. And this because I used -i option in rm command. – Radu Rădeanu Aug 7 '13 at 15:29

A simple

rm *Events.html

will do the trick. BE CAREFULL This will also remove any other file you have whose name is terminated by "Event.html" string.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.