sysenv

查看当前JVM的环境属性(System Environment Variables)

使用参考

  1. USAGE:
  2. sysenv [-h] [env-name]
  3. SUMMARY:
  4. Display the system env.
  5. EXAMPLES:
  6. sysenv
  7. sysenv USER
  8. WIKI:
  9. https://alibaba.github.io/arthas/sysenv
  10. OPTIONS:
  11. -h, --help this help
  12. <env-name> env name

查看所有环境变量

  1. $ sysenv
  2. KEY VALUE
  3. ----------------------------------------------------------------------------------------------------------------------------
  4. PATH /Users/admin/.sdkman/candidates/visualvm/current/bin:/Users/admin/.sdkman/candidates/ja
  5. va/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/
  6. MacOS
  7. SDKMAN_VERSION 5.7.3+337
  8. JAVA_HOME /Users/admin/.sdkman/candidates/java/current
  9. JAVA_MAIN_CLASS_65244 demo.MathGame
  10. TERM xterm-256color
  11. LANG zh_CN.UTF-8
  12. AUTOJUMP_SOURCED 1
  13. COLORTERM truecolor
  14. LOGNAME admin
  15. XPC_SERVICE_NAME 0
  16. PWD /Users/admin/code/ali/arthas/demo
  17. TERM_PROGRAM_VERSION 3.2.5
  18. _ /Users/admin/.sdkman/candidates/java/current/bin/java
  19. SHELL /bin/bash
  20. TERM_PROGRAM iTerm.app
  21. SDKMAN_PLATFORM Darwin
  22. USER admin
  23. ITERM_PROFILE Default
  24. TMPDIR /var/folders/0r/k561bkk917gg972stqclbz9h0000gn/T/
  25. XPC_FLAGS 0x0
  26. TERM_SESSION_ID w0t4p0:60BC264D-9649-42AC-A7E4-AF85B69F93F8
  27. __CF_USER_TEXT_ENCODING 0x1F5:0x19:0x34
  28. Apple_PubSub_Socket_Ren /private/tmp/com.apple.launchd.DwmmjSQsll/Render
  29. der
  30. COLORFGBG 7;0
  31. HOME /Users/admin
  32. SHLVL 1
  33. AUTOJUMP_ERROR_PATH /Users/admin/Library/autojump/errors.log

查看单个环境变量

支持通过TAB键自动补全

  1. $ sysenv USER
  2. USER=admin