Joke Collection Website - Public benefit messages - How to solve ls: command not found when learning linux?

How to solve ls: command not found when learning linux?

ls command basically exists in every linux shell, because it is a basic application command. It's just like answering phone calls and text messages, which is the most basic, so there can't be no such command.

1. You can use whereis or which command to check whether this command is actually executed.

which ls

whereis ls

2. It may be a problem caused by system environment variables.

Solution:

export

path =/usr/local/sbin:/usr/local/bin: