天嵌 ARM开发社区

 找回密码
 注册
查看: 1912|回复: 4

命令提示符出现[\u@\h \W]#

[复制链接]
taimafanl 发表于 2010-10-3 15:29:23 | 显示全部楼层 |阅读模式
我的/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 12:45:59 | 显示全部楼层
wjqqwer 发表于 2010-10-4 20:45:32 | 显示全部楼层
我也遇到过,用的方式一,试试下面的看成不
方法一:在busybox编译里
make menuconfig
busybox settings->busybox library tuning->username completion、fancy shell prompts选上。
方法二:修改/etc/profile:PS1='[$USER@$HOSTNAME $PWD]#'
clever0725 发表于 2010-10-6 09:11:55 | 显示全部楼层
楼上方法一
天嵌_support1 发表于 2010-10-6 16:53:45 | 显示全部楼层
3# wjqqwer

方法一
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

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

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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