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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content