Troubleshooting
An administrator edits ~/.bash_profile to add a custom directory and logs in again. Every command, including ls and cp, now returns "command not found," although the commands still exist under /usr/bin. What is the BEST way to restore normal operation?
Show the answer
Correct answerB. Export a corrected PATH that includes /usr/bin and /bin, then fix the line in ~/.bash_profile
The edit overwrote PATH so the shell cannot find executables that are still intact. Resetting PATH for the session and correcting the profile line fixes the cause. Reinstalling packages or restoring directories is unnecessary, and ldconfig only affects shared libraries.