bash: ls: command not found

terminal application


Commands like ls, clear not working


NITHIs-MacBook-Pro:~ nithi$ ls

-bash: ls: command not found

MacBook Pro 15", 10.13

Posted on Jan 26, 2019 1:13 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 27, 2019 7:12 AM

Found the solution.


Mapped the path --> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin in bash_profile


Issues resolved.


NITHIs-MBP:~ nithi$ echo $PATH

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

bash: ls: command not found

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.