jshell

File Read

Context: sudo, unprivileged

jshell
jshell> /open /path/to/input-file

File Write

Context: sudo, unprivileged

jshell
String x = "DATA";
/save /path/to/output-file

Shell

Context: sudo, unprivileged

jshell
Runtime.getRuntime().exec("/path/to/command");