王世超吧 关注:41贴子:1,004
  • 11回复贴,共1

@川流不息 快来

只看楼主收藏回复

@川流不息 快来


IP属地:上海来自iPhone客户端1楼2020-08-30 19:12回复
    @Ω川流不息Ω 臭🐶快来


    IP属地:上海来自iPhone客户端2楼2020-08-30 19:13
    收起回复
      @经王瑞 臭🐶


      IP属地:广东来自Android客户端5楼2020-09-10 10:14
      回复
        @经王瑞 臭🐶


        IP属地:广东来自iPhone客户端10楼2020-09-10 10:15
        收起回复
          #!/bin/bash
          # Function: print “Hello World”to helloworld.txt
          # Author:Mr.Yu
          echo "Hello World !"


          IP属地:广东14楼2021-04-04 14:04
          回复
            #!/bin/bash
            #Function: display the infomation of current system
            #Author:Mr.Yu
            # 1.print the system time
            echo System time: `date "+%Y-%m-%d %H:%M:%S"`
            # 2.print how long the system has been running
            echo Running time: `uptime -p`
            # 3.print the load average in the system
            echo Load average: `cat /proc/loadavg | awk '{print $1, $2, $3}'`
            # 4.print used memory in the system
            totalMem=`free -h | grep Mem | awk '{print $2}'`
            usedMem=`free -h | grep Mem | awk '{print $3}'`
            echo Used memory: $usedMem / $totalMem


            IP属地:广东15楼2021-04-04 14:06
            回复
              #!/bin/bash
              #Function: monitor load average of cpu, and write to file
              #Author:Mr.Yu
              # create file
              if [ -f cpu_monitor.txt ]
              then
              touch cpu_monitor.txt
              fi
              # modify file permission
              if [ -w cpu_monitor.txt ]
              then
              chmod 755 cpu_monitor.txt
              fi
              # write cpu infomation
              cat /proc/cpuinfo | grep "model name" > cpu_monitor.txt
              cat /proc/cpuinfo | grep "cpu cores" >> cpu_monitor.txt
              echo " " >> cpu_monitor.txt
              echo Total data: >> cpu_monitor.txt
              echo user nice system idle iowait irq softirq >> cpu_monitor.txt
              #write cpu infomation every 2s
              for ((i=0;i<=50;i++))
              do
              cat /proc/stat | grep 'cpu ' | awk '{print $2" "$3" "$4" "$5" "$6" "$7" "$8}' >> cpu_monitor.txt
              sleep 2
              done


              IP属地:广东17楼2021-04-04 14:08
              回复
                data segment io8255a equ 288hio8255b equ 289hio8255c equ 28ahio8255k equ 28bhdata endscode segment assume cs:code,ds:datastart: mov dx,io8255k mov al,0a7h out dx,al mov al,4 out dx,al s:mov dx,io8255c in al,dx test al,00000010b jz s mov dx,io8255b in al,dx and al,00000111b mov dx,io8255a out dx,al mov ah,1 int 16h jz s mov ah,4ch int 21hcode endsend start


                IP属地:广东来自iPhone客户端18楼2021-04-19 09:31
                收起回复