mirror of https://github.com/alibaba/arthas.git
update doc
parent
0eb32d0980
commit
0fe1ab45cd
@ -0,0 +1,9 @@
|
|||||||
|
cat
|
||||||
|
===
|
||||||
|
|
||||||
|
> Concatenate and print files
|
||||||
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ cat /tmp/a.txt
|
||||||
|
```
|
@ -0,0 +1,22 @@
|
|||||||
|
mc
|
||||||
|
===
|
||||||
|
|
||||||
|
> Memory compiler, compiles java files into bytecode and class files in memory.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mc /tmp/Test.java
|
||||||
|
```
|
||||||
|
|
||||||
|
The classloader can be specified with the `-c` option:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mc -c 327a647b /tmp/Test.java
|
||||||
|
```
|
||||||
|
|
||||||
|
The output directory can be specified with the `-d` option:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mc -d /tmp/output /tmp/ClassA.java /tmp/ClassB.java
|
||||||
|
```
|
||||||
|
|
||||||
|
After compiling the `.class` file, you can use the [`redefine`](redefine.md) command to re-define the loaded classes in JVM.
|
@ -0,0 +1,9 @@
|
|||||||
|
pwd
|
||||||
|
===
|
||||||
|
|
||||||
|
> Return working directory name
|
||||||
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pwd
|
||||||
|
```
|
Loading…
Reference in New Issue