20171123

184634_FPgH_3613309.png

1,JVM分析字节码

173938_pma6_3613309.png

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 

190539_DsRN_3613309.png

cat -n xxx 显示行号

190612_CfgE_3613309.png

B less xxx

高亮显示

ps查看进程信息并通过less分页显示 

命令:

 ps -ef |less

 

 

C  more xxx

 

列一个目录下的文件,由于内容太多,我们应该学会用more来分页显示。这得和管道 | 结合起来 

ls -l  | more -5

 

 

 

 

 

 

 

 

 

 

 

转载于:https://my.oschina.net/u/3613309/blog/1578067

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值