Friday, July 1, 2016

ls command doesn't work in terminal

When downloading and installing new software onto your computer, and trying to RUN in Command Line.  If a command to run a file isn't setup  for instance "spyder" for running an anaconda download, you can create a command by going to the advanced systems settings and opening the Environment Variables, and creating a new User Variable named PATH: and for the field value entering the command directory path for the ".exe" file.  for instance "c:\directory\program\file.exe"

Say that you accidentally had added a new System Variable instead of a User Variable...you might notice that certain built in commands in the terminal are now non-existent...meaning that you have overridden the built in path.

Now you are no longer able to use the built in command to navigate the command line of the terminal.  You can no longer use your computer as a developer and have utterly lost your manipulation of your directories...

until you get a whack with the magic wand of "Problem Solving" and you hit the windows key and type "regedit" and gain access to the windows Registry Editor!!!!

find the directory: Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session_Manager\Environment\Path.

Double click on the "Path"

Select and copy the Path Value Data.


Hit windows key and type "advanced system settings"

Select "Advanced" tab,  "Environment Variables..." button,
Under "System variables" find the variable named "Path" and double click.
select all in the field "Variable value:" and paste.
click OK
click OK
click OK

Return to the terminal or command line and resume life as normal...

if you really did want to use the command to run that you tried to set up...go back to the "advanced system settings" and enter a USER VARIABLE this time...and then go prank a co-worker by playing a nasty little trick on him next time he leaves his work computer open...that way I get traffic on how to solve this problem...no just kidding...that would be very bad.  Shame on you for thinking of such a thing!

No comments:

Post a Comment