天嵌 ARM开发社区

 找回密码
 注册
查看: 1551|回复: 2

版主快帮个忙啊,命令提示符问什么会变成[\u@\h \W]#

[复制链接]
taimafanl 发表于 2010-10-3 16:33:34 | 显示全部楼层 |阅读模式
我的/etc/profile 文件内容如下
# Ash profile
# vim: syntax=sh
# No core files by default
#ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
PS1='[\u@\h \W]# '
PATH=$PATH
HOSTNAME=`/bin/hostname`
export USER LOGNAME PS1 PATH
那个[\u@\h \W]# 为什么没有被正确替换?
machoe 发表于 2010-10-4 11:33:39 | 显示全部楼层
请参考我写的笔记,里面写了,为什么会出现你的这种情况。
http://bbs.embedsky.net/redirect ... o=lastpost#lastpost
天嵌_support1 发表于 2010-10-6 18:21:37 | 显示全部楼层
1# taimafanl


在另一个帖子和你讨论了:
http://bbs.embedsky.net/viewthread.php?tid=6846&highlight=
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-18 04:19 , Processed in 1.021524 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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