+2 votes
in Operating Systems by (15.2k points)

When I run $PATH in Ubuntu terminal, I see the libraries. But it also gives error/warning: "No such file or directory". Is it an error or it's fine?

bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin: No such file or directory

1 Answer

0 votes
by (25.6k points)

There is nothing wrong in your output. $PATH is a variable, not a UNIX command. Run 'echo $PATH' instead of '$PATH' in Ubuntu terminal and you will not see the warning message:"No such file or directory"

$ echo $PATH


Related questions