linux user a bash4.2- $

In such cases I encountered was missing files in the user directory, or user directory may not have encountered such a situation.

First, linux is created when users are created by default in / home and under the same name as the user directory, and copy the following / etc / skel files to the user directory, these files are hidden can use the command ll -a view. The role of these documents is to make all new users in the system above has the same initial setup, to provide users with the default configuration, even if my error due to the absence of these documents.

Solution cp /etc/skel/.bash* / var / lib / hadoop-hdfs, the final surface that parameters are user directory, sometimes under the user directory is not / home, you can use cat / etc / passwd see the user directory, re-visit or su user, the repair is successful.

 

Released nine original articles · won praise 1 · views 3409

Guess you like

Origin blog.csdn.net/y1006597541/article/details/81112397