> Changing the content of envirnment variable?

Changing the content of envirnment variable?

Posted at: 2014-12-18 
how to change the content of PATH environment variable such that 'ls' command shouldn''t work??

On Unix, type:

which ls

That will give the path to the ls used.

Set the PATH environment variable so it doesn't include the path.

Most other common command won't work either.

On Windows, "ls" only works in Powershell, and you don't need to change PATH either.

In what context? Web design? Operating System?

for UNIX OS. & sorry for the incomplete ques.

how to change the content of PATH environment variable such that 'ls' command shouldn''t work??