Recovery of .bash files of users
# Recovery of .bash files of users
-----------------------------------
# Create one user
useradd user1;passwd user1
# Each user including superuser is having following .bash files in their home directories
.bash_history
.bash_logout
.bash_profile
.bashrc
# In case of loss of these files, we can copy these files from /etc/skel/
cp -rf /etc/skel/.bash* /home/user1/
-----------------------------------
# Create one user
useradd user1;passwd user1
# Each user including superuser is having following .bash files in their home directories
.bash_history
.bash_logout
.bash_profile
.bashrc
# In case of loss of these files, we can copy these files from /etc/skel/
cp -rf /etc/skel/.bash* /home/user1/
Comments