V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
chenyaobin7
V2EX  ›  Linux

终端换行变成大于号

  •  
  •   chenyaobin7 · Mar 18, 2013 · 6773 views
    This topic created in 4801 days ago, the information mentioned may be changed or developed.
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    终端里不知发了什么命令,就突然换行就来个大于号,不关闭重开的话如何解决?
    6 replies    1970-01-01 08:00:00 +08:00
    rephaslife
        1
    rephaslife  
       Mar 18, 2013   ❤️ 1
    Ctrl+c,实在不行Ctrl+z
    chenyaobin7
        2
    chenyaobin7  
    OP
       Mar 18, 2013
    @rephaslife 谢谢 Ctrl+c可以 但Ctrl+z不行
    leafduo
        3
    leafduo  
       Mar 19, 2013
    看看 PS1?

    echo $PS1
    rrrrutdk
        4
    rrrrutdk  
       Mar 19, 2013
    楼上正解。

    PS1="\u:\w\$ "
    RisingV
        5
    RisingV  
       Mar 19, 2013
    楼上两位,不是PS1变量的问题,而是未结束命令。应该是结尾加了反斜杠
    yangg
        6
    yangg  
       Mar 19, 2013
    输入了,单或双引号没结束吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   850 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 20:32 · PVG 04:32 · LAX 13:32 · JFK 16:32
    ♥ Do have faith in what you're doing.