Feedback

type to search

By: Asked from United States of America

Displaying "Hi!" when I login to terminal??

Hey, I’d like a “Hi!” message shown when I start the terminal, or login in text mode… How can I do it?

TIA

1

amlj [ 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.

NN comments
paulcarroty
-

Vim is not installed in default. Use nano ;)

amlj
-
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.

harryxxx
-

Hey! I used Nano to edit it! So, thank you paul. And amlj, this worked really great! I edited /etc/bash.bashrc! Thank you!

or Cancel
You need to join Debian to complete this action, click here to do so.