A new MQM user was created today,
[Plain]View Plaincopy
- useradd-g mqm-d/var/mqm
- 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
- cp-a/etc/skel/. /VAR/MQM;-a means copying hidden files
It was used at the very beginning.
[Plain]View Plaincopy
- 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
- ls -a /etc/skel ; can view hidden files.
-   
- 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
- MV Test. Test; Hide test file
Source: http://blog.csdn.net/haitaofeiyang/article/details/47728807
From for notes (Wiz)
Linux new user after switch display-bash-4.1$ (reprint)