What about-bash-3.2#?

Source: Internet
Author: User

After the system has been signed into this, so look not good, in fact, is a small problem:

Original blog from: www.51niux.com bo: Busy Firewood less

The following are the causes of this problem:

We usually switch users in Linux after the command line will become-bash-3.2$, we have to analyze, this is related to the Linux mechanism, because every time the Linux under the creation of new users through Useradd, all the configuration files from/etc/ Skel copied to the new user's home directory, the general default in the new user home directory under Home, and about/etc/skel this directory, is mainly used by Useradd. The main reason why the command line becomes-bash-3.2$ may be that the configuration file is missing from the user's home directory

Here is the workaround:

1. The first approach is temporary:

Enter CSH or bash

2. The second approach is permanent:

Copy the hidden files below the/etc/skel/to your home directory, as an example of the root home directory:

Cp-a/etc/skel/. /root/

This is a small problem, I think it is very interesting to record a bit.

Original blog from: www.51niux.com bo: Busy Firewood less


This article from "Technology in the progress of sharing" blog, declined reprint!

What about-bash-3.2#?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.