2022年12月
Linux两台电脑网络直连
ifconfighost1 configifconfig enp0s3f0 192.168.1.3/24host2 configifconfig enp0s3f1 192.168.1.4/24test
tmux help
session操作tmux new # 创建默认名称的会话
tmux new -s mysession # 创建名为mysession的会话
tmux ls # 显示会话列表
...
C syntax
enums Start At 0It will start at 0 and increment up along the way.linux kernelprintk("file %...
Shell help
常用命令# 2>&1 其中2表示错误输出,输入到标准输出1中。
ls readme.txt 1.txt >out.log 2>&1
ls -alt ./
du ...
git help
git branch 和 git checkout 分支git branch -a
git checkout `remotes/origin/branch-name` -b `origin/br...
gdb help
notes<C-L> # clear screen
(gdb) p /x *p@100 # print array of length...
解决SSH自动断线的问题
Client配置sudo vim /etc/ssh/sshd_config添加配置ClientAliveInterval 30
ClientAliveCountMax 6ClientAliveI...
zsh进入git卡顿解决问题
全局设置 oh-my-zsh 不读取文件变化信息git config --global --add oh-my-zsh.hide-dirty 1
git config --global -add...
vim help
terminalvim open multi windows and filesvim file1 file2
vim -On file1 file2 # 垂直打开 :vsp
vim -on f...
C++ syntax
optimize function方法一: 只针对1个function__attribute__((optimize("O0")))
int add (int a, int ...