Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just received a new Ubuntu server at work, however, when logging in via the terminal I'm missing the my-user@server-name in the console. Also, I'm not able to use TAB for finished of folder-names etc.

Looking at my user-folder, there's no files in it (no .profile, .bashrc etc.).

As I don't have any idea why this is happening, I'm not able to Google for similar issues.

Can anyone help?

share|improve this question
You should have those files in /etc/skel (check with ls -la /etc/skel). If so you can copy the files you need (and change them if you need so) – Salem Jul 22 '13 at 8:03
I've copied the files from /etc/skel and changed user/group to my user/group. However, it does not seem to change anything? Should I restart the server or log-in/out? – user809829 Jul 22 '13 at 8:20
up vote 0 down vote accepted

You can copy system default files by using following command

cp -v /etc/skel/.bash* /etc/skel/.profile ~/

For Better my-user@server PS1 Prompt add folloing lines in your .bashrc

# When Commands Fail Turn PS1 In RED
PS1="\`if [ \$? = 0 ]; then echo \[\e[34m\]^_^[\u@\h:\w]\\$ \[\e[0m\]; else echo \[\e[31m\]O_O[\u@\h:\w]\\$ \[\e[0m\]; fi\`"

More Details: .bashrc

share|improve this answer

Your Answer


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.