-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rem
80 lines (46 loc) · 1.9 KB
/
Rem
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
1.udev info:
udevadm info -p /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/enp2s0
2.NetworkManager temp connection:
/var/lib/NetworkManager/no-auto-default.state
3.gdb server调试 gdb mi接口
4.systemd.unit=single.target
5.scp 远程文件
6.qdbus --literal --dest
https://liquidat.wordpress.com/tag/qdbus/
https://www.freedesktop.org/software/gstreamer-sdk/data/docs/2012.5/gio/gdbus.html
7.sudo gdb -pid
8. packages.debian.org 检索包
9. getent passwd lightdm
sudo -u lightdm /bin/bash
10.
创建bond
nmcli conncetion add con-name bond0 type bond ifname bond0 mode balance-rr
绑定bond
nmcli connection add type bond-slave ifname enp5s0f0 master bond0
nmcli connection add type bond-slave ifname enp5s0f2 master bond0
启动连接
nmcli connection up bond-slave bond-slave
11.关闭显示器
xset dpms force off
xset q
xtrace
12.linux proxy gsettings:
org.gnome.system.proxy
13.system级别服务不能调用session级别服务
14.$ timedatectl show-timesync --all
15.pacmd list-cards
16.
apt -a show org.wireshark.wireshark
17. binary.write时 带有 []byte类会失败
18. golang map[key]value 的key不能为复杂结构体(含有嵌套结构体)
19. golang Conn.File()每次返回的是一个dup的文件句柄,每次都描述值fd不一样,但是指向同一文件
20. 重新实现的Writer和Reader在调用 io.Copy时,需根据buf指定返回int字节,否则长度不同,报short write
21.findmnt -t cgroup2 -n -o TARGET
22. golang包的sort.SearchInts 当第二个元素为0时会出错
23. result := reflect.AppendSlice(front, back) 导致src出错
24: sudo iw reg get
25. #ethtool -i ethx 查看网卡信息
26. dpkg-deb -X backports-dkms_5.4.56_amd64.deb extract/
dpkg-deb -e backports-dkms_5.4.56_amd64.deb extract/DEBIAN/
dpkg-deb -b extract/ build/
27. vtable报错 一般是虚函数表错误 是由于某个函数的子函数没有实现父类的方法