找不到ls,sudo命令(shell命令) [英] ls,sudo commands not found (shell commands)
本文介绍了找不到ls,sudo命令(shell命令)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在Mac OSX 10中安装laravel Framework,并结束了对~/.bash_profile
的修改以添加laravel命令. laravel命令似乎正常工作.但是出现了另一个问题. ls,sudo ...和其他shell命令不起作用.
I tried to install laravel Framework in my mac OSX 10 .And I ended modifying my ~/.bash_profile
to add the laravel command. laravel command seems to work normally .But another problem came out . ls ,sudo ...and other shell commands does not work .
-bash: ls: command not found
我的bash.profile
文件包含两个链接
export PATH="/Applications/MAMP/bin/php/php5.6/bin"
export PATH="$PATH:$HOME/.composer/vendor/bin"
推荐答案
在〜/.bash_profile中签入该路径是否存在
check in ~/.bash_profile if this PATHs exist
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
您的完整行应如下所示:
your complete line should looks like this
export PATH=/Applications/MAMP/bin/php/php5.6/bin:$HOME/.composer/vendor/bin:/opt/local/bin:/opt/local/sbin:$PATH
需要重新启动.
这篇关于找不到ls,sudo命令(shell命令)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文