Why does vnc shows different location for binary ?

Solution In Progress - Updated -

Issue

  • SSH and run the command "which gcc", it returns /bin/gcc
  • When I log into the exact same machine using the same credentials and run the same command it returns /usr/bin/gcc.
  • Why is the path different depending on how I log in?

Environment

Its just that when you vnc or use gui environment variable is with precedence to /bin

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.