Linux new user after switch display-bash-4.1$ (reprint)

Source: Internet
Author: User

A new MQM user was created today,

[Plain]View Plaincopy
  1. useradd-g mqm-d/var/mqm
  2. passwd MQM

The terminal displays-bash-4.1$ instead of [[email protected]~]

Baidu took the next. This is said to be due to a missing configuration file.

After copying all the files in the/etc/skel to/var/mqm/, the problem is resolved. Operation is as follows

[Plain]View Plaincopy
  1. cp-a/etc/skel/. /VAR/MQM;-a means copying hidden files

It was used at the very beginning.

[Plain]View Plaincopy
  1. cp /etc/skel/* /VAR/MQM             ; Copy only all non-hidden files without copying hidden files   
There is no effect after the operation. After Cd/etc/skel, LS looked down, is empty. Baidu after know is hidden files.

Files in Linux are hidden by default. Add-A to the command to manipulate the hidden file.

[Plain]View Plaincopy
  1. ls -a /etc/skel           ; can view hidden files.   
  2.   
  3. Cp-a/etc/skel/. /; You can copy hidden files.


If you want to hide a file, simply precede the filename with ". "Can

[HTML]View Plaincopy
  1. MV Test. Test; Hide test file

  2. Source: http://blog.csdn.net/haitaofeiyang/article/details/47728807


From for notes (Wiz)

Linux new user after switch display-bash-4.1$ (reprint)

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.