How Do I Show Path Variable in Linux?
Contents When You Type a Command, the Shell Looks for It in the Directories Specified by Your Path. You Can Use Echo $Path to Find Which Directories Your Shell...
When you type a command, the shell looks for it in the directories specified by your path. You can use echo $PATH to find which directories your shell is set to check for executable files. To do so: Type echo $PATH at the command prompt and press ↵ Enter .
How do I display the PATH variable?
You need to use the command echo $PATH to display the PATH variable or you can just execute set or env to display all of your environment variables. By typing $PATH you tried to run your PATH variable contents as a command name.
Must Read
Does Linux have a PATH variable?
PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which directories to search for executable files (i.e., ready-to-run programs) in response to commands issued by a user.