Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers

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? –  Zafrullah Syed Aug 7 '13 at 15:27
1  
ِ@ZafrullahSyed I specified clear: There is no problem if you have more files like '*Times*Events.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
add comment

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
add comment

Your Answer

 
discard

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.