Articles
40
Tags
18
Categories
2
Home
Archives
Tags
Categories
List
Music
Movie
Link
About
MoLiYue's Blogs
零碎内容
Home
Archives
Tags
Categories
List
Music
Movie
Link
About
零碎内容
Created
2022-09-21
|
Updated
2023-10-21
|
Word Count:
30
|
Reading Time:
1mins
|
Post Views:
UTC
UTC全称Coordinated Universal Time,中文译名协调世界时。
在linux系统中有时候需要看其UTC时间
``
Author:
Mo Lin
Link:
https://moliyue.xyz/2022/09/21/220920/
Copyright Notice:
All articles on this blog are licensed under
CC BY-NC-SA 4.0
unless otherwise stated.
Previous
Shell编程的一点基础内容
Shell今天学习了一点shell编程,根据mentor提供的一个shell脚本进行更改实现自动定时抓Pod包的功能。 学习到的内容如下: shell创建文件自带时间 1touch $(date +%y%m%d).cap shell对后台运行的进程进行kill 1kill -9 PID shell将grep的内容选取其中一列 1awk -F ' ' '{print $5}' 使用awk取某一行数据中的倒数第N列:$(NF-(n-1)) 比如取/etc/passwd文件中的第2列、倒数第1、倒数第2、倒数第4列(以冒号为分隔符)。($NF表示倒数第一列,$(NF-1)表示倒数第二列) 参考文献:awk的一些用法 如果不存在,则创建一个文件夹 12345if [ ! -d capFiles ]; then mkdir capFileselse echo 'dir exist'fi if语句 12345678910111213if ((1...
Next
VPP and Pktgen
VPPvpp是一个大三层的交换机,内部操作与交换机类似。 123456show intshow hardwareshow runshow threadclear interfacesshow ? Pktgen-DBDKPktgen是一个打流软件,应该是linux原生的(记不清了),它支持lua语言,也有自己的一套语言(感觉就是特化的C)。最近看了一下将Pktgen打包成image,也把lua的功能加上了,最开始出现了一些问题,后来发现是没有指定版本而导致的不兼容,指定版本后就好了。 找机会把那段代码拷下来,嘿嘿。 主要用到的知识是Docker的Dockerfile吧 12docker
Mo Lin
Articles
40
Tags
18
Categories
2
Follow Me
Announcement
This is my Blog
Contents
1.
UTC
Recent Posts
友善R5C那些事
2024-09-18
树莓派Ubuntu那些事
2024-08-23
Set up my own VPS
2024-04-01
C的小知识(一)Flexible array
2024-03-18
ArchLinux
2024-03-12