n*********e 发帖数: 318 | | f*******n 发帖数: 12623 | 2 "set" is a built-in command in some shells (e.g. for bash: https://www.gnu.
org/software/bash/manual/bashref.html#The-Set-Builtin). When no arguments
are given, it shows all shell variables and functions. "grep" then filters
the output for a line containing "JAVA_H"
They are probably looking for the environment variable "JAVA_HOME". Actually
, the command is more complicated than it needs to be, because "env" is
better for displaying environment variables than "set". Also, if you just
want the value of JAVA_HOME, then just "echo $JAVA_HOME" would be enough. | n*********e 发帖数: 318 | 3 Thanks a lot!
I really appreciate it! |
|