波浪号在苹果终端无法识别 [英] Tilde not recognized in Mac terminal

查看:431
本文介绍了波浪号在苹果终端无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Mac上运行OSX狮子这种怪异的情况下的〜(蒂尔达)不会去我的用户目录。相反,当我键入cd〜,我得到:

I have this weird situation on my Mac running OSX Lion where the ~ (tilda) does not go to my user directory. Instead when I type "cd ˜", I get:

-bash: cd: ˜: No such file or directory

这是如何解决这一问题有何建议?

Any advice on how to fix this?

推荐答案

试试这个:

˜ + <spacebar> 

它的结果你想要的波浪线:

人物的code是 0x02DC 和code,在bash中一样快捷的工作原理到主目录为 0x07E

The ˜ character's code is 0x02DC and the code that works in bash like shortcut to home directory is 0x07E.

这篇关于波浪号在苹果终端无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆