[软件设计/软件工程] LINUX下SHELL显示-BASH-4.1$不显示路径的解决方法

[复制链接]
发表于 2022-5-2 10:33:36
linux shell中不显示路径,使用起来很不方便。
如何更改外壳以显示路径?

进行如下操作:

vi ~/.bash_profile

(不管.bash_profile文件有多少,也可以自己新建一个)

在末尾添加:

导出 PS1='[\u@\h \W]\$'

然后执行

源?/ .bash_profile

这样shell可以显示路径

(The path is not displayed in the Linux shell, which is very inconvenient to use.
How do I change the shell to show the path?
Do the following:
vi ~/. bash_ profile
(no matter how many. Bash_profile files there are, you can also create one by yourself)
Add at the end:
Export PS1 = '[\ u @ \ h \ w] \ $'
Then execute
Source? / bash_ profile
This allows the shell to display the path
)





上一篇:11GOCP 1Z0-052 :2013-09-11 MGR_ROLE ROLE......A66
下一篇:ASP字符处理

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表