My Oracle Support Banner

Linux' Basic Commands Not Working On OCI Instances Due To Incorrect $PATH Variable. (Doc ID 2553591.1)

Last updated on MARCH 08, 2023

Applies to:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Linux x86-64

Symptoms

While running simple commands on Linux OCI instance  like  ls, cp, cat, cd. the below error message is seen.

 

# cat test-file
bash: cat: command not found
# ls
bash: ls: command not found

 

However, when running the command using the full command path this works as seen below.

 

# /bin/cat test-file
Hello Word.

# /bin/ls
authorized_keys id_rsa id_rsa.pub known_hosts

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.