If you’re having trouble reading the directories in the $PATH variable, you can make use of the tr command to replace the colons with the newline characters so each directory is displayed on a single line.
$ echo $PATH | tr “:” “\n”
Here is an example.