Teach you how to add a personalized display in the Linux login interface

  
                

Linux character interface is easy to be boring for a long time. If you add a personalized display when you log in, it is more comfortable. The following small series will introduce you how to add personalized prompt information in the Linux system login interface. Let's learn together. Let's go.

If you use the root account to log in and edit the /etc/bashrc content, all other account logins will prompt the same content. If you want to configure each user, go to the directory of each account and configure it.

Here is a personalized display that can be seen in all accounts of a file.

Copy the code as follows:

vim /etc/bashrc

Add the following at the top:

c2=“$(tput bold)$ (tput setaf 2)”

echo “$c2 _ _ _ ___ ”

echo “$c2

Copyright © Windows knowledge All Rights Reserved