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.

When i try to remove a file on my Ubuntu 10.04 system through terminal i have execute wrong command unfortunately the command is given below.

rm -r /*.mp4

By mistake i was added / in front of *.mp4. Then the system starts to run number of lines, in that i was seen permission denied like that.

While running in terminal like that, i was closed the terminal. Then I was checked that video was removed and some more directories are also removed.

Note: I was given the execute permission on one directory like

sudo chmod -R 777 /opt/aura

Now it has execute permission. But, it shows White color every directory before that, all the directories and files are shown in green color. But now it was showing in white color. When I give

ls -lrt

Tell me how to change the color now white to green when the directory in execute permission.

share|improve this question
That command shouldn't have removed directories (unless you have directories ending in .mp4 in your root filesystem, which I doubt). Please run history | tail or history | less and tell us what the command really was. –  Andrea Corbellini Jan 31 '13 at 10:47
ya, i tried this same scenario in another system also "rm -r /*"(type this cmd on terminal and press enter, the terminal is running number of execution and while executing i was manually close the terminal), this system also shows all directories in white color after giving execute permission.-@AndreaCorbellini –  user127518 Jan 31 '13 at 11:17
user127518 - Please stop running those commands! Although your system is safe, you are destroying your user. The last command you ran (rm -r /*) would have started to delete all your data, and possibly some of your settings. Do as @AndreaCorbellini asked before you do anything else. –  Paddy Landau Jan 31 '13 at 11:49
Thanks for your Comments@PaddyLandau –  user127518 Jan 31 '13 at 12:01
user127518, we really need you to do what @AndreaCorbellini asks before we can even begin to suggest a solution. Andrea is correct; we need to know what you really did run. Unless you help us, we cannot help you. –  Paddy Landau Jan 31 '13 at 17:40
show 9 more comments

Your Answer


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

Browse other questions tagged or ask your own question.