So fügen Sie in Linux Text zu Text hinzu
PS1="[\u@\h (task-7.2) \W]# "
# run this in shell and the output will look like [root@localhost (task-7.2) ~]#
smc181002
PS1="[\u@\h (task-7.2) \W]# "
# run this in shell and the output will look like [root@localhost (task-7.2) ~]#