![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
在?升龙拳!
这个作者很懒,什么都没留下…
展开
-
简单三步tmux快速上手
安装# Ubuntu系统$ sudo apt-get install tmux# CentOS$ sudo yum install tmux# Mac$ brew install tmux 配置鼠标操作,用于开启鼠标拖动分屏线和选屏功能# 编辑tmux配置文件$ sudo vim ~/.tmux.conf# 文件中添加下列内容set-option -g mouse on# 进入tmux控制台$ tmux# 按下ctrl + B,出现tmux命令行...原创 2020-12-07 17:24:56 · 108 阅读 · 0 评论 -
跟我一起写Makefile
https://seisman.github.io/how-to-write-makefile/overview.html转载 2021-09-04 16:56:27 · 102 阅读 · 0 评论 -
linux命令大全
https://man.linuxde.net/strace原创 2021-08-05 15:07:34 · 64 阅读 · 0 评论 -
shell 代替getopts选项
#!/bin/sh# POSIXdie() { printf '%s\n' "$1" >&2 exit 1}# Initialize all the option variables.# This ensures we are not contaminated by variables from the environment.file=verbose=0while :; do case $1 in -h|-\?|--help).原创 2021-06-18 11:17:36 · 96 阅读 · 0 评论 -
SHELL —— grep命令+正则表达式
https://www.cnblogs.com/zihe/p/6933809.html原创 2021-05-27 18:42:53 · 58 阅读 · 0 评论 -
shell脚本速查
# 数值比较:# n1 -eq n2检查n1是否等于n2 # n1 -le n2检查n1是否小于等于n2# n1 -ge n2检查n1是否大于等于n2 # n1 -lt n2检查n1是否小于n2# n1 -gt n2检查n1是否大于n2 # n1 -ne n2检查n1是否不等于n2...原创 2021-05-24 11:30:09 · 73 阅读 · 0 评论 -
常用shell命令总结
# 查询出来的包括文件名+内容grep -r "查询内容" 文件目录 # 只显示包含内容的文件名grep -r -l "查询内容" 文件目录 find 文件目录 -type f |xargs grep "查询内容"# 查询文件名find 路径 -name 文件名(正则表达式)...原创 2020-12-01 11:37:40 · 97 阅读 · 0 评论 -
read函数阻塞还是非阻塞
read函数只是一个通用的读文件设备的接口。是否阻塞需要由设备的属性和设定所决定。1.一般来说,读字符终端、网络的socket描述字,管道文件等,这些文件的缺省read都是阻塞的方式。2.如果是读磁盘上的文件,一般不会是阻塞方式的。但使用锁和fcntl设置取消文件O_NOBLOCK状态,也会产生阻塞的read效果。...原创 2021-05-07 23:33:50 · 4216 阅读 · 0 评论