1,JVM分析字节码
https://my.oschina.net/chkui/blog/1577525
生成字节码如下
public Server();
descriptor: ()V
flags: ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
LineNumberTable:
line 2: 0
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
0: sipush 128
3: istore_1
4: sipush 128
7: invokestatic #2 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
10: astore_2
11: sipush 128
14: invokestatic #2 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
17: astore_3
18: getstatic #3 // Field java/lang/System.out:Ljava/io/PrintStream;
21: aload_2
22: aload_3
23: if_acmpne 30
26: iconst_1
27: goto 31
30: iconst_0
31: invokevirtual #4 // Method java/io/PrintStream.println:(Z)V
34: getstatic #3 // Field java/lang/System.out:Ljava/io/PrintStream;
37: aload_2
38: invokevirtual #5 // Method java/lang/Integer.intValue:()I
41: iload_1
42: if_icmpne 49
45: iconst_1
46: goto 50
49: iconst_0
50: invokevirtual #4 // Method java/io/PrintStream.println:(Z)V
53: getstatic #3 // Field java/lang/System.out:Ljava/io/PrintStream;
56: aload_3
57: invokevirtual #5 // Method java/lang/Integer.intValue:()I
60: iload_1
61: if_icmpne 68
64: iconst_1
65: goto 69
68: iconst_0
69: invokevirtual #4 // Method java/io/PrintStream.println:(Z)V
72: return
LineNumberTable:
line 6: 0
line 7: 4
line 8: 11
line 9: 18
line 10: 34
line 11: 53
line 13: 72
2,DB,
3,shell指令
http://www.cnblogs.com/peida/archive/2012/11/02/2750588.html
A,cat
cat -n xxx 显示行号
B less xxx
高亮显示
ps查看进程信息并通过less分页显示
命令:
ps -ef |less
C more xxx
列一个目录下的文件,由于内容太多,我们应该学会用more来分页显示。这得和管道 | 结合起来
ls -l | more -5