溫馨提示×

ubuntu如何修改終端用戶名

小新
2071
2021-01-14 09:43:16
欄目: 智能運維

ubuntu如何修改終端用戶名

ubuntu修改終端用戶名的方法:

1.打開終端,在~目錄下。

2.使用vim命令打開“.bashrc”文件。

3.找到要修改的部分,如:

if [ "$color_prompt" = yes ]; then

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

else

PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

fi

注: 修改內容為上面那行。

4.其中的\u為用戶名,\h為主機名,修改后保存即可。

2
亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女