Hey, I’d like a “Hi!” message shown when I start the terminal, or login in text mode… How can I do it?
TIA
Adel Moin
[ Editor ]
Hehe… Didn’t know others are also interested in doing this kind of things. I always do that myself!
You must edit .bashrc for that user, or if you want to do it for all users, edit /etc/bash.bashrc.
I use VIM to edit text, use whatever you want. I’ll explain it the VIM way here:
# aptitude install vim
vim [FILE] —> Either edit the file in user’s home, or edit the /etc/bash.bashrc.
Now, press ‘i’, and copy paste this: echo “Hi!”
After that, press ‘Esc’ and write: :wq
That’s it.
Vim is not installed in default. Use nano ;)
OK :–)
Yeah… VIM is not installed by default and also, Nano is easier to use. But I find VIM more powerful.
Anyway, Nano is also good, and also, much easier. :–)
Thanks for mentioning that.
Hey! I used Nano to edit it! So, thank you paul. And amlj, this worked really great! I edited /etc/bash.bashrc! Thank you!
No problem.