I was read this article in EFY times: http://www.efytimes.com/e1/fullnews.asp?edid=111978 and I put twice the command:

echo 'man `ls /usr/bin | shuf -n 1`' >> ~/.bashrc

and now always when I open my terminal appears twice random commands.

And after I put the command:

echo dman `ls /usr/bin | shuf -n 1`’ >> ~/.bashrc

and now when I open my terminal appears:

The program dman dont be installed you can install it write 
sudo apt-get install bikeshed

but I dont want install it.

How I can erase all this when I open my terminal?

Thank you!


Using this kind of commands in terminal:

echo '<command>' >> ~/.bashrc

you add a new line with <command> at the end of ~/.bashrc file. So you need to edit ~/.bashrc file and remove the lines from the end of the file with the commands added. To edit ~/.bashrc just type the following command in terminal:

gedit ~/.bashrc
  • @vasa1 Sorry, no! – Radu Rădeanu Jul 27 '13 at 11:37
  • solved!!! thank you very much a lots Radu Rădeanu – Quantum Jumping Jul 27 '13 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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